|Subject:||Expunge doesn't work vs Cyrus IMAP server.|
I am using Net::IMAP::Simple::SSL to build a feedback path for spam filtering from IMAP back to spamassassin and spamcop. I'm using Cyrus imapd as the server, and have observed the following glitches/ideosyncracies: 1) cyrus doesn't seem to like EXPUNGE with an argument. I haven't gone hunting through the IMAP RFC's yet but it would seem that you might need to save the current folder, SELECT the folder-to-expunge, EXPUNGE, then SELECT the original folder. 2) cyrus doesn't accept no-argument commands like EXPUNGE and QUIT when there's trailing whitespace in the command, reporting back errors such as: 8 BAD Unexpected extra arguments to Expunge. this causes both the EXPUNGE and QUIT run by the quit() method to fail because _send_cmd() always adds a space after the command verb even if there are no arguments..