.mailbundle question
.mailbundle question
- Subject: .mailbundle question
- From: Julian Cain <email@hidden>
- Date: Wed, 16 Nov 2005 01:11:19 -0500
Hi,
I have created a .mailbundle in which I can at this point read all of
the contents of an email including the attachment name. From all of
the sample code I have looked I don't see anyone "downloading" an
attachment from any .mailbundle project. So I am wondering, as I have
not found any references to this from private headers if anyone has
or knows of a way to get a handle on that particular mail object and
download it's referenced attachment.
Part of the code in where I think this should be attempted is as
below as this is what is executed when new mails arrive:
- (void)showNotification {
NSString *account = [[[self messageStore] account] displayName];
NSString *sender = [self sender];
NSString *senderAddress = [sender uncommentedAddress];
NSString *subject = [self subject];
NSString *body = @"";
MessageBody *messageBody = [self messageBodyIfAvailable];
//NSString *messageStore = [[[self messageStore] l
NSLog(@"Subject: '%@'", subject);
NSLog(@"Sender: '%@'", sender);
NSLog(@"Account: '%@'", account);
NSLog(@"Body: '%@'", body);
NSLog(@"Attachments: %@", [messageBody attachments]);
NSLog(@"textHtmlPart: %@", [messageBody textHtmlPart]);
NSLog(@"webArchive: %@", [messageBody webArchive]);
}
Any help is greatly appreciated,
~Julian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden