bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] imap problem (quoting)


From: Nic Ferrier
Subject: [bug-mailutils] imap problem (quoting)
Date: 12 Jan 2003 02:09:48 +0000

I've found a problem with the mailutils IMAP server.

In bodystructure like responses, many of the string atoms are
returned unquoted, thus stuff like this gets sent to clients:

* 167 FETCH (UID 174 BODY (TEXT PLAIN ("CHARSET" "US-ASCII") NIL NIL 7BIT 2006 
42) ENVELOPE ("Mon, 6 Jan 2003 01:33:52 +0000 (UTC)" "[PATCHES] Patch libpq to 
use ~/.pgpass for conninfo connections" (("ljb" NIL "lbayuk" "mindspring.com")) 
((NIL NIL "pgsql-patches-owner" "postgresql.org")) (("ljb" NIL "lbayuk" 
"mindspring.com")) ((NIL NIL "pgsql-patches" "postgresql.org")) ((NIL NIL "NIL" 
NIL)) ((NIL NIL "NIL" NIL)) NIL "<address@hidden>"))


Note that the mime type and subtype are not quoted. 

I think this is against the spec, I think that the code is supposed
to send quoted strings (from what I can see in the 0.2 code).

This breaks at least one client, the GNUS imap code expects a quote
round string atoms (or a literal string).

Note also that some of the NIL atoms are being sent quoted, that's
wrong as well. NIL is nil as in Lisp, it doesn't have a data type and
so shouldn't be quoted.



I am looking at fixing this myself, but someone else might be able to
do it quicker since the necessary code in fetch.c looks pretty
complicated to me (what has this argv got to do with anything?).



Nic





reply via email to

[Prev in Thread] Current Thread [Next in Thread]