Closed Bug 356860 Opened 19 years ago Closed 19 years ago

Custom columns from message headers

Categories

(SeaMonkey :: MailNews: Message Display, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla.org, Assigned: Bienvenu)

Details

(Keywords: dev-doc-needed, fixed1.8.1)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.5) Gecko/20060720 SeaMonkey/1.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.5) Gecko/20060720 SeaMonkey/1.0.3 In the message index view, I have a choice of the following columns: Thread Attachments Junk Status Sender Recipient Read Date Status Flag Label Priority Unread in Thread Total in Thread Order Received Account I would also like to see the ability to add any message header as a column. For example, my server does spam filtering, and it applies a numeric score as a message header, like this: X-Spam-Score: 0 I would like to be able to specify this header as a column. That way, in the index, there would be a column that lists the spam scores. This would help me tune the spam filter, but this feature could have lots of other uses. Reproducible: Always
We recently added the ability for extensions to add arbitrary columns to the thread pane. What's missing is the ability to store arbitrary headers in the .msf files, controlled by a pref. Once I do that, someone could write an extension to show arbitrary columns in the thread pane.
this allows extensions to set/add to a pref controlling which headers we download and parse, and store in the .msf file, accessible from nsIMsgHdr.getStringProperty This could enable some interesting extensions, in conjunction with the custom column stuff we did earlier.
Assignee: mail → bienvenu
Status: UNCONFIRMED → ASSIGNED
Attachment #242809 - Flags: superreview?(mscott)
Comment on attachment 242809 [details] [diff] [review] add ability to customize headers we store in the .msf file This can probably get removed: + else + { + } This should be really cool David!
Attachment #242809 - Flags: superreview?(mscott) → superreview+
I think Eric already has the custom tree columns thing on his list of desired Thunderbird documentation. This feature goes hand in hand with that and should be on the list too.
Fixed on trunk and branch. One crucial thing to document is that the property that's set on the msg hdr is all lower case - e.g., if you add X-Spam-Score to the list of message headers to store in the .msf file, you would get the property "x-spam-score" from the msg hdr. Mail headers are all case-insensitive, so we convert them to lower case...
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Comment on attachment 248409 [details] [diff] [review] make list of headers be space delimited since ',' is apparently a legal char in a header is there documentation devmo that might need updated to reflect this change?
Attachment #248409 - Flags: superreview?(mscott) → superreview+
I did a devmo search on the pref in question, mailnews.customDBHeaders, and didn't get any hits...so I don't think there's anything up there.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: