[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Splitting the Emacspeak List?

Hello Zachary, 

"Zachary Kline" <klinez@onid.orst.edu> writes:

>     In using Gnus to read and send the majority of my email lately,
> I've had an interest in some of its nicer features for mail reading,
> specifically mail splitting.  I was wondering how I might go about
> splitting the Emacspeak list into its own 'group', so I could be sure
> I would have those mails separately?

Here is what I use:

(setq nnmail-split-methods
	("mail.emacspeak" "^X-Mailing-List: <emacspeak")
        ("mail.other" ""))

I removed the other splitting I do, but this should be valid code if
this is the only splitting you do.

>     The splitting is regular expression based, matched against the
> email header.  I've tried a couple examples which didn't work, but I
> don't claim to be an expert in regular expressions.
> I've tried:
> ^Sender: emacspeak@cs.vassar.edu
> As well as:
> ^Resent-from: emacspeak@cs.vassar.edu

Is this exactly what the header looks like?  This will match a header
line that looks like this:

Sender: emacspeak@cs.vassar.edu
Resent-from: emacspeak@cs.vassar.edu

>     Am I supposed to backslash escape something in the headings?  The
> part I wondered about was the dash.  Is that a metacharacter in this
> case?

Not sure off the top of my head.  You might want to have a look at that
section of the lisp reference info manual.

>     If anybody could provide me an expression I might be able to use,
> I'd appreciate it.  On some other lists I know I can split based on
> subject line, but not so here.

I decided to send my nnmail-split-methods.  It is not complicated by any
means but it should provide some examples.

(setq nnmail-split-methods
      '(("mail.jerianne" "^From:.*jerianne")
	("mail.jerianne" "^From:.*my30thbirthday")
	("mail.jerianne" "^From:.*whysoblue")
	("mail.jerianne" "^From:.*jthompson")
        ("mail.knights" "^Subject:.*Knights")
        ("mail.debian-laptop" "^X-Mailing-List:.*debian-laptop")
	("mail.tips" "^From:.*UGU")
	("mail.notes" "^To:.*Notes")
	("mail.gmail" "^To:.*robdcraw")
	("mail.homeroast-list" "^To:.*homeroast")
	("mail.homeroast-list" "^Cc:.*homeroast")
	("mail.thinkpad-list" "^To:.*thinkpad")
	("mail.powertop-list" "^To:.*power@bughost.org")	
	("mail.powertop-list" "^Cc:.*power@bughost.org")
	("mail.thinkpad-list" "^Cc:.*thinkpad")
	("mail.emacspeak" "^X-Mailing-List: <emacspeak")
	("mail.gmail" "^Subject:.*orgmode")
        ("mail.other" "")))

Robert D. Crawford                                      rdc1x@comcast.net

Don't get stuck in a closet -- wear yourself out.

To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"

If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog