full-address-column icon indicating copy to clipboard operation
full-address-column copied to clipboard

[Feature request] Showing raw addresses in Correspondents column

Open kanlukasz opened this issue 4 years ago • 10 comments

Hello, Could you please add an option (column) to show raw addresses in the Correspondents column?

kanlukasz avatar Feb 17 '21 16:02 kanlukasz

I'm not quite sure how to determine whether message is inbound or outbound from TB API, as original Correspondents column does - especially for folders containing both outgoing and incoming messages, for instance gmail's "All Mail" folder.

lkosson avatar Feb 18 '21 10:02 lkosson

Oh, ok, I didn't know it's complicated. Unfortunately, I have no idea how to help because I mainly work with PHP 😞

kanlukasz avatar Feb 20 '21 19:02 kanlukasz

I'm not quite sure how to determine whether message is inbound or outbound from TB API, as original Correspondents column does - especially for folders containing both outgoing and incoming messages, for instance gmail's "All Mail" folder.

Hi, I'm not java (or else) programmer, so I'm not sure if U can code it, but my idea is:

  1. read address twice
    • first from 'Corespondents' column,
    • second from 'recipient' column for example.
  2. compare those 2 addresses
    • if they are the same - it is incoming message,
    • else it is outcoming message.
  3. Display proper icon followed by address from 'Corespondents' column,

If icon is to complicated then maybe it is enough to display: '> ' or '>> ' for out- and '< ' or '<< ' for incoming nessage

Anyway, thank You for this 'must have' ext.

AdamTT avatar Jun 14 '21 13:06 AdamTT

The problem is I don't know how or if it is even possible to fetch content of "Corespondents" column programmatically.

lkosson avatar Jun 21 '21 05:06 lkosson

Well, I understand. I guess U read addresses direct from particular message headers, right?

AdamTT avatar Jun 21 '21 06:06 AdamTT

More or less - yes. The addon uses nsIMsgDBHdr as defined in https://hg.mozilla.org/comm-central/file/tip/mailnews/base/public/nsIMsgHdr.idl

lkosson avatar Jun 21 '21 06:06 lkosson

I see nsIMsgDBHdr reads only few headers. It is not able to check (for example) presence of header 'Delivered-To:' or 'Received:'?

AdamTT avatar Jun 21 '21 07:06 AdamTT

I don't think so. There are getProperty and getStringProperty methods, but they don't seem to have access to arbitrary MIME header - most likely because they operate on Thunderbird's internal message database, not a raw e-mail content.

lkosson avatar Jun 21 '21 08:06 lkosson

OK, I give up. Just promise me you will leave the note here if u discover a solution in the future. PS. Mówisz po polsku, nie? :)

AdamTT avatar Jun 21 '21 13:06 AdamTT

Sure will. I'll leave this issue open as long as it is relevant. PS. Tak :-)

lkosson avatar Jun 21 '21 16:06 lkosson