Hello, I'm trying to figure out a way to do some cleanup on the subject of the messages I'm receiving, before TheBat! stores them in its DB.
As an example, here is a subject I'd like to cleanup: *****SPAM***** Re: R�f. : Re�: R�f. : Re: <actual subject> Because everyone is using a different mail application (Lotus Notes, MS exchange client, etc) the subject keeps getting polluted more and more each time someone replies. Furthermore my ISP adds this **SPAM** thing before mails coming from some addresses. Anyway. In Outlook, I had a rule to be executed on incoming mails, which would run a VB script (yikes) and modify the subject accordingly. This was working, more or less. Now in TB! I'd like to have the same thing, but haven't been able to find a way to do it yet. - I can't run a macro on incoming mails (which would be the simplest way I guess). - I tried to use the "run application" action, where TB! exports the incoming mail to a file, but this export is just one way; TB! doesn't read back the exported file, so it's useless. - I checked the plugin API, but it seems that the only function that gets called on each incoming message is the TBP_GetSpamScore function, which only allows reading data. Someone in TBBETA told me that I could use the "run external program" and from the external program, cleanup the exported message, then run thebat /import. As I did it by hand (launching a text editor on the exported message, modifying it, then running thebat /import on the modified message) it works, although a bit painful. Furthermore, most of the subject I receive are quoted-printable encoded (or even worse, B64 encoded!). But I worked around this too, I found / made some code to decode that. I'm still wondering if there is an easier way though :) -- Best regards, Zeflash mailto:[EMAIL PROTECTED] ________________________________________________________ Current beta is (none) | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/ -- Best regards, Zeflash mailto:[EMAIL PROTECTED] ________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html
