Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnmail-split-fancy?
@ 2003-07-23 19:58 savoie
  2003-07-23 21:35 ` nnmail-split-fancy? Hubert Chan
  0 siblings, 1 reply; 4+ messages in thread
From: savoie @ 2003-07-23 19:58 UTC (permalink / raw)



O.k. smarties.  I'm having problems, and I'm probably a few steps above my
actual lisp knowledge. Maybe one of you can help out.  I want to split mail
based on expressions in the body of a mail message.  I looked in the manual
and found nnmail-split-fancy and the example on how to do this.  I googled
around enough to see how to change my old nnmail-split-methods to use the
nnmail-split-fancy, and now I want to add the split-on-body function, most of
the postings said the example is in the manual, but I think I need a hand
holding step-by-step explanation.  Any help would be greatly appreciated!

Thank in advance,

Matt

relevant information:

GNU Emacs 21.1.1 (i386-suse-linux, X toolkit, Xaw3d scroll bars) of
2002-03-25 on stephens

 Gnus v5.10.2

assume I have two groups:
       2: nnml+private:nsidc-2003 
       0: nnml+private:junk 

I've put this in my .gnus
 -----------------------

(defun split-on-body ()
  (save-excursion
    (set-buffer " *nnmail incoming*")
    (goto-char (point-min))
    (when (re-search-forward "exual" nil t)
      "junk")))

(setq nnmail-split-methods 'nnmail-split-fancy)
(setq nnmail-split-fancy
       '(| 
	 (: split-on-body) 
	 "nsidc-2003"
	 ))

But when I send a message with " sexual " content, or do Bt & Bq, I get in my
*Messages* buffer.

Error in `nnmail-split-methods'; using `bogus' mail group
This message would go to bogus

Thanks again,

Matt

-- 
Matthew Savoie  -  Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785   http://nsidc.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-24 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 19:58 nnmail-split-fancy? savoie
2003-07-23 21:35 ` nnmail-split-fancy? Hubert Chan
2003-07-23 22:19   ` nnmail-split-fancy? savoie
     [not found]     ` <4nu19buc44.fsf@chubby.bwh.harvard.edu>
     [not found]       ` <ywku4r1bhl2j.fsf@snowblower.colorado.edu>
2003-07-24 18:30         ` nnmail-split-fancy? Ted Zlatanov

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).