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

Hotkey - Issues -Question #674

Open
Patmatt22 opened this issue Jan 14, 2025 · 5 comments
Open

Hotkey - Issues -Question #674

Patmatt22 opened this issue Jan 14, 2025 · 5 comments
Assignees
Labels

Comments

@Patmatt22
Copy link

Patmatt22 commented Jan 14, 2025

We are just starting to use the experimental Hotkey - and it works - and it is great, but some questions remain:

We found a list of arguments for the export function:

/* Export types:
0 = EML
1 = HTML
2 = Plain Text
3 = MBOX
4 = MBOX (append mode)
5 = index (HTML)
6 = index (CSV)
7 = CSV (with body)
8 = HTML with attachments
9 = Plain Text with attachments
*/

But - and we would prefer it - the pdf-export, and this one is missing, does anyone has clue for us?

The attachements are copied in a folder "Attachement" is ist possible to copy them in the SAME folder as the exported mail itself?

Thank you all for your help!

Best regards
Matthias

@Patmatt22 Patmatt22 changed the title Hotkey - Issues Hotkey - Issues -Question Jan 14, 2025
@cleidigh cleidigh self-assigned this Jan 14, 2025
@cleidigh
Copy link
Collaborator

@Patmatt22
The whole hotkey access kind of got difficult with the new menu system and with all the other work I have not done anything on this.
First can you give me an example of a hk definition that is working for you?
I'm not sure the pdf will work, but I want to see if we can.

Right now I am trying to do a full rewrite which will have options for the attachments structure including same msg folder and folder per message. That will be awhile.
@cleidigh

@Patmatt22
Copy link
Author

Patmatt22 commented Jan 15, 2025

Hi Christopher, thank you for your answer - it is 8.00 oclock here and I checked this communication in a first step!

And by the way, thank you very much for your support of the thunderbird project!

To your question: I used this magic spell:

[{"id": "1", "key": "D", "modifiers": "control shift", "oncommand": "exportSelectedMsgs(0), exportSelectedMsgs(9)", "contexts": "messenger"}]

in the extensions.importexporttoolsng.experimental.hot_keys options

and it worked fine. I got an eyport with the original mail. txt.-copy and an attachment folder.

The background is at follows:

We often receive encrypted and signed mails. As soon we export/copy them in the windows system (explorer) we cannot use the preview, because of the encryption. In order to check the mails in the windows file system with the windows explorer, we have to open each single mail to check and this is not possible in our daily business, therefore, we cannot use a digital archive for our work.

The idea is now to make a print out in pdf and save the pdf together with the original mail (and the attachments). In this way, we can view the pdf with the preview handler of windows explorer.

Delayed Christmas wish

The most convenient way for us would be to export the mail as a decrypted mail by using a hotkey, so that we can use the preview handler of Windows explorer.

In this case, we would not even need a pdf printout. But all attempts up to now failed (making a decrypted copy in thunderbird and copy the decrypted mail in our system, it was still not possible to read).

Frankly spoken, would it be possible to add a further export possibility to export the mail as a decrypted .eml -file, which can be handled by the Windows Explorer preview handler?

Maybe, this would also help other users, because decrypted mails are something like the new standard.

In addition, as this would be a great help for our work, maybe we can speak about a contribution to your RI ALS/coffee project, if this would be a help in this case to support your thunderbird project from our side.

Matthias

@cleidigh
Copy link
Collaborator

@Patmatt22
A partial response because I'm having a really bad eye day...
I'm not sure how you got the hk definition. It has two exportSelectedMessages and the context messenger I also don't know where that came from.

One thing is even if I tweak code for hk pdf output, pdf doesn't export attachments right now.
Will send more tomorrow.
Thanks for your support!
@cleidigh

@Patmatt22
Copy link
Author

Hello Christopher,

yes, it was also surprising for me to use two exportselectmessages, but it worked. As I told, I'm not from IT, I'm just trying...

@cleidigh
Copy link
Collaborator

@Patmatt22
Sorry for the delay...

So we can worry about the hk def later. I'll address your general issues.

First on your desire to export messages decrypted AND be able to preview them with an explorer double click. You could export to either PDF or HTML and preview would work with your browser. While I would have to tweak the code for a PDF hk the issue is that right now you can't export attachments with PDF. So you can use a hk for html+attachments and get your explorer preview.

As far as exporting a decrypted eml , that would be non trivial. More importantly I don't see what it accomplishes differently than a pdf or html export. In fact if you double click on an email in explorer you open it in Thunderbird which I think is what you are trying to avoid .

Perhaps I am missing something that you can clarify.
@cleidigh

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

No branches or pull requests

2 participants