• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
.mailbundle question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.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


  • Prev by Date: Re: Need suggestion for data storage solution for AB-like app
  • Next by Date: Re: Continous updates from NSForm
  • Previous by thread: CoreData and Distinct
  • Next by thread: Hard linked files cannot be modified
  • Index(es):
    • Date
    • Thread