Gnus development mailing list
 help / color / mirror / Atom feed
From: Norman Walsh <ndw@nwalsh.com>
Subject: split-fancy problem...
Date: Sat,  4 Sep 1999 16:47:53 -0400	[thread overview]
Message-ID: <9690-Sat04Sep1999164753-0400-ndw@nwalsh.com> (raw)

Hello world,

I decided to try to get split-fancy working today. Mostly
because I'd like to write to both an archive folder and an
appropriate subject folder. (But also because every time I learn
a new gnus feature, I think the world becomes a brighter
place...)

I'm not getting the results I expect, and I figure it's a thinko
or a typo on my part. Anyone care to inspect the following
split-fancy code and tell me what stupid thing I've done wrong?

(defun nwalsh-incoming-group ()
  (format-time-string "archive.%Y-%m"))

(setq nnmail-split-methods 'nnmail-split-fancy)

(setq nnmail-split-fancy
      '(& (: nwalsh-incoming-group)
	  (| (| ("subject" "Returned mail: User unknown" "spam")
		("subject" "adults only" "spam")
		("subject" "EARN" "spam")
		("subject" "money making" "spam")
		("subject" "credit report" "spam"))
	     (any "LETPRESS@" "letterpress")
	     (any "ding@" "emacs.ding")
	     (any "ntemacs-users@" "emacs.ntemacs")
	     (any "twg-tds@" "tds")
	     (any "debian-user" "debian")
	     (any "debian-announce" "debian-announce")
	     (any "www-font" "www-font")
	     (| (any "owner-davenport@" "davenport.admin")
		(any "davenport-approval@" "davenport.admin"))
	     (any "davenport" "davenport")
	     (any "docbook-eb" "docbook-eb")
	     (any "docbook-tc" "docbook-tc")
	     (| (any "cron" "cron")
		("subject" "Output from .*cron.* command" "cron"))
	     ("subject" "comp\.fonts" "fonts")
	     (any "regrep@.*oasis-open.org" "oasis.regrep")
	     (any "tables@.*oasis-open.org" "oasis.tables")
	     (any "w3c-dom-ig@" "w3c-dom-ig")
	     (any "w3c-xsl-wg@" "w3c-xsl-wg")
	     (any "w3c-xsl-fo-sg@" "w3c-xsl-fo-sg")
	     (any "spec-prod@w3.org" "w3c-spec-prod")
	     (any "w3c-format@w3.org" "w3c-format")
	     (any "xsl-list@" "xsl-list")
	     (any "xml-dev@" "xml-dev")
	     (any "dssslist" "dssslist")
	     (| (any "adepters-digest@" "adepters")
		(any "adepters@" "adepters"))
	     (| ("subject" " Checkins" "arbortext.buildmsgs")
		("subject" " Build Log" "arbortext.buildmsgs")
		("subject" " Install Log" "arbortext.buildmsgs")
		("subject" " Nightly Build Complete" "arbortext.buildmsgs")
		("subject" " develbuild log" "arbortext.buildmsgs"))
	     ("subject" "nwalsh timesheet" "arbortext.timesheets")
	     (any "peppermint@arbortext" "arbortext.peppermint")
	     (any "peppermint-arch@arbortext" "arbortext.peppermint-arch")
	     (any "epic-devel@arbortext" "arbortext.epic-devel")
	     (any "epic-lessons@arbortext" "arbortext.epic-lessons")
	     (any "dtd-epic@arbortext" "arbortext.dtd-epic")
	     (any "w3c-team@arbortext" "arbortext.w3c-team")
	     (any "w3c-people@arbortext" "arbortext.w3c-people")
	     (any "groves@arbortext" "arbortext.groves")
	     (any "xml@arbortext" "arbortext.xml")
	     (any "elmtalk@arbortext" "arbortext.elmtalk")
	     (any "ask-ati@arbortext" "arbortext.ask-ati")
	     (any "vantive@arbortext" "arbortext.vantive")
	     (any "appdev-acl@arbortext" "arbortext.appdev-acl")
	     (any "appdev@arbortext" "arbortext.appdev")
	     (any "engin@arbortext" "arbortext.engin")
	     (any "xsl-support@arbortext" "arbortext.xsl-support")
	     (any "schema-support@arbortext" "arbortext.schema-support")
	     (any "htmlhelp@arbortext" "arbortext.htmlhelp")
	     (| (any "askeve@arbortext" "arbortext.thinktank")
		(any "asknorm@arbortext" "arbortext.thinktank")
		(any "askpaul@arbortext" "arbortext.thinktank"))
	     (| (any "arbortext" "arbortext")
		(any "doctools" "arbortext")
		("message-id" "doctools" "arbortext"))
	     (any "sgml-tools" "sgml-tools")
	     (any "wordsmith.org" "wordsmith")
	     (any "unicode@" "unicode")
	     (from "majordomo" "list-admin")
	     (any "perl-xml-docs" "perl-xml-docs")
	     (any "perl-xml" "perl-xml")
	     (any "silent-tristero" "silent-tristero")
	     (| (from "@ora\.com" "ora")
		(from "@oreilly\.com" "ora")
		(from "@songline\.com" "ora"))
	     (any "bbdb-info" "bbdb-info")
	     (| (any "norm@berkshire\.net")
		(any "ndw@nwalsh\.com"))
	     "spam")))

With this split, everything goes in archive.1999-09, but no where else.
If I take out the initial (& and use simply:

(setq nnmail-split-fancy
      '(| (| ("subject" "Returned mail: User unknown" "spam")
             ("subject" "adults only" "spam")
	     ("subject" "EARN" "spam")
	     ("subject" "money making" "spam")
	     ("subject" "credit report" "spam"))
	  (any "LETPRESS@" "letterpress")
          ....

Then some things get split properly but others don't. Consider,
for example, a message with the headers:

  From: Bob Richardson <InkSprite@AOL.COM>
  Subject:      POLK'S BOOK
  To: LETPRESS@hermes.csd.unb.ca
  Date:         Sat, 4 Sep 1999 08:41:47 EDT
  X-Sent: 8 hours, 3 minutes, 17 seconds ago
  Reply-To: Letterpress Discussion List <LETPRESS@hermes.csd.unb.ca>
  
  In a message dated 03/09/99 03:33:08 GMT Daylight Time, BSimon999@AOL.COM
  writes:

I would have expected that to go in the letterpress folder, but it
wound up in "spam".

Anyone see the error(s) of my ways?

                                        Cheers,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | What good is a can of worms if you
http://nwalsh.com/                 | never open it?--Bob Arning



             reply	other threads:[~1999-09-04 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-04 20:47 Norman Walsh [this message]
1999-09-06 10:33 ` Robert Bihlmeyer
1999-09-06 17:58   ` Norman Walsh
1999-09-07  7:45     ` Robert Bihlmeyer

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=9690-Sat04Sep1999164753-0400-ndw@nwalsh.com \
    --to=ndw@nwalsh.com \
    /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).