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

Re: mutt and courier-imapd



On Sunday, 16 April 2000 at 03:05, Eric Gillespie, Jr. wrote:
> I'm trying to use courier-imapd with SSL and mutt, but they don't
> seem to get along very well. Sometimes, mutt displays no subject,
> no author, and a 0 message size. Other times, it displays the
> information from the wrong message. Other times, it gets
> everything correct.

There is a small bug in courier currently which chokes mutt. I've
attached a workaround patch against mutt 1.1.12 (should apply to
earlier versions) which I'd love people to test - we're trying to get
mutt 1.2 out the door soon. So if it works and in particular if it
doesn't work, please let me know.

Thanks,
Brendan
Index: imap/message.c
===================================================================
RCS file: /home/roessler/cvsroot/mutt/imap/message.c,v
retrieving revision 1.23
diff -u -r1.23 message.c
--- imap/message.c	2000/04/24 13:09:33	1.23
+++ imap/message.c	2000/04/29 18:19:26
@@ -56,6 +56,8 @@
   IMAP_HEADER *h, *h0;
   const char *want_headers = "DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE IN-REPLY-TO REPLY-TO LINES";
   int using_body_peek = 0;
+  int c;
+  
   fetchlast = 0;
 
   /* define search string */
@@ -255,6 +257,15 @@
     h = h->next;
     /* hdata is freed later */
     safe_free ((void **) &h0);
+
+    /* 
+     * skip over additional \n characters - Courier IMAP seems to
+     * put them here.
+     */
+    
+    while ((c = fgetc (fp)) == '\n')
+      ;
+    ungetc (c, fp);
   }
   
   fclose(fp);

Attachment: pgpX3T2mguYkz.pgp
Description: PGP signature


Reply to: