[Discuss] Extension dev : adding custom headers to email before
sending it
John Clizbe
JPClizbe at comcast.net
Wed Aug 2 18:39:00 EDT 2006
Yoann Babel wrote:
> Hi,
>
> I'm new to Thunderbird dev !
>
> I'm trying to write an extension. I would like to add custom headers
> before sending an email. I know "enigmail" already does thing like that.
> But, there's to many thing I don't know, and even by reading enigmail
> source code, I'm lost. I've been programming for many years, but I'm new
> to Javascript. And I don't know where to begin.
>
> I have installed DOM instpector and "Dev extension". It work pretty good.
>
> For the moment I would like to add an hard coded header like this one :
> X-MyHeader: customeheadervalue.
>
Try user.js in your profile folder:
// Add OpenPGP Headers to outgoing emails for Bozo at clown.org
user_pref("mail.identity.id1.headers","h1,h2,h3,h4,h5");
user_pref("mail.identity.id1.header.h1", "X-OpenPGP-KeyID: 0xDEADBEEFDECAFBAD");
user_pref("mail.identity.id1.header.h2", "X-OpenPGP-Fingerprint: FEDC
BA98 7654 3210 147A 258B DEAD BEEF DECA FBAD");
user_pref("mail.identity.id1.header.h3", "X-OpenPGP-Keyserver:
hkp://random.sks.keyserver.penguin.de");
user_pref("mail.identity.id1.header.h4", "X-OpenPGP-URL:
http://www.clown.org/pub.0xDecafBad.Bozo%20The%20Clown.asc");
user_pref("mail.identity.id1.header.h5", "X-OpenPGP-Request:
mailto:openpgpkeys at clown.org");
Sorry about the wrapping. These should all be one line each. default, id1,
id2,...id<n> specify with which mail identity they should be used.
--
John P. Clizbe Inet: John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. PGP/GPG KeyID: 0x608D2A10/0x18BB373A
"what's the key to success?" / "two words: good decisions."
"what's the key to good decisions?" / "one word: experience."
"how do i get experience?" / "two words: bad decisions."
"Just how do the residents of Haiku, Hawai'i hold conversations?"
More information about the Discuss
mailing list