* [patch] nnimap.el fix for messages missing message-id field
@ 2002-07-31 21:01 Danny Siu
2002-07-31 21:14 ` Simon Josefsson
2002-08-01 19:31 ` Kai Großjohann
0 siblings, 2 replies; 3+ messages in thread
From: Danny Siu @ 2002-07-31 21:01 UTC (permalink / raw)
In nnimap-split-articles, nnmail-cache-insert would fail if splitting
malformed messages¹ contain no message-id field (nnmail-fetch-field returns
nil).
Can someone with CVS write access commit the patch for me?
Thanks,
Index: nnimap.el
===================================================================
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 "message-id"))
> (nnmail-cache-insert msgid to-group)))))
Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v
retrieving revision 6.1460
diff -r6.1460 ChangeLog
0a1,5
> 2002-07-31 Danny Siu <dsiu@adobe.com>
>
> * nnimap.el (nnimap-split-articles): do not call nnmail-fetch-field
> when splitting malformed messages without message-id
>
Footnotes:
¹ usually come for machine generated emails. in my case, TWiki sent me an
auto generated email thur Netscape Messaging Server.
--
Danny Siu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-01 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 21:01 [patch] nnimap.el fix for messages missing message-id field Danny Siu
2002-07-31 21:14 ` Simon Josefsson
2002-08-01 19:31 ` Kai Großjohann
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).