* [BUG & FIX] `nnmail-get-new-mail' fetches too much
@ 2001-04-29 11:19 Michael Sperber [Mr. Preprocessor]
2001-04-29 12:38 ` ShengHuo ZHU
0 siblings, 1 reply; 2+ messages in thread
From: Michael Sperber [Mr. Preprocessor] @ 2001-04-29 11:19 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
Here's a longstanding bug in Gnus, still present in Oort 0.02:
I have a group nnml:cvs with associated spool file
~/incoming/cvs.spool. I also have a spool file called
~/incoming/freebsd-ports-cvs.spool with no associated group.
Getting new mail for nnml:cvs also slurps the freebsd-ports-cvs.spool
file into a non-existent nnml group because they share a suffix.
Bad juju. Here's a fix.
[-- Attachment #2: Type: text/plain, Size: 202 bytes --]
2001-04-29 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
* nnmail.el (nnmail-get-new-mail): Make the generated predicate
more strict to avoid reading in spurious spools.
[-- Attachment #3: Type: text/plain, Size: 422 bytes --]
--- lisp/nnmail.el.orig Fri Apr 13 17:57:45 2001
+++ lisp/nnmail.el Sun Apr 29 13:13:30 2001
@@ -1568,9 +1568,10 @@
`(lambda (file)
(string-match
,(concat
+ "^"
(regexp-quote (concat group suffix))
"$")
- file)))))))
+ (file-name-nondirectory file))))))))
(when nnmail-fetched-sources
(if (member source nnmail-fetched-sources)
(setq source nil)
[-- Attachment #4: Type: text/plain, Size: 72 bytes --]
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG & FIX] `nnmail-get-new-mail' fetches too much
2001-04-29 11:19 [BUG & FIX] `nnmail-get-new-mail' fetches too much Michael Sperber [Mr. Preprocessor]
@ 2001-04-29 12:38 ` ShengHuo ZHU
0 siblings, 0 replies; 2+ messages in thread
From: ShengHuo ZHU @ 2001-04-29 12:38 UTC (permalink / raw)
sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) writes:
> Here's a longstanding bug in Gnus, still present in Oort 0.02:
>
> I have a group nnml:cvs with associated spool file
> ~/incoming/cvs.spool. I also have a spool file called
> ~/incoming/freebsd-ports-cvs.spool with no associated group.
>
> Getting new mail for nnml:cvs also slurps the freebsd-ports-cvs.spool
> file into a non-existent nnml group because they share a suffix.
>
> Bad juju. Here's a fix.
>
> 2001-04-29 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
>
> * nnmail.el (nnmail-get-new-mail): Make the generated predicate
> more strict to avoid reading in spurious spools.
> --- lisp/nnmail.el.orig Fri Apr 13 17:57:45 2001
> +++ lisp/nnmail.el Sun Apr 29 13:13:30 2001
> @@ -1568,9 +1568,10 @@
> `(lambda (file)
> (string-match
> ,(concat
> + "^"
> (regexp-quote (concat group suffix))
> "$")
> - file)))))))
> + (file-name-nondirectory file))))))))
> (when nnmail-fetched-sources
> (if (member source nnmail-fetched-sources)
> (setq source nil)
Thanks for the report. I fix it by using string-equal instead.
ShengHuo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-29 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-29 11:19 [BUG & FIX] `nnmail-get-new-mail' fetches too much Michael Sperber [Mr. Preprocessor]
2001-04-29 12:38 ` ShengHuo ZHU
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).