full-address-column
full-address-column copied to clipboard
[Feature request] Showing raw addresses in Correspondents column
Hello, Could you please add an option (column) to show raw addresses in the Correspondents column?
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.
Oh, ok, I didn't know it's complicated. Unfortunately, I have no idea how to help because I mainly work with PHP 😞
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:
- read address twice
- first from 'Corespondents' column,
- second from 'recipient' column for example.
- compare those 2 addresses
- if they are the same - it is incoming message,
- else it is outcoming message.
- 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.
The problem is I don't know how or if it is even possible to fetch content of "Corespondents" column programmatically.
Well, I understand. I guess U read addresses direct from particular message headers, right?
More or less - yes. The addon uses nsIMsgDBHdr
as defined in https://hg.mozilla.org/comm-central/file/tip/mailnews/base/public/nsIMsgHdr.idl
I see nsIMsgDBHdr reads only few headers. It is not able to check (for example) presence of header 'Delivered-To:' or 'Received:'?
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.
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? :)
Sure will. I'll leave this issue open as long as it is relevant. PS. Tak :-)