discussion: Basic message attachments over ipfs
Current implementation in AFJ for basic messaging encrypts the entire content few times (depending on does it have mediator or not). This creates memory spikes as encrypting large files is memory intensive task.
We can do the following:
- Receive message
- delete attachment content from mime
- store attachment content in ipfs
- send basic didcomm message with content { emailContent, ipfsHash } as base64
On receiver side
- decode base64
- get ipfsHash and get attachment from public ipfs gateway
- append attachment content in the mime
- store mime in imap if configured.