14.2.09
13:31 javamail (
,
,
,
)
Does Apple use JavaMail? At least e-mails send by Itunes Store are shown as JavaMail in my Thunderbird (according to Display Mail User Client Addon)
 Let's see what headers say:
Message-ID: <11880269.1233897337799.javamail.worun@mailerp0201> Umh, looks like JavaMail adds itself to the Message-ID. Let's have a look to the FAQ:
Q: I set a particular value for the Message-ID header of my new message, but when I send this message that header is rewritten. A: A new value for the Message-ID field is set when the saveChanges method is called (usually implicitly when a message is sent), overwriting any value you set yourself. If you need to set your own Message-ID and have it retained, you will have to create your own MimeMessage subclass, override the updateMessageID method and use an instance of this subclass. class MyMessage extends MimeMessage { ...
protected void updateMessageID() throws MessagingException { setHeader("Message-ID", "my-message-id"); } ... }
So to answer my question, yes the iTunes Store mailer agent use JavaMail, and they didn't implement an own MimeMessage subclass. I wonder how (architecture, platform) and in which language iTunes store is implemented. Anybody knows? Mobile Blogging from here.
Labels: Java
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
|