Write a record to a file on a web server?

Discussion of general topics about Mozilla Thunderbird
Post Reply
FFman
Posts: 337
Joined: January 28th, 2012, 2:06 pm

Write a record to a file on a web server?

Post by FFman »

Is it possible to write a plugin (or something) to write a record to a file on a web server whenever an email is sent?
I am familiar with server side scripting e.g. PHP but have no experience with TB plugins. tia.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Write a record to a file on a web server?

Post by tanstaafl »

What you want to do is very reasonable but things are pretty chaotic right now.

Thunderbird no longer supports browser type plug-ins. It supports add-ons, but the API is in flux due to Firefox/Gecko moving to the WebExtensions API. They are still figuring out what mail-centric features to add to the new API. Legacy APIs won't be supported for long. See the Add-on Guides and github based repositories section of http://kb.mozillazine.org/Other_sources ... nformation

I suggest you take a look at https://addons.thunderbird.net/en-US/th ... la/?src=ss . The FiltaQuilla add-on adds many features to the message filters. Message filters support filters that run automatically when you send something. One of the filter actions the add-on adds is run a file. You can pass parameters to it. That would let you run something else (such as a vbscript file) that does what you want, without having to write an add-on.

The original author of that add-on is longer maintaining it, somebody else has taken over it. It may take them a while to get everything working for the latest release.
FFman
Posts: 337
Joined: January 28th, 2012, 2:06 pm

Re: Write a record to a file on a web server?

Post by FFman »

Thanks very much tanstaafl for your reply.
I'll have a look at the links you quoted.
morat
Posts: 6427
Joined: February 3rd, 2009, 6:29 pm

Re: Write a record to a file on a web server?

Post by morat »

Mailbox Alert allows you to specify a system command that will be executed when new mail is found in the sent mail folder.

Mailbox Alert is actively maintained. (supports the new API)

http://addons.thunderbird.net/thunderbi ... box-alert/
http://tjeb.nl/Projects/Mailbox_Alert/
http://tjeb.nl/Projects/Mailbox_Alert/Manual/
FFman
Posts: 337
Joined: January 28th, 2012, 2:06 pm

Re: Write a record to a file on a web server?

Post by FFman »

Thanks morat, sounds interesting, I'll have a look at it.
Post Reply