MozillaZine

Is it possible to group messages by part of mail body?

Discussion of features in Mozilla Thunderbird
jakubdb
 
Posts: 4
Joined: August 13th, 2015, 1:52 am

Post Posted August 13th, 2015, 2:46 am

Hi!

We are using Thunderbird to catch all errors sent by mail, from our application. In every mail, we have backtraces, and other info. One part of mail body is unique number (for example ID:1234).

My question is - can Thunderbird (or any TB plugin) group messages by this ID in mail body (for example group in threads)?

DanRaisch
Moderator

User avatar
 
Posts: 119722
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted August 13th, 2015, 4:32 am

How is the account set up in Thunderbird, as POP or IMAP? Find out using menu path Tools->Account Settings->Server Settings->Server Type at the top right of the dialogue.

jakubdb
 
Posts: 4
Joined: August 13th, 2015, 1:52 am

Post Posted August 13th, 2015, 6:28 am

I'm using POP3. But if my problem can be solved only in IMAP account, I have no problem switching to IMAP.

DanRaisch
Moderator

User avatar
 
Posts: 119722
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted August 13th, 2015, 7:50 am

No, actually searching in or filtering on elements in the message body with an IMAP account is more problematic because the data is actually on the server until each message is opened for viewing.

What you might try is using menu path Edit->Find->Search Message->select "Body"+"Contains"+"ID:1234" and then clicking on the "Search" button. you can then save the results to a "Search Folder" (a virtual folder) and use the regular View tools including "Sort" and "Group by Sort".

jakubdb
 
Posts: 4
Joined: August 13th, 2015, 1:52 am

Post Posted August 13th, 2015, 10:42 pm

DanRaisch wrote:No, actually searching in or filtering on elements in the message body with an IMAP account is more problematic because the data is actually on the server until each message is opened for viewing.

What you might try is using menu path Edit->Find->Search Message->select "Body"+"Contains"+"ID:1234" and then clicking on the "Search" button. you can then save the results to a "Search Folder" (a virtual folder) and use the regular View tools including "Sort" and "Group by Sort".


That's a shame. Yes, it will work like that, but this ID is not always same. This ID is PHP PID, where the problem occurs. I want to automatically group messages, that comes from same PID, so in folder I might see groups of error messages, that indicates multiple messages for one "problem". For example, if there is a problem with paying for order, we recieve emails from order subsystem, online paying abstract subsystem, then PayPal subsystem and other parts, that indicates same problem.

If is not possible, never mind. But is it possible to create plugin, that will do this? I'm a developer so I can create it.

Thanks for your replies.

DanRaisch
Moderator

User avatar
 
Posts: 119722
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted August 14th, 2015, 4:37 am

These sites might be helpful to you -- https://developer.mozilla.org/en-US/Add-ons/Thunderbird and http://kb.mozillazine.org/Getting_start ... evelopment

But have you tried the Saved Search approach? It's not clear to me why you feel the process you describe can not be accomplished using that procedure.

jakubdb
 
Posts: 4
Joined: August 13th, 2015, 1:52 am

Post Posted August 14th, 2015, 5:57 am

DanRaisch wrote:These sites might be helpful to you -- https://developer.mozilla.org/en-US/Add-ons/Thunderbird and http://kb.mozillazine.org/Getting_start ... evelopment

But have you tried the Saved Search approach? It's not clear to me why you feel the process you describe can not be accomplished using that procedure.


No, I didn't tried it yet, because I don't want to do this search procedure manually. I want to open mail folder and see groups of "problems" (message groups, grouped by ID in message body). Saved search will only trigger a search with predefined conditions. I don't want to create a saved search for every problem (messages with same process ID).

Return to Thunderbird Features


Who is online

Users browsing this forum: No registered users and 2 guests