Forum

Share

Please consider registering
guest

Log In RegisterMembers
Or log in with

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Launch Files with Parameters
February 14, 2009
11:52 am
RobertG
Guest

Hi,

I would like to be able to launch a file based on a filter that takes the subject and/or body and passes it as a parameter to a the file to be launched, i.e. a python script or shell script.

My ultimate goal is to send an item to the OmniFocus Inbox from Thunderbird.  There is a rule that I can use for Mail.app that does this with applescript as well.  I just would like to keep using TB.  Is there a way to do this, or will there be in the future?

Thanks,

Robert

Share
February 14, 2009
12:29 pm
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

There has been a lot of interest in the ability to send parameters to the launch file action. I can also see that its use is limited without such parameters. So I will at least investigate how hard this is to do, and try to include something in the official release of FiltaQuilla. I will generally do a new release with each official release of the TB product. Since TB 3 beta2 is in its final stages, I guess that is pretty soon!

Looking briefly at the Mozilla documentation, it appears there is an nsIProcess interface and component that should be able to accomplish this. I'll play with that some, and see how it works. Probably what I need to do is to allow some replaceable parameters in the arguments sent to the program, maybe something like @SUBJECT@ @FROMNAME@ @FROMADDRESS@ etc.

Share
February 17, 2009
9:52 pm
RobertG
Guest

Ok, great!  I look forward to the release.   BTW, where do I go to find out the release schedule for TB 3.0 beta's?  Thanks again!

Share
February 18, 2009
1:48 am
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

You can see the Thunderbird beta2 schedule here:

https://wiki.mozilla.org/Thunderbird:Thunderbird_3.0b2

Share
November 1, 2011
7:59 am
jr
Guest

Great Add-on. Thank you!

 

I'm finding that @AUTHOR@ parameter in RunFile action is unreliable – I offten get @AUTHOR@ and not the name of the message sender. Does @AUTHOR@ use From: or Sender: header – or both/either?

 

Filterquilla 1.2.0 on Thunderbird 3.1.5 on openSuse 11.4

 

Thanks! Wink

Share
November 2, 2011
9:37 am
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

The @AUTHOR@ parameter gives you the value of the "author" that is in the message summary header (actually hdr.mime2DecodedAuthor). That is set by core code here http://mxr.mozilla.org/comm-ce…..x.cpp#1297

 

That is not the same necessarily as one of the standard email headers like SENDER or FROM. The core code first tries to set it to from, if that is missing it uses sender, if that is missing it uses the envelope from.

Share
November 17, 2011
11:05 am
jr
Guest
7
Awaiting Moderation

Share
November 30, 2011
5:16 am
jr
Guest
8
Awaiting Moderation

Share
January 16, 2012
11:41 am
acors
Guest
9
Awaiting Moderation

Share
Forum Timezone: UTC -8

Most Users Ever Online: 18

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

bobkatz: 8

BigMike: 8

t2m: 7

zabolyx: 7

taa: 6

onlyme: 6

Member Stats:

Guest Posters: 130

Members: 565

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 231

Posts: 802

Moderators: rkent (323)

Administrators: rkent (323)