Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Showing raw addresses in Correspondents column #2

Open
kanlukasz opened this issue Feb 17, 2021 · 10 comments
Open

[Feature request] Showing raw addresses in Correspondents column #2

kanlukasz opened this issue Feb 17, 2021 · 10 comments

Comments

@kanlukasz
Copy link

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

@lkosson
Copy link
Owner

lkosson commented Feb 18, 2021

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.

@kanlukasz
Copy link
Author

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

@AdamTT
Copy link

AdamTT commented Jun 14, 2021

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.

@lkosson
Copy link
Owner

lkosson commented Jun 21, 2021

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

@AdamTT
Copy link

AdamTT commented Jun 21, 2021

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

@lkosson
Copy link
Owner

lkosson commented Jun 21, 2021

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

@AdamTT
Copy link

AdamTT commented Jun 21, 2021

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

@lkosson
Copy link
Owner

lkosson commented Jun 21, 2021

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.

@AdamTT
Copy link

AdamTT commented Jun 21, 2021

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? :)

@lkosson
Copy link
Owner

lkosson commented Jun 21, 2021

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

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

No branches or pull requests

3 participants