RFC 959
4.2. FTP REPLIES
<snip>
Thus the format for multi-line replies is that the first line will begin
with the exact required reply code, followed immediately by a Hyphen, "-"
(also known as Minus), followed by text. The last line will begin with the
same code, followed immediately by Space <SP>, optionally some text, and
the Telnet end-of-line code.
---
On login a MOTD of longer than one line will cause an error for anonymous
logins at the password section due to the server still sending 220 causing
the 331 password to fail (untested for real accounts). I assume that this
is the case for all multiline responses. For a possible solution ftplib etc
seem to have this covered but it's not the same API so it might not work :)
Original issue reported on code.google.com by
dfens...@gmail.comon 8 Nov 2008 at 6:12