[imapfilter-devel] FETCH error
Lefteris Chatzibarbas
lefcha at hellug.gr
Thu Oct 2 12:38:18 EEST 2003
On Tue, Sep 30, 2003 at 09:18:06AM +0200, Mikael Nystr?m wrote:
>
> Hi,
>
> When I run imapfilter, I get the following error when doing FETCH
> HEADER. The respone to the FETCH HEADER is {805}.
> Any suggestions what the cause might be?
>
> [...]
>
> C: 00000008 FETCH 1 RFC822.SIZE
> S: 00000008 OK FETCH completed.
> c: 00000009 APPEND "INBOX" {1983}
> C: 0000000A FETCH 1 RFC822.HEADER
> imapfilter: writing data; error:00000000:lib(0):func(0):reason(0)
Ok, I reproduced the problem. Apply the attached patch and tell me if
it corrects the problem. You can do this, with something like:
$ tar -zxf imapfilter-0.9.3.tar.gz
$ patch -p0 < patch-0.9.3-1
$ cd imapfilter-0.9.3
$ make
-------------- next part --------------
diff -ruN imapfilter-0.9.3.orig/imap.c imapfilter-0.9.3/imap.c
--- imapfilter-0.9.3.orig/imap.c Sat Sep 27 23:11:19 2003
+++ imapfilter-0.9.3/imap.c Thu Oct 2 12:24:38 2003
@@ -10,8 +10,8 @@
buffer_t obuf; /* Output buffer. */
-static unsigned int tag = 0; /* Every IMAP command is prefixed with a
- * unique [:alnum:] string. */
+static unsigned int tag = 0x10000000; /* Every IMAP command is prefixed with a
+ * unique [:alnum:] string. */
unsigned int send_command(conn_t * conn, char *cmd);
@@ -31,6 +31,9 @@
verbose("%s: %s", (conn == &connpri ? "C" : "c"), cmd);
socket_write(conn, cmd);
+
+ if (tag < 0x10000000)
+ tag += 0x10000000;
return tag++;
}
More information about the Imapfilter-devel
mailing list