user632743
user632743

Reputation: 21

Mozilla Thunderbird API - read/write email

I am developing an extension for Mozilla Thunderbird to encrypt messages in the inbox.Are there any API calls in Thunderbird for reading from or writing to messages in the inbox?

I was going to encrypt all the messages with AES encryption and then I realised that it would change the size of all the messages because AES uses a block cipher which is a fixed size. This would mean I would have to update the index file separately. Before I reach that level of complexity I would like to be able to write a ceasar cipher.

Any help on Thunderbird email message I/O would be greatly appreciated.

Upvotes: 2

Views: 2807

Answers (1)

Neil
Neil

Reputation: 55402

You can't write to messages as such. For instance, when editing a draft, Thunderbird simply saves a new draft and deletes the previous one.

To read a message, you normally want to stream it. Unfortunately I can't remember how to save a new message to a folder.

Upvotes: 1

Related Questions