Thunderbird Extensions
Apple - mac
Web iPhoto Access
Donation
Make a donation to help WiPhA development

Search




Preferences

 Count of members 29 members


Users online

( nobody )
Visits

 147708 visitors

 10 visitors online

Private
forum.gifForum - Yamb - Topic #15


Topic #15 Added mail body to list of arguments
    by hp - visitor
28/10/2005 @ 20:14
Anonymous
I have modified your (great) extension a bit, so to get the mail body as an argument as well. I you find this useful just tell me where to upload.
Write to hp Post an answer



Answer #1 by Globs - rank ( 38 messages )
28/10/2005 @ 22:35
Globs
Oh yes, I find it very useful. And it has already been asked by other users. That would be great.
One problem though: How does your modification deal with IMAP accounts, when the mail body is not retrieved ?

I have no place to upload. You can mail it to me or tell me where to download.
Site web Globs Write to Globs Post an answer

Top

Answer #2 by Globs - rank ( 43 messages )
01/11/2005 @ 22:48
Globs
More difficult that I thought:
  • the body retrieved is the raw body from the inbox file. This includes encoded attached part, plain/html multipart text, attached forwarded mails an so o­n. I implemented a simple parser to get the text part of the body, it seems to work pretty well, but the body may have so many differents aspects (generated by so many different Email clients) that I'm really not sure it will work fine for all messages.
  • The encoding of the text may also change: 7 bits can be displayed 'as is', but I can't decode UTF8 for instance.
  • The maximum length of a command line may be reached with a large message, which would lead to no notification. As no error is returned, I don't know how to dynamicaly get this limit (it probably depends o­n the OS).
The best way would be to use a Thunderbird API function to do all the work. I searched in the code but did not find it. If someone has a clue, he's welcome...

Site web Globs Write to Globs Post an answer

Top

^ Top ^

GuppY - http://www.freeguppy.org/    Site powered by GuppY v4.5.14 2004-2005 - CeCILL Free License   GuppY - http://www.freeguppy.org/

Document generated in 0.09 second