+2005-09-18 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGMime: fixed a linking issue on OSX (v4.5.236)
+
2005-08-30 Helge Hess <helge.hess@skyrix.com>
* do not use PCH warning flags with older compilers (v4.5.235)
+2005-09-18 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGMimeAddressHeaderFieldGenerator.m: fixed some strict dependencies
+ on NGMail (this generator should be moved to NGMail)
+
2005-07-20 Helge Hess <helge.hess@opengroupware.org>
* NGMimeBodyPart.m: added some convinience methods to access the header
#include "NGMimeHeaderFieldGenerator.h"
#include "NGMimeHeaderFields.h"
-#include <NGMail/NGMailAddressParser.h>
#include <NGMime/NGMimePartParser.h>
#include "common.h"
+#if MOVED_TO_NGMAIL
+# include <NGMail/NGMailAddressParser.h>
+#else
+@interface NSObject(MailAddressParser)
++ (id)mailAddressParserWithString:(NSString *)_string;
++ (id)mailAddressParserWithData:(NSData *)_data;
+- (id)parseAddressList;
+@end
+#endif
+
@interface NSObject(UsedProtocols)
- (NSString *)displayName; // hh: where is that implemented ?
@end
value:(id)_value
{
// TODO: produces a reference to NGMailAddressParser which is in NGMail!
+#if MOVED_TO_NGMAIL
NGMailAddressParser *parser;
+#else
+ id parser;
+#endif
NSMutableString *result;
NSData *data;
id obj;
NSEnumerator *enumerator;
+#if MOVED_TO_NGMAIL
parser = ([_value isKindOfClass:[NSString class]])
? [NGMailAddressParser mailAddressParserWithString:_value]
: [NGMailAddressParser mailAddressParserWithData:_value];
+#else
+ parser = ([_value isKindOfClass:[NSString class]])
+ ? [NSClassFromString(@"NGMailAddressParser")
+ mailAddressParserWithString:_value]
+ : [NSClassFromString(@"NGMailAddressParser")
+ mailAddressParserWithData:_value];
+#endif
enumerator = [[parser parseAddressList] objectEnumerator];
result = [[NSMutableString alloc] initWithCapacity:128];