all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* splitting mail in Gnus
@ 2003-10-02 11:34 Roger Mason
  0 siblings, 0 replies; 2+ messages in thread
From: Roger Mason @ 2003-10-02 11:34 UTC (permalink / raw)


Hello,

Firstly, thanks for the replies to my previous posting on Gnus.  That
problem is now resolved.

Reading the info pages I find it is possible to split mail into
different groups.  Accordingly, I have these lines in my .gnus file.

(setq gnus-secondary-select-methods '((nnml "")))
(setq nnmail-split-methods ....)

The first by default puts mail in nnml:mail.misc and the second into
groups, each associated with a regexp that is used to filter the incoming
messages.

It is not clear to me which of these lines takes precedence: after
all there is no point in setting up a filter if the messages will all
end up in nnml:mail.misc and never see the filter.

I tried commenting out (setq gnus-secondary-select-methods '((nnml
""))), but then all my mail groups appeared in the Group buffer with
asterisks in place of the number of messages and none of them could be
accessed.

Can someone enlighten me?

Thanks,
Roger Mason

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

* Re: splitting mail in Gnus
       [not found] <mailman.1004.1065094512.21628.help-gnu-emacs@gnu.org>
@ 2003-10-02 12:37 ` Cor Gest
  0 siblings, 0 replies; 2+ messages in thread
From: Cor Gest @ 2003-10-02 12:37 UTC (permalink / raw)



GOD fixed his bugs by throwing the misbehaving out of his Garden. 
So who the hell do you think you are in leaving bugs in your system.  
Proverbs: cor-1984:666 

Begin  of a quotation from a message written by mere mortal:
        Roger Mason <rmason@esd.mun.ca>:

> Hello,
> 
> Firstly, thanks for the replies to my previous posting on Gnus.  That
> problem is now resolved.
> 
> Reading the info pages I find it is possible to split mail into
> different groups.  Accordingly, I have these lines in my .gnus file.
> 
> (setq gnus-secondary-select-methods '((nnml "")))
> (setq nnmail-split-methods ....)
> 
> The first by default puts mail in nnml:mail.misc and the second into
> groups, each associated with a regexp that is used to filter the incoming
> messages.
> 
> It is not clear to me which of these lines takes precedence: after
> all there is no point in setting up a filter if the messages will all
> end up in nnml:mail.misc and never see the filter.
> 
> I tried commenting out (setq gnus-secondary-select-methods '((nnml
> ""))), but then all my mail groups appeared in the Group buffer with
> asterisks in place of the number of messages and none of them could be
> accessed.

(setq gnus-secondary-select-method '(nnml))

just tells gnus to use nnml
as an secindary method.

The mail splitting part comes next

(setq nnmail-split-incoming t)
;;then the split part wher you can use reg_expr.

(setq nnmail-split-methods

	'("mail.somegroupname"  "^From:.nice-maillist@some-server.com")

	 ("mail.misc" "")) 
 

The `mail.misc' group is the mail-bucket where everything non-matching
by any splitting rule goes.
Be aware that sorting is sequential, so the first match goes. 


cor


-- 
	      SAFE THE INTERNET..................REMOVE WINDOWS
	      http://www.ccianet.org/papers/cyberinsecurity.pdf
  (setq  reply-to (concatenate 'string "Cor Gest "" <cor"'(#\@)"clsnet.nl>"))

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

end of thread, other threads:[~2003-10-02 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-02 11:34 splitting mail in Gnus Roger Mason
     [not found] <mailman.1004.1065094512.21628.help-gnu-emacs@gnu.org>
2003-10-02 12:37 ` Cor Gest

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.