--On Wednesday, January 29, 2003 3:24 PM -0500 Mulberry Support <[EMAIL PROTECTED]> wrote:

Hi Joel,

--On Tuesday, January 28, 2003 07:04:09 PM -0800 "Joel M. Baldwin"
<[EMAIL PROTECTED]> wrote:

| Mulberry is closing the mailbox because of something that it
| doesn't like when a FETCH command is issued.  I don't know if
| this is a problem with dbmail ( likely ), or Mulberry.

This is a dbmail bug and its a fairly common bug we see in new IMAP
servers. From the log:

* 79 FETCH (FLAGS (\Recent) RFC822.SIZE 11427 UID 87074 INTERNALDATE
"28-Jan-2003 10:34:36" ENVELOPE ("28 Jan 2003 18:34:05 -0000"
"*****SPAM***** Your credit application has been approved. 113078154"
((NIL NIL ""CreditDept."" "mtsbp540.email-deliveries.net")) ((NIL NIL


Note that 'CreditDept.' appears inside of a double set of
double-quotes! That is wrong. If double-quotes are part of the phrase
in the email address, then they should appear 'escaped' in the IMAP
response:

Thank you for the prompt response.  I've found and fixed this
double-quote problem.  ( solution at end of email for those interested )

However the previous email included 2 examples, and this solves only
one of them.  How about this one?


----------------------------------------------------------------
Mulberry IMAP protocol log
----------
* 99 FETCH (FLAGS (\Seen) RFC822.SIZE 11362 UID 15744 INTERNALDATE
"24-Jan-2003 08:41:49" ENVELOPE ("Fri, 26 Feb 1999 01:27:50 -0600"
"[yosemite] Hi!" (({15}
"David Laville"
NIL "dlaville" "worldnet.att.net")) (({15}
"David Laville"
NIL "dlaville" "worldnet.att.net")) ((NIL NIL "yosemite"
"egroups.com")) ((NIL NIL "yosemite" "egroups.com")) NIL NIL NIL
"<[EMAIL PROTECTED]>") BODYSTRUCTURE (("text"
"plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 3877 77 NIL
NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL
"quoted-printable" 5462 171 NIL NIL NIL) "alternative" ("boundary"
"----=_NextPart_000_0015_01BE6127.3986B1A0") NIL NIL))
* 100 FETCH (FLAGS (\Seen) RFC822.SIZE 1624 UID 15745 INTERNALDATE
"24-Jan-2003 08:41:50" ENVELOPE ("Sat, 24 Apr 1999 23:21:52 -0600"
"[Yosemite] Does any one know of any good pet travel sites?" (({16}
"Mike Edmondton"
NIL "netdir" "ibm.net")) (({16}
"Mike Edmondton"
NIL "netdir" "ibm.net")) ((NIL NIL "Yosemite" "onelist.com")) (({15}
"New Recipient"
NIL "Yosemite" "onelist.com")) NIL NIL NIL
"<[EMAIL PROTECTED]>") BODYSTRUCTURE ("text" "plain"
("charset" "US-ASCII") NIL NIL "7bit" 443 12 NIL NIL NIL))
* 101 FETCH (FLAGS (\Seen) RFC822.SIZE 76069 UID 15746 INTERNALDATE
"24-Jan-2003 08:41:52" ENVELOPE ("Sun, 25 Apr 1999 00:02:28 -0700"
"[Yosemite] [Fwd: [NaturePhotoTrips] Endangered Bighorn Sheep]"
(("tdhieger" NIL "tdhieger" "sierra.psnw.com")) (("tdhieger" NIL
"tdhieger" "sierra.psnw.com")) ((NIL NIL "Yosemite" "onelist.com"))
((NIL NIL "Yosemite" "onelist.com")) NIL NIL NIL
"<[EMAIL PROTECTED]>") BODYSTRUCTURE ("message" "rfc822" NIL
NIL NIL "7bit" 74682  NIL ("inline"  NIL) NIL))
----------
hand typed commands to the dbmail IMAP server
( to see the server response that is causing the trouble )
( is it message 100 or message 101? )
----------
su-2.05b# telnet 0 144
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
* OK dbmail imap (protocol version 4r1) server 0.9 ready to run
a01 login qumqats xxxxxx
a01 OK LOGIN completed
a02 select Yosemite
* 568 EXISTS
* 1 RECENT
* FLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent )
* OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent
)]
* OK [UIDVALIDITY 14] UID value
* OK [UNSEEN 0] first unseen message
a02 OK [READ-WRITE] SELECT completed
a03 fetch 99:101 ( flags rfc822.size uid internaldate envelope
bodystructure )
* 99 FETCH (FLAGS (\Seen) RFC822.SIZE 11362 UID 15744 INTERNALDATE
"24-Jan-2003 08:41:49" ENVELOPE ("Fri, 26 Feb 1999 01:27:50 -0600"
"[yosemite] Hi!" (({15}
"David Laville" NIL "dlaville" "worldnet.att.net")) (({15}
"David Laville" NIL "dlaville" "worldnet.att.net")) ((NIL NIL
"yosemite" "egroups.com")) ((NIL NIL "yosemite" "egroups.com")) NIL NIL
NIL "<[EMAIL PROTECTED]>") BODYSTRUCTURE (("text"
"plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 3877 77 NIL
NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL
"quoted-printable" 5462 171 NIL NIL NIL) "alternative" ("boundary"
"----=_NextPart_000_0015_01BE6127.3986B1A0") NIL NIL))
* 100 FETCH (FLAGS (\Seen) RFC822.SIZE 1624 UID 15745 INTERNALDATE
"24-Jan-2003 08:41:50" ENVELOPE ("Sat, 24 Apr 1999 23:21:52 -0600"
"[Yosemite] Does any one know of any good pet travel sites?" (({16}
"Mike Edmondton" NIL "netdir" "ibm.net")) (({16}
"Mike Edmondton" NIL "netdir" "ibm.net")) ((NIL NIL "Yosemite"
"onelist.com")) (({15}
"New Recipient" NIL "Yosemite" "onelist.com")) NIL NIL NIL
"<[EMAIL PROTECTED]>") BODYSTRUCTURE ("text" "plain"
("charset" "US-ASCII") NIL NIL "7bit" 443 12 NIL NIL NIL))
* 101 FETCH (FLAGS (\Seen) RFC822.SIZE 76069 UID 15746 INTERNALDATE
"24-Jan-2003 08:41:52" ENVELOPE ("Sun, 25 Apr 1999 00:02:28 -0700"
"[Yosemite] [Fwd: [NaturePhotoTrips] Endangered Bighorn Sheep]"
(("tdhieger" NIL "tdhieger" "sierra.psnw.com")) (("tdhieger" NIL
"tdhieger" "sierra.psnw.com")) ((NIL NIL "Yosemite" "onelist.com"))
((NIL NIL "Yosemite" "onelist.com")) NIL NIL NIL
"<[EMAIL PROTECTED]>") BODYSTRUCTURE ("message" "rfc822" NIL
NIL NIL "7bit" 74682  NIL ("inline"  NIL) NIL))
a03 OK FETCH completed
a04 logout
* BYE dbmail imap server kisses you goodbye
a04 OK completed
Connection closed by foreign host.
su-2.05b#
----------------------------------------------------------------


"\"CreditDept.\""

The server authors need to verify that double-quotes in string data
sent by the server are always being 'escaped' in this fashion as
required by IMAP. Those can occur in lots of places: examples include
email addresses (both the phrase component and the actual email
address itself), the subject, MIME parameters etc.

--
Cyrus Daboo

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~ Mulberry Support
<mailto:[EMAIL PROTECTED]> Cyrusoft International, Inc.
<http://www.cyrusoft.com> Voice: +1 412 605 0499
Fax: +1 412 605 0705
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~      Proud Purveyors of Mulberry: Internet Mail from the Ground Up
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~




*** ../dbmail.orig/imaputil.c   Mon Dec  9 01:53:09 2002
--- imaputil.c  Wed Jan 29 23:46:21 2003
***************
*** 461,467 ****
             has_split = 1;
           }
         else
!           fprintf(outstream,"%c",mr->value[i]);
       }

       if (!has_split)
--- 461,471 ----
             has_split = 1;
           }
         else
!           {
!             if ( mr->value[i] == '"' )
!               fprintf( outstream, "\\" );
!             fprintf(outstream,"%c",mr->value[i]);
!           }
       }

       if (!has_split)



Reply via email to