Gnus development mailing list
 help / color / mirror / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
Subject: [nnimap] Lines: handling in Courier IMAP
Date: 12 Apr 2000 00:07:27 +0900	[thread overview]
Message-ID: <87purwekwg.fsf@mail.unixuser.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

I switched to the Courier IMAP server, and I found that all the
articles have "0 lines" in the summary.

The attached patch will fix this. Can someone please apply?

2000-04-10   Daiki Ueno  <ueno@unixuser.org>

        * lisp/imap.el (imap-body-lines): Check Content-Type: of the
        article case insensitively.


[-- Attachment #2: imap.el.diff --]
[-- Type: text/plain, Size: 740 bytes --]

Index: imap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/imap.el,v
retrieving revision 1.13
diff -u -F^( -r1.13 imap.el
--- imap.el	2000/04/08 10:00:50	1.13
+++ imap.el	2000/04/11 15:07:19
@@ -1359,10 +1359,10 @@ (defun imap-body-lines (body)
   "Return number of lines in article by looking at the mime bodystructure BODY."
   (if (listp body)
       (if (stringp (car body))
-	  (cond ((and (string= (car body) "TEXT")
+	  (cond ((and (string= (upcase (car body)) "TEXT")
 		      (numberp (nth 7 body)))
 		 (nth 7 body))
-		((and (string= (car body) "MESSAGE")
+		((and (string= (upcase (car body)) "MESSAGE")
 		      (numberp (nth 9 body)))
 		 (nth 9 body))
 		(t 0))

[-- Attachment #3: Type: text/plain, Size: 15 bytes --]

-- 
Daiki Ueno

             reply	other threads:[~2000-04-11 15:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-11 15:07 Daiki Ueno [this message]
2000-04-11 21:36 ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87purwekwg.fsf@mail.unixuser.org \
    --to=ueno@unixuser.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).