mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #298] [Feature Request] ICS viewer #198
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @t4keo on GitHub (May 17, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/298
Hi !
I was wondering if it would be possible to add an ICS content viewer when a mail contains an ICS file.
I would like to see a view of the content of it, something like it would be in GMail or any other provider (without the ability to accept or refuse of course) or in a proper table with properties translated so its a bit prettier than reading it in raw format (parsed date for example)
It could be in another tab in the mail view and if it can have an "agenda view" to see where it would be placed in it, its a small bonus
Thanks in advance and let me know if you need more informations
@axllent commented on GitHub (May 17, 2024):
Can you please explain what information you would like to see exactly, and in what layout/format? Is it just the description, "when" (date & time) and guests?
@t4keo commented on GitHub (May 17, 2024):
To make it very simple in a first integration, just a new tab "ICS" containing a table with 2 columns like below is already good because I wouldn’t have to download it to see what’s inside. As said previously, if some properties could be explained or parsed it would be a good thing like for Date Start, end and stamp.
or with parsed values (at GMT +2 to show parsing)
I don’t really know how it could be shapped better to make it more pretty tho
@axllent commented on GitHub (May 17, 2024):
To be honest, at this stage I'm not keen to add another tab for just this, or to just list keys/values from the ICS as that isn't user friendly (nor does it mean it was interpreted correctly client side).
I think a browser-parsed (JavaScript) display is the way to go, so I'll look into integrating it into the main message view (maybe similar to how Gmail does it, but probably below where the attachment icons are or something, or as a modal when the ICS is clicked).
Leave this with me 👍
@axllent commented on GitHub (May 18, 2024):
I have added this new feature in v1.18.3. It turns out parsing an iCalendar file is actually quite complicated, despite being such a simple format. The main issue I have encountered in working with timezones and recurring events, so I have completely ignored that for now until it actually turns out it is a problem.
Then I discovered that some applications (eg: Office365) don't actually attach an ics file as such, but rather "embed" the ics as an unnamed message part. Mailpit ignores these entirely. Google embed it too, but also attach an ics file (effectively duplicating the info twice in every email). Anyway, at this stage I have focused on just the ics attachments (ie: the ones Mailpit already saw as attachments). Clicking on the attachment at the bottom of a message will open a modal window with a summary which also provides a download link (from the modal).
Looking forward to your feedback.
@t4keo commented on GitHub (May 21, 2024):
Awesome !
Hope it will please other people also. Maybe the integration of the recursivity or timezone will appear in a later issue but as far as I need it, it’s a great implementation and time saving feature.
Thanks for the fast integration :)
@axllent commented on GitHub (May 21, 2024):
Timezone & recursivity may be added down the track if there is a demand, but I'm not going to plan that in at this stage as it's not a simple implementation, and I don't know if the benefit outweighs the effort needed to get that working. Sometimes one can put a lot of hours into developing something that nobody uses/needs :)
You're welcome, and I hope it helps you! I'll close this ticket now, thanks.