I use the "run program" action to send a string to a bash script that handles alerting me about new emails. The bash script also stores parameters to a log file so I can look later and see exactly what it was sent.
The specific "run program" action's string is /path/to/shell/scripts/terminalNotifierBridgeForThunderbird.sh,-j,@SUBJECT@,-u,@MESSAGEURI@,-s,@AUTHOR@,-d,@DATE@
Here's the email I am running the filter on. As you can see, it is from 2016:
Here is the log entry from terminalNotifierBridgeForThunderbird.sh directly dumping the parameters it receives to a log file:
Thu Feb 29 22:13:35 EST 2024 - -s ""Thumbtack" <do-not-reply@thumbtack.com>" -d "Thu Feb 29 2024 22:13:35 GMT-0500 (Eastern Standard Time)" -t "" -j "Vivek P. needs Web Programming in San Leandro, CA" -f "**work bulletins" -u "imap-message://username%40emailaddress.com@imap.gmail.com/**work bulletins#349" -f "**work bulletins"
You can see the value of @date@ the script received, after the "-d" flag, was Thu Feb 29 2024 22:13:35 GMT-0500 (Eastern Standard Time), the time I ran the filter, instead of the date of the email. Is this intentional?
You can see the code of the terminalNotifierBridgeForThunderbird.sh script at https://github.com/kupietools/terminal-notifier-bridge-for-thunderbird to see how it's just directly writing the parameters it receives to parameters.log on line 102 and 104. (It's current, I just updated the repo today.)
I use the "run program" action to send a string to a bash script that handles alerting me about new emails. The bash script also stores parameters to a log file so I can look later and see exactly what it was sent.
The specific "run program" action's string is
/path/to/shell/scripts/terminalNotifierBridgeForThunderbird.sh,-j,@SUBJECT@,-u,@MESSAGEURI@,-s,@AUTHOR@,-d,@DATE@
Here's the email I am running the filter on. As you can see, it is from 2016:
Here is the log entry from terminalNotifierBridgeForThunderbird.sh directly dumping the parameters it receives to a log file:
Thu Feb 29 22:13:35 EST 2024 - -s ""Thumbtack" <do-not-reply@thumbtack.com>" -d "Thu Feb 29 2024 22:13:35 GMT-0500 (Eastern Standard Time)" -t "" -j "Vivek P. needs Web Programming in San Leandro, CA" -f "**work bulletins" -u "imap-message://username%40emailaddress.com@imap.gmail.com/**work bulletins#349" -f "**work bulletins"
You can see the value of @date@ the script received, after the "-d" flag, was
Thu Feb 29 2024 22:13:35 GMT-0500 (Eastern Standard Time)
, the time I ran the filter, instead of the date of the email. Is this intentional?You can see the code of the terminalNotifierBridgeForThunderbird.sh script at https://github.com/kupietools/terminal-notifier-bridge-for-thunderbird to see how it's just directly writing the parameters it receives to parameters.log on line 102 and 104. (It's current, I just updated the repo today.)
Thanks.