deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
682 stars 87 forks source link

Feature Request: Function to get mail sourcecode #154

Closed Simon-Laux closed 5 years ago

Simon-Laux commented 5 years ago

https://github.com/deltachat/deltachat-desktop/issues/492

Simon-Laux commented 5 years ago

This would be useful for debugging bugs like #163 when you don't have access to Thunderbird.

hpk42 commented 5 years ago

FWIW There is no "raw" persisted e-mail. You can set_config save_mime_headers and then call dc_get_mime_headers on a DC message id. The body is never saved in mime-format. In many cases it would be encrypted anyway so we'd better store the unencrypted mime message but keep a note that it was decrypted and with which key.

Keeping a copy of all messages in raw mime-format would double the storage usage. Then again on desktop that's not such a big issue compared to mobile.

Anyway, for now i think the "in-reply-to" #163 issue mentioned could be done with the save_mime_headers functionality and you could enable it by default in Desktop. After that is working we can see if there is a real need to go for full message bodies in raw format.