Message Filters: Tags show no color?

User Help for Mozilla Thunderbird
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Message Filters: Tags show no color?

Post by tanstaafl »

The account id is shown in the ID column in the mail & news section of help -> troubleshooting information. Its the left most column.

The config editor is at Tools -> options -> advanced -> general -> config editor if you are using Windows. Tools -> Options is Edit -> Preferences under OS X. I'm assuming you enabled the menu bar. If you didn't you can temporarily enable it by pressing the ALT key. The menu bar can be permanently enabled using view -> toolbars -> menu bar.

http://kb.mozillazine.org/Menu_differen ... 2C_and_Mac

Logs aren't created by default. You need to enable them using environmental variables per http://kb.mozillazine.org/Session_logging_for_mail/news . I use a imap.bat file that contains the following:

set MOZ_LOG=IMAP:5,timestamp
set MOZ_LOG_FILE=%APPDATA%\Thunderbird\Profiles\imap.log
set NSPR_LOG_MODULES=IMAP:5,timestamp
set NSPR_LOG_FILE=%APPDATA%\Thunderbird\Profiles\imap.log
"%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe"

The following in an except from a log file showing Thunderbrid sending a CAPABILITY command and getting a response from a Gmail IMAP server:

2018-06-23 17:04:10.233000 UTC - 1356[1693a040]: 14be4800:imap.gmail.com:NA:SendData: 1 capability
2018-06-23 17:04:10.270000 UTC - 1356[1693a040]: ReadNextLine [stream=173ad420 nb=173 needmore=0]
2018-06-23 17:04:10.270000 UTC - 1356[1693a040]: 14be4800:imap.gmail.com:NA:CreateNewLineFromSocket: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH
User avatar
tapetv
Posts: 150
Joined: September 27th, 2003, 3:39 am
Location: The Netherlands
Contact:

Re: Message Filters: Tags show no color?

Post by tapetv »

Back again: was truly too busy to proceed this search. So this is what I can find out so far.
The account id is 'account11', the third in line. "account1" is a test-account, "account 2" = Local Folders, "account 12" = Ziggo.
I'm absolutely no code-jockey and Terminal activities (Mac) make my head spin most of the time. I created a "IMAP_log.command" and it does seem to function, but the log that is written stays empty (zero bytes). Double clicking invokes the script:

Code: Select all

Last login: Thu May 23 13:15:53 on ttys000
TTV-MacPro:~ TapeTV$ /Users/TapeTV/Library/Thunderbird/IMAP_log.command ; exit;
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]
After that it returns: "A copy of Thunderbird is already open. Only one copy of Thunderbird can be open at a time." which sounds logical.
Alternatively, I can't understand how to use the Terminal to create an 'environment.plist': can't I do that with Text-edit and put the file in the right directory?
Again: not all too experienced on this level.

I can find a (outdated?) bug that seems similar to what I am experiencing here: http://kb.mozillazine.org/Tags
There is a bug in how tags are stored when a message is moved from a remote folder to a local folder. The information is stored in the .msf file rather than using a X-Mozilla-Keys: header. This means you can't search or filter that tag, and if you delete the .msf file in an attempt to fix a mildly corrupted folder you lose the tag.
Also looked in the Config Editor, but cannot find any "mail.server.serverN.capability". This seems related:

Code: Select all

user_pref("mail.server.server1.ageLimit", 30);
user_pref("mail.server.server1.applyToFlaggedMessages", true);
user_pref("mail.server.server1.cacheCapa.acl", false);
user_pref("mail.server.server1.cacheCapa.quota", true);
user_pref("mail.server.server1.check_new_mail", true);
user_pref("mail.server.server1.cleanupBodies", false);
user_pref("mail.server.server1.cleanup_inbox_on_exit", true);
user_pref("mail.server.server1.daysToKeepBodies", 30);
user_pref("mail.server.server1.daysToKeepHdrs", 30);
user_pref("mail.server.server1.directory", "/Users/TapeTV/Library/Thunderbird/Profiles/sjelll8g.default/ImapMail/imap.ziggo.nl");
user_pref("mail.server.server1.directory-rel", "[ProfD]ImapMail/imap.ziggo.nl");
user_pref("mail.server.server1.downloadByDate", false);
user_pref("mail.server.server1.downloadUnreadOnly", false);
user_pref("mail.server.server1.empty_trash_on_exit", true);
user_pref("mail.server.server1.force_select", "no-auto");
user_pref("mail.server.server1.hostname", "imap.vevida.com");
user_pref("mail.server.server1.keepUnreadOnly", false);
user_pref("mail.server.server1.login_at_startup", true);
user_pref("mail.server.server1.max_cached_connections", 5);
user_pref("mail.server.server1.moveOnSpam", true);
user_pref("mail.server.server1.moveTargetMode", 1);
user_pref("mail.server.server1.name", "info@tapetv.nl");
user_pref("mail.server.server1.namespace.personal", "\"INBOX.\"");
user_pref("mail.server.server1.numHdrsToKeep", 2000);
user_pref("mail.server.server1.realhostname", "mail.data1.me");
user_pref("mail.server.server1.serverFilterName", "SpamPal");
user_pref("mail.server.server1.serverIDResponse", "(\"name\" \"Dovecot\")");
user_pref("mail.server.server1.server_sub_directory", "INBOX");
user_pref("mail.server.server1.socketType", 2);
user_pref("mail.server.server1.spamActionTargetAccount", "imap://info%40tapetv.nl@imap.vevida.com");
user_pref("mail.server.server1.spamActionTargetFolder", "imap://info%40tapetv.nl@imap.vevida.com/Spam");
user_pref("mail.server.server1.storeContractID", "@mozilla.org/msgstore/berkeleystore;1");
user_pref("mail.server.server1.timeout", 29);
user_pref("mail.server.server1.trash_folder_name", "Trash");
user_pref("mail.server.server1.type", "imap");
user_pref("mail.server.server1.useServerFilter", true);
user_pref("mail.server.server1.userName", "info@tapetv.nl");
user_pref("mail.server.server1.whiteListAbURI", "moz-abosxdirectory:/// moz-abmdbdirectory://abook.mab");
user_pref("mail.server.server2.ageLimit", 30);
user_pref("mail.server.server2.applyToFlaggedMessages", false);
user_pref("mail.server.server2.cleanupBodies", false);
user_pref("mail.server.server2.daysToKeepBodies", 30);
user_pref("mail.server.server2.daysToKeepHdrs", 30);
user_pref("mail.server.server2.directory", "/Users/TapeTV/Library/Thunderbird/Profiles/sjelll8g.default/Mail/Local Folders");
user_pref("mail.server.server2.directory-rel", "[ProfD]Mail/Local Folders");
user_pref("mail.server.server2.downloadByDate", false);
user_pref("mail.server.server2.downloadUnreadOnly", false);
user_pref("mail.server.server2.hostname", "Local Folders");
user_pref("mail.server.server2.keepUnreadOnly", false);
user_pref("mail.server.server2.moveOnSpam", true);
user_pref("mail.server.server2.moveTargetMode", 1);
user_pref("mail.server.server2.name", "Local Folders");
user_pref("mail.server.server2.numHdrsToKeep", 2000);
user_pref("mail.server.server2.spamActionTargetAccount", "mailbox://nobody@Local%20Folders");
user_pref("mail.server.server2.spamActionTargetFolder", "imap://info%40tapetv.nl@imap.vevida.com/INBOX/Junk");
user_pref("mail.server.server2.storeContractID", "@mozilla.org/msgstore/berkeleystore;1");
user_pref("mail.server.server2.type", "none");
user_pref("mail.server.server2.useServerFilter", true);
user_pref("mail.server.server2.userName", "nobody");
user_pref("mail.server.server2.whiteListAbURI", "moz-abmdbdirectory://history.mab moz-abosxdirectory:/// moz-abmdbdirectory://abook.mab");
user_pref("mail.server.server3.cacheCapa.acl", false);
user_pref("mail.server.server3.cacheCapa.quota", true);
user_pref("mail.server.server3.check_new_mail", true);
user_pref("mail.server.server3.directory", "/Users/TapeTV/Library/Thunderbird/Profiles/sjelll8g.default/ImapMail/imap.ziggo-1.nl");
user_pref("mail.server.server3.directory-rel", "[ProfD]ImapMail/imap.ziggo-1.nl");
user_pref("mail.server.server3.force_select", "no-auto");
user_pref("mail.server.server3.hostname", "imap.ziggo.nl");
user_pref("mail.server.server3.login_at_startup", true);
user_pref("mail.server.server3.max_cached_connections", 5);
user_pref("mail.server.server3.moveTargetMode", 1);
user_pref("mail.server.server3.name", "tapetv@ziggo.nl");
user_pref("mail.server.server3.namespace.personal", "\"\"");
user_pref("mail.server.server3.port", 993);
user_pref("mail.server.server3.serverIDResponse", "(\"name\" \"Dovecot\")");
user_pref("mail.server.server3.socketType", 3);
user_pref("mail.server.server3.spamActionTargetAccount", "imap://tapetv%40ziggo.nl@imap.ziggo.nl");
user_pref("mail.server.server3.spamActionTargetFolder", "imap://tapetv%40ziggo.nl@imap.ziggo.nl/Spam");
user_pref("mail.server.server3.storeContractID", "@mozilla.org/msgstore/berkeleystore;1");
user_pref("mail.server.server3.timeout", 29);
user_pref("mail.server.server3.type", "imap");
user_pref("mail.server.server3.userName", "tapetv@ziggo.nl");
user_pref("mail.server.server4.authMethod", 4);
user_pref("mail.server.server4.cacheCapa.acl", false);
user_pref("mail.server.server4.cacheCapa.quota", true);
user_pref("mail.server.server4.check_new_mail", true);
user_pref("mail.server.server4.directory", "/Users/TapeTV/Library/Thunderbird/Profiles/sjelll8g.default/ImapMail/mail.tapetv.nl");
user_pref("mail.server.server4.directory-rel", "[ProfD]ImapMail/mail.tapetv.nl");
user_pref("mail.server.server4.force_select", "no-auto");
user_pref("mail.server.server4.hostname", "mail.tapetv.nl");
user_pref("mail.server.server4.login_at_startup", true);
user_pref("mail.server.server4.max_cached_connections", 5);
user_pref("mail.server.server4.name", "archives@tapetv.nl");
user_pref("mail.server.server4.namespace.personal", "\"INBOX.\"");
user_pref("mail.server.server4.serverIDResponse", "(\"name\" \"Dovecot\")");
user_pref("mail.server.server4.socketType", 2);
user_pref("mail.server.server4.spamActionTargetAccount", "imap://archives%40tapetv.nl@mail.tapetv.nl");
user_pref("mail.server.server4.storeContractID", "@mozilla.org/msgstore/berkeleystore;1");
user_pref("mail.server.server4.timeout", 29);
user_pref("mail.server.server4.trash_folder_name", "INBOX/Trash");
user_pref("mail.server.server4.type", "imap");
user_pref("mail.server.server4.userName", "archives@tapetv.nl");
Maybe the value for "mail.server.server1.applytoflaggedmessages" is off?
sorry to be so lengthy, but I feel like fishing in the dark here.

Thanks for any and all attention!
Arno Peeters
Tape TV Productions
User avatar
tapetv
Posts: 150
Joined: September 27th, 2003, 3:39 am
Location: The Netherlands
Contact:

Re: Message Filters: Tags show no color?

Post by tapetv »

Bump
Arno Peeters
Tape TV Productions
User avatar
tapetv
Posts: 150
Joined: September 27th, 2003, 3:39 am
Location: The Netherlands
Contact:

Re: Message Filters: Tags show no color?

Post by tapetv »

[-o<
Arno Peeters
Tape TV Productions
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Message Filters: Tags show no color?

Post by WaltS48 »

File another bug report or find the one you refer to in your other comment and add yourself to the CC list?
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
User avatar
tapetv
Posts: 150
Joined: September 27th, 2003, 3:39 am
Location: The Netherlands
Contact:

Re: Message Filters: Tags show no color?

Post by tapetv »

It's not that simple I'm afraid. Did you read the full thread?
Arno Peeters
Tape TV Productions
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Message Filters: Tags show no color?

Post by WaltS48 »

tapetv wrote:It's not that simple I'm afraid. Did you read the full thread?
Too much technical stuff I don't understand and I got lost in the code. :?

Best of luck getting the problem resolved.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Message Filters: Tags show no color?

Post by tanstaafl »

"I created a "IMAP_log.command" and it does seem to function, but the log that is written stays empty (zero bytes)."

That means it didn't make a tcp-ip connection to the mail server. Try typing the commands manually in the terminal window, verifying that the environmental variables were successfully set before launching Thunderbird.

Its not clear why mail.server.server1.capability doesn't exist since mail.server.server1 appears to be for a IMAP account. I checked my system and each of my 7 IMAP accounts has that type of setting. Only the one POP account and Local Folders don't.
morat
Posts: 6405
Joined: February 3rd, 2009, 6:29 pm

Re: Message Filters: Tags show no color?

Post by morat »

I have 2 Google IMAP accounts and I don't have the mail.server.server*.capability preference.

Search: /mail\.server\.server\d+\.cap/
camielData1
Posts: 2
Joined: April 5th, 2019, 6:00 am

Re: Message Filters: Tags show no color?

Post by camielData1 »

Hi @Tanstaafl and @Morat & others wizards out there:
I created an account on the same server/space as Tapetv so I can see what/where and if there are any differences between Imap capabilities of tapetv and the differences with a same level user.
I cannot find out why my filtering does work, even while it is on the same server so I suggest a local issue.

Managed to get the logging working on Mac and received the following log *** https://pastebin.com/JbMzPg7s *** after I color-tagged and moved a message between 2 folders the logs continued so I must have recorded enough actions.
I have 1432 rules of log code and have results for CAPABILITY on rules: 6, 18, 31, 41, 710, 723, 780 and 793. I cannot see if this tells us something about message-flag capabilities or not.
Any help with reading the logs would be great!

p.s. what @morat says is also true at my side, can't find any mail.server.server*.capability, but also can't find his reference: mail\.server\.server\d+\.cap/
Also did not find any in TB console editor.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Message Filters: Tags show no color?

Post by tanstaafl »

2019-06-02 11:16:30.483695 UTC - [1120:Unnamed thread 0x12f77d1c0]: I/IMAP 0x130a07800:panel.data1.me:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk $label2 $label1 $label5 $label3 $label4 reclame Junk \*)] Flags permitted.

has the \* in PERMANENTFLAGS that means it supports IMAP keywords, which is what are used to store tags for messages in remote folders. Same for the other eight. See http://kb.mozillazine.org/Tags

"Search: /mail\.server\.server\d+\.cap/" works in the config editor. I thought it supported a dumb literal search. I guess it supports regular expressions per https://developer.mozilla.org/en-US/doc ... xpressions . /safe/ for example seems to find all settings that include the substring safe such as browser.safebrowsing.* , layout.css.text-align-unsafe-value.enabled , security.ssl.require_safe_negotiation;false etc.

Your original post said "I see the tags are still applied, but without color". I believe only the name of the tag is stored, not its color. Its color is set locally in your settings. If you set a tag in a message in Local Folders is its line in the folder listing colored? Did you check tools -> options -> display -> tags still shows the tags using colored text?
User avatar
tapetv
Posts: 150
Joined: September 27th, 2003, 3:39 am
Location: The Netherlands
Contact:

Re: Message Filters: Tags show no color?

Post by tapetv »

tanstaafl wrote:If you set a tag in a message in Local Folders is its line in the folder listing colored? Did you check tools -> options -> display -> tags still shows the tags using colored text?
Yes: in Preferences > Display (Mac) there' still color. And when manually set, it functions the way it should. The weird thing is that when filters are run, colors are applied and removed instantaneously, as if the move to another folder makes the color go, or the server denies/strips that info from the header. Like said: it has always worked and was gone without a clear reason (like a system,- or TB-update).
Arno Peeters
Tape TV Productions
Post Reply