From 62e656c31756faa776a8a7664c9fe7d4f113852d Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 27 Oct 2004 16:51:27 +0000 Subject: [PATCH] added -initWithString: method to NGImap4EnvelopeAddress git-svn-id: http://svn.opengroupware.org/SOPE/trunk@321 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-mime/ChangeLog | 2 ++ sope-mime/NGImap4/ChangeLog | 6 ++++++ sope-mime/NGImap4/NGImap4EnvelopeAddress.h | 1 + sope-mime/NGImap4/NGImap4EnvelopeAddress.m | 7 +++++++ sope-mime/NGMime/NGMimeFileData.m | 2 +- sope-mime/Version | 2 +- 6 files changed, 18 insertions(+), 2 deletions(-) diff --git a/sope-mime/ChangeLog b/sope-mime/ChangeLog index 0c4a292f..0bf3cfb0 100644 --- a/sope-mime/ChangeLog +++ b/sope-mime/ChangeLog @@ -1,5 +1,7 @@ 2004-10-27 Helge Hess + * NGImap4: enhanced NGImap4EnvelopeAddress (v4.3.193) + * NGMail: support special sendmail location on MacOSX (v4.3.192) * NGMail: fixed a bug in NGSendMail (v4.3.191) diff --git a/sope-mime/NGImap4/ChangeLog b/sope-mime/NGImap4/ChangeLog index 63d317de..bdf16d5a 100644 --- a/sope-mime/NGImap4/ChangeLog +++ b/sope-mime/NGImap4/ChangeLog @@ -1,3 +1,9 @@ +2004-10-27 Helge Hess + + * NGImap4EnvelopeAddress.m: added -initWithString: method (not properly + implemented yet, should parse the string using the + NGMailAddressParser) + 2004-10-08 Helge Hess * NGImap4ResponseParser.m: added INTERNALDATE as a known, but diff --git a/sope-mime/NGImap4/NGImap4EnvelopeAddress.h b/sope-mime/NGImap4/NGImap4EnvelopeAddress.h index 6d4b5418..7541467f 100644 --- a/sope-mime/NGImap4/NGImap4EnvelopeAddress.h +++ b/sope-mime/NGImap4/NGImap4EnvelopeAddress.h @@ -44,6 +44,7 @@ - (id)initWithPersonalName:(NSString *)_pname sourceRoute:(NSString *)_route mailbox:(NSString *)_mbox host:(NSString *)_host; +- (id)initWithString:(NSString *)_str; /* accessors */ diff --git a/sope-mime/NGImap4/NGImap4EnvelopeAddress.m b/sope-mime/NGImap4/NGImap4EnvelopeAddress.m index bfb4d4f5..63f03f55 100644 --- a/sope-mime/NGImap4/NGImap4EnvelopeAddress.m +++ b/sope-mime/NGImap4/NGImap4EnvelopeAddress.m @@ -45,6 +45,13 @@ return [self initWithPersonalName:nil sourceRoute:nil mailbox:nil host:nil]; } +- (id)initWithString:(NSString *)_str { + // TODO: properly parse string using NGMailAddressParser + return [self initWithPersonalName:nil + sourceRoute:nil + mailbox:_str host:nil]; +} + - (void)dealloc { [self->personalName release]; [self->sourceRoute release]; diff --git a/sope-mime/NGMime/NGMimeFileData.m b/sope-mime/NGMime/NGMimeFileData.m index 5745b496..1d096817 100644 --- a/sope-mime/NGMime/NGMimeFileData.m +++ b/sope-mime/NGMime/NGMimeFileData.m @@ -146,7 +146,7 @@ static unsigned tmpmask = 0600; alreadyRead = 0; read = (bufCnt > (fileLen - alreadyRead)) ? fileLen - alreadyRead : bufCnt; - + while ((read = [fs readBytes:buffer count:read])) { alreadyRead += read; if (write(_fd, buffer, read) != read) { diff --git a/sope-mime/Version b/sope-mime/Version index 41ed3886..4be618fe 100644 --- a/sope-mime/Version +++ b/sope-mime/Version @@ -2,6 +2,6 @@ MAJOR_VERSION:=4 MINOR_VERSION:=3 -SUBMINOR_VERSION:=192 +SUBMINOR_VERSION:=193 # v4.2.149 requires libNGStreams v4.2.34 -- 2.39.5