From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/21669 Path: main.gmane.org!not-for-mail From: dsg@mitre.org (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Bug in 0.79 mail-source with procmail Date: 01 Mar 1999 10:22:17 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035159731 24140 80.91.224.250 (21 Oct 2002 00:22:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:22:11 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id KAA17777 for ; Mon, 1 Mar 1999 10:23:30 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id JAB11965; Mon, 1 Mar 1999 09:22:15 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 01 Mar 1999 09:23:14 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id JAA15490 for ; Mon, 1 Mar 1999 09:22:57 -0600 (CST) Original-Received: from linus.mitre.org (linus.mitre.org [129.83.10.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id KAA17753 for ; Mon, 1 Mar 1999 10:22:48 -0500 (EST) Original-Received: from blackbird.mitre.org (blackbird [129.83.65.14]) by linus.mitre.org (8.8.7/8.8.7) with ESMTP id KAA05558 for ; Mon, 1 Mar 1999 10:22:23 -0500 (EST) Original-Received: (from dsg@localhost) by blackbird.mitre.org (8.8.7/8.8.7) id KAA00921; Mon, 1 Mar 1999 10:22:17 -0500 (EST) Original-To: The Gnus Mailing List X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit <4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xf Ow;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&K d0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 Original-Lines: 110 User-Agent: Gnus/5.070079 (Pterodactyl Gnus v0.79) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:21669 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:21669 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit My setting: (setq nnmail-spool-file `((directory :path ,(expand-file-name "~/.Mail/incoming")) (file :path "/usr/spool/mail/dsg"))) I just upgraded from 0.77 to 0.79 and my nnml mail no longer gets incorporated. It turns out to be the default predicate for nnmail-spool-file. It's setting the string to be matched to $ instead of just . Since I use the default suffix (".spool"), the filenames always fail the string-match as a result. Here's the relevant spot in a backtrace which I got by setting debug-on-entry and did M-g over nnml:inbox (lines wrapped and spaced by me for readability): Return value: nil string-match("inbox$" "/afs/rcf/user/dsg/.Mail/incoming/inbox.spool") * (lambda (file) (string-match "inbox$" file)) ("/afs/rcf/user/dsg/.Mail/incoming/inbox.spool") * mail-source-fetch-directory((directory :path "/afs/rcf/user/dsg/.Mail/incoming" :predicate (lambda (file) (string-match "inbox$" file))) (lambda (file orig-file) (nnmail-split-incoming file (quote nnml-save-mail) (quote nil) (nnmail-get-split-group orig-file source) (quote nnml-active-number)))) * mail-source-fetch((directory :path "/afs/rcf/user/dsg/.Mail/incoming" :predicate (lambda (file) (string-match "inbox$" file))) (lambda (file orig-file) (nnmail-split-incoming file (quote nnml-save-mail) (quote nil) (nnmail-get-split-group orig-file source) (quote nnml-active-number)))) * nnmail-get-new-mail(nnml nnml-save-nov "/afs/rcf/user/dsg/.Mail" "inbox") * nnml-request-scan("inbox" "") * gnus-request-scan("nnml:inbox" (nnml "")) * gnus-activate-group("nnml:inbox" scan) * gnus-group-get-new-news-this-group(nil) * byte-code("À ¬„Á\n!‡ÃÄ !ˆÁ ‡" [gnus-group-topic-p gnus-group-get-new-news-this-group n gnus-topic-mark-topic gnus-group-topic-name] 2) * gnus-topic-get-new-news-this-topic(nil) call-interactively(gnus-topic-get-new-news-this-topic) I realize that since I use a separate directory for incoming files, that the suffix is redundant. However, the suffix ".spool" is still the default (without setting it myself, I saw it being used in the backtrace as I stepped through it) and as such it shouldn't have broken anything. It looks like the right fix would be to do a mail-source-bind just before setting the predicate and incorporating the suffix into it. Attached is a patch. --=-=-= Content-Type: application/octet-stream; name=nnmail.el.079.diff Content-Disposition: attachment; filename=nnmail.el.079.diff Content-Transfer-Encoding: base64 ZGlmZiAtYyAvYWZzL3JjZi91c2VyL2RzZy9lbGlzcC9nbnVzL3BnbnVzL2xpc3Avbm5tYWls LmVsLjA3OSAvYWZzL3JjZi91c2VyL2RzZy9lbGlzcC9nbnVzL3BnbnVzL2xpc3Avbm5tYWls LmVsCioqKiAvYWZzL3JjZi91c2VyL2RzZy9lbGlzcC9nbnVzL3BnbnVzL2xpc3Avbm5tYWls LmVsLjA3OQlNb24gTWFyICAxIDEwOjEyOjUzIDE5OTkKLS0tIC9hZnMvcmNmL3VzZXIvZHNn L2VsaXNwL2dudXMvcGdudXMvbGlzcC9ubm1haWwuZWwJTW9uIE1hciAgMSAxMDoxMjo1MyAx OTk5CioqKioqKioqKioqKioqKgoqKiogMTM3NiwxMzg3ICoqKioKICAJOzsgSGFjayB0byBv bmx5IGZldGNoIHRoZSBjb250ZW50cyBvZiBhIHNpbmdsZSBncm91cCdzIHNwb29sIGZpbGUu CiAgCSh3aGVuIChhbmQgKGVxIChjYXIgc291cmNlKSAnZGlyZWN0b3J5KQogIAkJICAgZ3Jv dXApCiEgCSAgKHNldHEgc291cmNlIChhcHBlbmQgc291cmNlCiEgCQkJICAgICAgIChsaXN0 IDpwcmVkaWNhdGUKISAJCQkJICAgICBgKGxhbWJkYSAoZmlsZSkKISAJCQkJCShzdHJpbmct bWF0Y2ggCiEgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsKGNv bmNhdCAocmVnZXhwLXF1b3RlIGdyb3VwKSAiJCIpCiEgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBmaWxlKSkpKSkpCiAgCSh3aGVuIG5ubWFpbC1mZXRjaGVk LXNvdXJjZXMKICAJICAoaWYgKG1lbWJlciBzb3VyY2Ugbm5tYWlsLWZldGNoZWQtc291cmNl cykKICAJICAgICAgKHNldHEgc291cmNlIG5pbCkKLS0tIDEzNzYsMTM4OSAtLS0tCiAgCTs7 IEhhY2sgdG8gb25seSBmZXRjaCB0aGUgY29udGVudHMgb2YgYSBzaW5nbGUgZ3JvdXAncyBz cG9vbCBmaWxlLgogIAkod2hlbiAoYW5kIChlcSAoY2FyIHNvdXJjZSkgJ2RpcmVjdG9yeSkK ICAJCSAgIGdyb3VwKQohIAkgIChtYWlsLXNvdXJjZS1iaW5kIChkaXJlY3Rvcnkgc291cmNl KQohIAkgICAgKHNldHEgc291cmNlIChhcHBlbmQgc291cmNlCiEgCQkJCSAobGlzdCA6cHJl ZGljYXRlCiEgCQkJCSAgICAgICBgKGxhbWJkYSAoZmlsZSkKISAJCQkJCSAgKHN0cmluZy1t YXRjaCAKISAJCQkJCSAgICwoY29uY2F0IChyZWdleHAtcXVvdGUgZ3JvdXApCiEgCQkJCQkJ ICAgIChyZWdleHAtcXVvdGUgc3VmZml4KSAiJCIpCiEgCQkJCQkgICBmaWxlKSkpKSkpKQog IAkod2hlbiBubm1haWwtZmV0Y2hlZC1zb3VyY2VzCiAgCSAgKGlmIChtZW1iZXIgc291cmNl IG5ubWFpbC1mZXRjaGVkLXNvdXJjZXMpCiAgCSAgICAgIChzZXRxIHNvdXJjZSBuaWwpCg== --=-=-= Thanks, -- Dave Goldberg Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730 Phone: 781-271-3887 Email: dsg@mitre.org --=-=-=--