[imapfilter-devel] IMAPFilter 1.0-rc2

Lefteris Chatzibarbas lefcha at hellug.gr
Thu May 6 11:59:07 EEST 2004


On Thu, May 06, 2004 at 11:02:17AM +1000, Gautam Gopalakrishnan wrote:
> On Thu, May 06, 2004 at 02:00:17AM +0300, Lefteris Chatzibarbas wrote:
> > Hello,
> > 
> > The changes since 1.0-rc1 are:
> > 
> >   * Fixed the bug where non-existent mailboxes were not created automatically
> >   when messages were copied or moved to them.
> 
> Nope! move() still loses mail. copy() does not work. I've attached the logs.
 

> Script started on Thu May  6 10:55:32 2004
> $ imapfilter -V
> IMAPFilter 1.0-rc2  Copyright (c) 2001-2004 Lefteris Chatzibarbas
> $ imapfilter -v
> Enter password for ggop at mail1.monash.edu.au: S: 3: * OK Messaging Multiplexor (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003))
> C: 3: 1000 CAPABILITY
> S: 3: 1000 OK CAPABILITY completed
> C: 3: 1001 LOGIN "ggop" *
> S: 3: 1001 OK User logged in
> C: 3: 1002 NAMESPACE
> S: 3: 1002 OK Completed
> C: 3: 1003 STATUS "INBOX" (MESSAGES RECENT UNSEEN)
> S: 3: 1003 OK Completed
> 9 messages, 0 recent, 4 unseen, in ggop at mail1.monash.edu.au/INBOX.
> C: 3: 1004 SELECT "INBOX"
> S: 3: 1004 OK [READ-WRITE] Completed
> C: 3: 1005 SEARCH ALL (subject "[imapfilter-devel]")
> S: 3: 1005 OK Completed
> C: 3: 1006 COPY 1,2,3,4,5 "imapfilter-devel"
> S: 3: 1006 NO Mailbox does not exist
             ^^^^^^^^^^^^^^^^^^^^^^^^^

Here is the problem;  the server does not return the [TRYCREATE] response.
>From the IMAP4rev1 (RFC 3501) specification:

  Unless it is certain that the destination mailbox can not be created, the
  server MUST send the response code "[TRYCREATE]" as the prefix of the text of
  the tagged NO response.  This gives a hint to the client that it can attempt
  a CREATE command and retry the COPY if the CREATE is successful.

It should return:

  NO [TRYCREATE] Mailbox does not exist

I will work on a way to bypass this problem.

Apart from that imapfilter should not delete the messages if the copy failed;
on which I'm working on.




More information about the Imapfilter-devel mailing list