From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45900 Path: main.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: [patch] nnimap.el fix for messages missing message-id field Date: Wed, 31 Jul 2002 14:01:16 -0700 Organization: Adobe Systems Incorporated Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1028149347 4314 127.0.0.1 (31 Jul 2002 21:02:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2002 21:02:27 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17a0bw-00017K-00 for ; Wed, 31 Jul 2002 23:02:24 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17a0bh-00075S-00; Wed, 31 Jul 2002 16:02:09 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 31 Jul 2002 16:02:36 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA09382 for ; Wed, 31 Jul 2002 16:02:21 -0500 (CDT) Original-Received: (qmail 16085 invoked by alias); 31 Jul 2002 21:01:49 -0000 Original-Received: (qmail 16080 invoked from network); 31 Jul 2002 21:01:49 -0000 Original-Received: from smtp-relay-2.adobe.com (192.150.11.2) by gnus.org with SMTP; 31 Jul 2002 21:01:49 -0000 Original-Received: from inner-relay-1.corp.adobe.com (inner-relay-1 [153.32.1.51]) by smtp-relay-2.adobe.com (8.12.3/8.12.3) with ESMTP id g6VKwuiK003705 for ; Wed, 31 Jul 2002 13:58:56 -0700 (PDT) Original-Received: from mailsj-v1.corp.adobe.com (mailsj-dev.corp.adobe.com [153.32.1.192]) by inner-relay-1.corp.adobe.com (8.12.3/8.12.3) with ESMTP id g6VL1puE009695 for ; Wed, 31 Jul 2002 14:01:51 -0700 (PDT) Original-Received: from GIGI.corp.adobe.com ([153.32.155.46]) by mailsj-v1.corp.adobe.com (Netscape Messaging Server 4.15 v1 Jul 11 2001 16:32:57) with ESMTP id H04T2400.0WD for ; Wed, 31 Jul 2002 14:01:16 -0700 Original-To: ding@gnus.org X-Location: San Jose, CA X-Emacs: 21.2.1 X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- X-Mailer: Oort Gnus v0.07 Mail-Followup-To: ding@gnus.org Original-Lines: 41 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-msvc-nt5.0.2195) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45900 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45900 In nnimap-split-articles, nnmail-cache-insert would fail if splitting malformed messages=B9 contain no message-id field (nnmail-fetch-field retur= ns nil). Can someone with CVS write access commit the patch for me? Thanks, Index: nnimap.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 6.37 diff -r6.37 nnimap.el 1219,1220c1223,1225 < (nnmail-cache-insert (nnmail-fetch-field < "message-id") to-group))) --- > (let (msgid) > (and (setq msgid (nnmail-fetch-field "mess= age-id")) > (nnmail-cache-insert msgid to-group))= ))) Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v retrieving revision 6.1460 diff -r6.1460 ChangeLog 0a1,5 > 2002-07-31 Danny Siu >=20 > * nnimap.el (nnimap-split-articles): do not call nnmail-fetch-field=20 > when splitting malformed messages without message-id >=20 Footnotes:=20 =B9 usually come for machine generated emails. in my case, TWiki sent me = an=20 auto generated email thur Netscape Messaging Server. --=20 Danny Siu