mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-27 01:06:01 +03:00
[GH-ISSUE #317] POP3 server: have option to not delete emails right away #208
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#208
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 @antonionardella on GitHub (Jun 20, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/317
Hello again @axllent
for some debugging I needed to keep the emails in the POP3 server even if the client tells to delete them.
Let me know if it is of interest for you
I added the functionality here:
https://github.com/axllent/mailpit/compare/develop...antonionardella:mailpit:no-delete
And also updated the documentation here:
https://github.com/axllent/mailpit-website/compare/develop...antonionardella:mailpit-website:patch-1
If it is making more of a mess than anything, feel totally free to ignore this issue.
Best,
Antonio
@axllent commented on GitHub (Jun 20, 2024):
HI again @antonionardella. I'm afraid this option would break RFC compliance for the POP3 server. The POP3 client would tell the server to delete the messages, and the server would just ignore it. This means that next time the client connects it believes the messages are new and downloads them again and again etc.
The POP3 client protocol already has an option not to delete (simply by not telling the server to delete) - which is typically the option to "leave messages on server" (or "leave messages on server for X days") found in most mail clients. What am I missing here?
@antonionardella commented on GitHub (Jun 20, 2024):
No worries, I thought about that
The issue is that zammad is deleting messages every 30 seconds, which removed the ability to debug and read texts (if one is not quick enough 🤣)
As of Zammad it depends on the server configuration https://community.zammad.org/t/emails-are-deleted-from-my-inbox-when-using-it-as-channel/4419/2?u=skip

Therefore I added a debug flag on my fork to keep messages anyway, at least for debugging reasons.
No worries at all. Let me close this issue then.
Thank you for your time and availability!
@axllent commented on GitHub (Jun 20, 2024):
No problem. I really hate saying "no", especially when a user provides a PR, but I have to be careful not to add custom non-compliant features because it adds more options, and more code to maintain (and possibly confuse other users with) :)