Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Custom columns based on mail headers #20

Open
hashar opened this issue Nov 25, 2014 · 7 comments
Open

Custom columns based on mail headers #20

hashar opened this issue Nov 25, 2014 · 7 comments

Comments

@hashar
Copy link

hashar commented Nov 25, 2014

Just found your plugin which is kind of nice. It seems you can add an interface to let people add whatever mail headers they might need. There is a mailnews.customDBHeaders option which is a space separated and lower case list of headers that Thunderbird will index when receiving a new mail. For previously received emails, one needs to 'repair' the folder to force the reindexation and populate the fields values in the .msf file.

An interface can then build to add a column based on the field in customDBHeaders, this way you scale out the addition of new columns / headers to the end user instead of having to update your extension on each request :]

@micz micz added this to the v4.1 milestone Nov 25, 2014
@micz micz self-assigned this Jan 20, 2015
@micz
Copy link
Owner

micz commented Jan 26, 2015

Milestone 5.0 removed.
With version 5.0 it will be possible to add any custom column directly from the addon preference panel.
The feature to show any custom db header not linked with a custom column wil be added in a future release.

@micz micz removed this from the v5.0 milestone Jan 26, 2015
@micz micz removed their assignment Aug 6, 2015
@thebigconsultant
Copy link

Hi. I wish to also add custom header data into the column view. However, I do not understand how to create a column for 'return-path' for example.

  • I have typed in return-path for the ID and for Mail Header boxes, however I am getting no joy.
  • Could anyone explain?
    Many thanks!

@micz
Copy link
Owner

micz commented Nov 7, 2015

First you need to add a new custom column, with the editor:

165946

Put return-path as "ID" and "Mail Header".
The other fields are for display, so put in there what you want.

"Enabled" must be selected.

After that you need to select the new column from the messages list columns picker.
Please consider that the new column will be filled only for new received mails.

@rmroczk
Copy link

rmroczk commented Jul 9, 2016

I have followed these instructions and repaired the folder in order that the index be rebuilt but the return-path still does not show up. Any suggestions?

@micz
Copy link
Owner

micz commented Jul 18, 2016

In the last Thunderbird versions the index rebuild doesn't work to force a new column to be indexed. Which version are you using?
Is the new column filled for newly arrived emails?

@dexter777
Copy link

I also tried adding Return-Path, it doesn't work for current and new messages, it's empty. Other custom headers work, maybe it's related to https://bugzilla.mozilla.org/show_bug.cgi?id=494100

@micz
Copy link
Owner

micz commented Aug 18, 2016

@dexter777 I think you're right, this problem is related to that old Thunderbird bug.
Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants