Subject: Re: bug in search since date?

From: Thomas K Harris <[email-masked]>
Date: Fri, 7 Jul 2000 09:33:03 -0500 (Central Daylight Time)

> > I noticed that with pine 4.21 imap searching of dates with single digit
> > days of the month resulted in an imap error. Looking at the imap telemetry
> > I found that pine was putting two spaces between the 'since' and the date.
> > I checked the imap rfc. If I'm reading the bnf properly, this is wrong, as
> > all delimiters are single spaces. I couldn't find any reference to this in
> > the archives so I thought that I would ask about this here. Is this a
> > known bug?
> 
> Aha!  I've been annoyed by this failure for a long time, but I had not
> figured out when it occurs.  Will adding a leading zero work?  [I
> don't have an IMAP server I can try at this point -- stuck with POP
> temporarily.]
> 							-- Steve

Well, if you add a leading zero in pine, pine replaces it with a space, so
that doesn't work. The leading zero should be acceptable to an imap
server, however.

Regards,
Thomas K Harris

---

From: Jan Grant <[email-masked]>
Date: Sun, 9 Jul 2000 12:03:54 +0100 (BST)

> that doesn't work. The leading zero should be acceptable to an imap

I posted a patch for this to this mailing list (and comp.mail.pine or
whatever the newsgroup is called) a while back.

I've had no feedback about it, however; presumably the patches get
folded into newer versions of c-client?

jan

PS. The fix was in line 2339 of imap/src/c-client/imap4r1.c: change the
format string from
	" %s %2d-%s-%d"
to
	" %s %d-%s-%d"

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 [email-masked]
perl -e 's?ck?t??print:perl==pants if $_="Just Another Perl Hacker\n"'

---

From: Thomas K Harris <[email-masked]>
Date: Tue, 11 Jul 2000 16:48:20 -0500 (Central Daylight Time)

> PS. The fix was in line 2339 of imap/src/c-client/imap4r1.c: change the

Thanks, Jan.

I'm using pc-pine, which, to my suprise, is not open sourced; so I had to
edit the binary. I couldn't just remove the 2 without screwing up the
linking, but replacing it with a 1 worked.

Regards,
Thomas