Hello,
The method of archiving e-mails in epesi will change in the upcoming release (1.3). However the basic principle remains the same.
When e-mail comes to an individual mailbox of the user (Roundcube client) it is not connected in any way to any records in epesi. You can delete it, forward, reply to it - the way you normally do in any mail client. If the e-mail message is to be kept in the history of the particular contact in epesi (Contact or Company) then you need to archive it:
What happens in the background:
- e-mail message is extracted from the mailbox and stored in epesi as on object (text message is stored in the database with links to atachments stored as files)
- e-mail message is moved to Epesi Archive folder (in case you want to do something with it in any IMAP e-mail client)
- e-mail addresses: From, To, CC - are scanned against CRM Contacts in CRM Companies in epesi and links to all matching e-mails/contacts are created for this archives e-mail
Please note that this is a true single instance of the e-mail object - the e-mail message is stored as an independent object with reference links created under all Contacts/Companies for which e-mail match is found.
When sending e-mail from within epesi - Roundcube IMAP client - you can toggle (by clicking on the Archive icon) if the sent message is to be archived the same way or not (simple send). We decided to separate Epesi Archive and Epesi Archive Sent to make it easy for the user to see what was received and what was sent. Your idea of combining these two folders will make this distinction impossible. Maybe in the future version we will let the user control (via User's Settings), where incoming and outgoing messages will be archived. Unfortunately this is a low priority item on our list.
As far as scanning the message header or message ID goes - yes, this is an interesting idea and we thought about it as well. First - it would prevent archiving messages that were already archived. This would go even further: imagine that 2 epesi users received the same e-mail message from someone. If user A already archived an e-mail then when user B is trying to archive the same e-mail (which will create a duplicate entry in e-mail history), he/she will receive a warning, that this e-mail was already archived. Secondly - if we can track e-mails by message ID we could introduce threaded view.
RE: your comments about IMAP folders: Sent vs. Epesi Sent Archive: both folders, being IMAP folders, are visible in any IMAP compatible e-mail clients (including MS Outlook). Here again the distinction is: Sent - is the folder that was sent without archiving in epesi, Epesi Sent Archive - is the folder that holds e-mails that were sent and archived in epesi:
In epesi version 1.3 the process of archiving e-mail works the same way in every folder.
Thank you for your valuable input. We will try to incorporate this idea in the future version of epesi.