Date: | Mon, 9 Jun 2003 03:08:52 -0400 |
From: | Tara L Andrews <taralee [...] alum.mit.edu> |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
Subject: | IMAPClient.pm patch for use with imtest |
Hi,
I just finished writing a script that uses your module to talk to an IMAP
server, but uses the imtest command to do the actual connection and
(Kerberos4) authentication to the server.
As far as I can tell, since imtest is meant to be used interactively, it adds
its own \r whenever it encounters a newline, before sending the line to the
server. This means that the \r sent by IMAPClient confuses the server.
I made a change so that I could use IMAPClient with imtest; I just use the
Strip_cr() method inside the _send_line method, if an instance variable is
set.
I'm attaching a patch, although since I didn't look very hard at the rest of
the module it might not be sufficient. The ability to suppress the \r would
be very useful to have in a released version though.
Thanks!
-tara
Message body is not shown because sender requested not to inline it.