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
DATA & lines starting with . (dot) #1
Comments
I agree, |
Initial idea is here: https://github.com/karel-m/p5-Mojo-SMTP-Client/commit/ea75bd07ad0650d0c3b627a4d6f29ff709832a16 After looking at https://metacpan.org/source/SHAY/libnet-3.08/lib/Net/Cmd.pm#L507 I am not sure whether we shouldn't also normalize newlines |
Another improvement: https://github.com/karel-m/p5-Mojo-SMTP-Client/commit/259918048b79524ab25a0d11afa848198f929783 Now the replacing regexp is handling It works fine when It seems like we will inevitably end up mimicing |
Thanks |
send()
method does not correctly handle a situation whendata
contains a line starting with.
(dot).According to: http://tools.ietf.org/html/rfc5321#section-4.5.2
The current way of handling
data
value might be a feature. In that case I propose adding named argumentdata_esc
which will handle the above mentioned escaping.Here is a demonstration - in both cases the second line is missing the dot at the beginning. It also demonstrates that it cannot be "solved" by feeding
data
with a string created byMIME::Lite->new(..)->as_string
. IMHO this escaping should happen inMojo::SMTP::Client
.The text was updated successfully, but these errors were encountered: