-
Notifications
You must be signed in to change notification settings - Fork 530
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
.EML attachments support #2722
Comments
It should just parse EML and save? It does not suppose that some request should be sent upon opening to confirm receival? Or the email is already considered as received if it was fetched from the IMAP mailbox? |
I think the best implementation would be to show the email in a modal and leave the choice to import it to the user (maybe the email should be related to the parent to avoid importing duplicates?) |
Wouldn't it be easier just to parse the attachment during import and save a body and attachments as a regular email? I don't get the point of having an option to parse or not to parse. |
If an email does not contain body but contains only one EML we could parse it right away. I don't know how such emails are usually formatted. |
A have a few more questions.
Thanks |
|
Do they have own Message-ID? |
yes they do. If you need it and you have a mailbox configured in Espo I can forward you one of these messages |
There's the issue with very large emails. We can't view them in browser w/o saving all attachments on the server before. |
Attachment can be of any format. E.g. 1GB video file. |
These email are usually used for documents so not larger than a few mb, I understand that we have to consider all use cases. Or automatic importing of the email and clicking on the .eml attachment will redirect you to the record view for that email. |
It's not that easy. We had a similar discussion for our own resource service accessing emails thru our service (consumed from other systems like workflows). The main email is what we want as main reference/resource and not mismatch with metadata from the attachments. We decided to implement a hierarchy concept which means: from the main email we support to navigate into known containers like eml (even on the api level) but I guess that would be a major change for espocrm. In that case we would need something like a viewer concept. Just dumping out the mail's content if it's an eml file would open pandora's box ... |
Hi @hi-ko |
I have thought about it a little:
If this releation is shown on both sides (is attached in mail, has attached mail) the required transparency could be achived. |
what I see as pandora's box is:
In order not to get completely lost here, it would probably be easiest to allow any number of emails with the same message-id. the only question is how this maps with other use cases which use message-id. |
Is your feature request related to a problem? Please describe.
Registered Electronic Mail (Certified Email) is getting more and more popular nowadays both for business and personal use.
Usually you get an email with an .eml attachment that contains the real email content.
It would be ideal if Espo supported the opening of eml instead of direct download as inline attachment.
Describe the solution you'd like
Clicking on an .eml attachment (maybe only if inside email entity?) will open a modal showing the email and its attachments with a button to import the email if the user wants; to avoid automatic importing on viewing.
Describe alternatives you've considered
I've developed a custom extension to parse and import .eml as Archived emails using an entrypoint; A button will show in the email detail view if a 'message/rfc822' attachment type has been found and it will first parse the email and generate a .json containing the .eml data (to make it easier debugging) and then it will save an archived email using the data from the json.
Additional context
Certified email is a special type of email in use in Italy, Switzerland, Hong Kong and Germany.
It would also be useful when you get other email as an attachment from someone else.
The text was updated successfully, but these errors were encountered: