RealRaven2000 / FiltaQuilla

Adds many new mail filter actions to Thunderbird
http://quickfilters.quickfolders.org/filtaquilla.html
GNU General Public License v3.0
87 stars 15 forks source link

@date@ sending current timestamp, not timestamp of email. #252

Open kupietools opened 7 months ago

kupietools commented 7 months ago

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:

image

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.