rs / net-server-mail Goto Github PK
View Code? Open in Web Editor NEWExtensible Perl implementation of the STMP protocol and its different evolutions (ie: ESMTP, LMTP)
Home Page: http://search.cpan.org/dist/Net-Server-Mail/
License: Other
Extensible Perl implementation of the STMP protocol and its different evolutions (ie: ESMTP, LMTP)
Home Page: http://search.cpan.org/dist/Net-Server-Mail/
License: Other
According to RFC5321 section 4.3.2 Command-Reply Sequences server should just reply with 500 for invalid command.
Current implementation reply with 500 and write perl error message.
Steps to reproduce issue:
telnet localhost 2500
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 Server.com ESMTP Service ready
500 Syntax error: unrecognized command
Use of uninitialized value $verb in uc at /home/getresponse/perl/lib/site_perl/5.28.0/Net/Server/Mail.pm line 564.
When running the testing suite, the lmtp.t
test fails for me. CPAN Testers shows an issue on Windows, but I'm running GNU/Linux here, so I'm not sure why it's failing. I'm investigating further and hope to update with what I learn.
1..11
ok 1 - use Net::Server::Mail::LMTP;
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
not ok 11
# Failed test at t/lmtp.t line 52.
# Looks like you failed 1 test of 11.
Bug was introduced in:
$line =~ s/^(.*\s)/uc($1)/ge;
Lowercased "quit" does not have any following params. Because of that \s
does not match and command is not uppercased. Therefore it is not recognized as registered command:
< 220 Service ready
> quit
< 500 Syntax error: unrecognized command
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.