A question, can an email that was moved by a filter get tagged by that filter
I have 70+ rules in Thunderbird. Every so often an email will be moved to a folder it does not belong to. Can the email, either separately or even at the bottom of the body include all the rules that modified or moved the message.
I'm thinking this is more of a diagnostic feature and the user should be able to turn it on or off.
Is this even doable given the way Thunderbird handles rules? Thank you for a great product and your time/attention to this.
-- Larry Crouch [email protected]
I have 70+ rules in Thunderbird. Every so often an email will be moved to a folder it does not belong to. Can the email, either separately or even at the bottom of the body include all the rules that modified or moved the message.
I'm thinking this is more of a diagnostic feature and the user should be able to turn it on or off.
I think the best way of finding out which filters were applied is built in: it's the "filter log" button on the message filters dialog. If you are wondering which filter may have moved mail to a specific folder, you can also use an advanced feature of quickFilters Pro: right-click the folder in folder tree and select "Find Filters" to quickly list all filters that move mail to this specific folder
Is this even doable given the way Thunderbird handles rules? Thank you for a great product and your time/attention to this.
The only thing I can imagine would be by adding an "x-" header (something like "x-filter-applied") as a new filter action. Or you could use a tag...
I'm
The only thing I can imagine would be by adding an "x-" header (something like "x-filter-applied") as a new filter action. Or you could use a tag...
I've been trying to do exactly this. I have an action that runs on incoming emails when the javascript criteria message.getStringProperty('X-first-folder-URI').length == 0 is satisfied:
/* console.log ("starting");
console.log (msgHdrs);
console.log("was",msgHdrs[0].getStringProperty("X-first-folder-URI").length); */
msgHdrs[0].setStringProperty("X-first-folder-URI", msgHdrs[0].folder.URI);
/* console.log("set");
console.log("is",msgHdrs[0].getStringProperty("X-first-folder-URI"));
console.log ("done"); */
I've also aded X-first-folder-URI to mailnews.customDBheaders, mailnews.customHeader, mail.compose.other.header, and mailnews.headers.extraExpandedHeaders, and added it to Tbird's built-in "customize..." option in the criteria header list.
By uncommenting the console.log lines, I can see the javascript is working as expected. But the custom x-header isn't written to the emails. Does msgHdrs not point to the original email? Is there a way to get it to save this so it stays with the emails? I can't use tags, I have too many folders and they change too frequently to set up a tag for each one.