Wildcard for command line attachment path?

User Help for Mozilla Thunderbird
Post Reply
User avatar
hariskar
Posts: 498
Joined: November 2nd, 2003, 4:03 am
Location: Kavala, Greece

Wildcard for command line attachment path?

Post by hariskar »

Can I use a wildcard for command line attachment to specify filename?
I want the filename to be the current date, extension is pdf, eg 20190109.pdf

thunderbird.exe -compose "attachment=E:JSignPdf/????????.pdf'"
and
thunderbird.exe -compose "attachment=E:JSignPdf/*.pdf'"

do not work. Of course this is the expected behavior since we use ''
Is there any solution for that?
Thank you!
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Wildcard for command line attachment path?

Post by tanstaafl »

http://kb.mozillazine.org/Command_line_ ... hunderbird
https://developer.mozilla.org/en-US/doc ... ne_Options

I'm not aware of any wild card support in the command line arguments. It also doesn't appear to support using environmental variables. Perhaps you could use javascript to generate the filename (based on the date) in whatever batch or shell file you are using to launch Thundebrird.
Post Reply