mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #299] POP3 server does not do dot stuffing #201
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#201
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 @henningp on GitHub (May 18, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/299
The POP3 server currently doesn't do "dot stuffing".
From the POP3 spec:
In practice, this means that any message line starting with a dot must have an extra dot added at the start of the line. (The same technique is used in SMTP.) Mailpit's POP3 doesn't do this, resulting in dots at the start of lines going missing when getting messages via POP3.
@axllent commented on GitHub (May 18, 2024):
@henningp - thank you, I did not know this. So if I understand this correctly, a message that contains the following in the returned body (from a POP3 server):
would get "translated" (transformed) by any POP3 client to:
?
In order to address this, we need to prepend a dot on any line that starts with a dot to result in:
Am I 100% correct in my understanding?
@henningp commented on GitHub (May 18, 2024):
Hi @axllent, neither did I know about this until this week, and it was a royal pain to debug 😀 Yes, your understanding is exactly correct! Thanks for your swift reply.
I‘m running a patched Mailpit for now with this fix, and that stopped dots from going missing seemingly at random in my tests using POP3.
@axllent commented on GitHub (May 18, 2024):
Thanks so much @henningp - I really appreciate it! I suspect I may have come across this issue before but never worked it out :-)
Your patch looks good (well done) - so I'll merge this soon (I'm just working on something else right now) and get a new release out as soon as I can.
@henningp commented on GitHub (May 18, 2024):
Brilliant, thanks! 😊
@axllent commented on GitHub (May 18, 2024):
This has been released in v1.18.3 :) Thanks again for your PR @henningp!
@henningp commented on GitHub (May 18, 2024):
Oh wow, thank you @axllent! :-D