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

Re: GNUS and Mail



>>>>> "Mark" == Mark Lever <mark.lever@ada.com> writes:

    Mark> Hi, I use gnus and rmail.  I've been using rmail for so long
    Mark> now, and it is limited.  Someone mentioned here that they
    Mark> use gnus for their mail and different folders contained
    Mark> different types of mail.  Could they elaborate and explain
    Mark> to me how to get gnus to look at my mailbox and separate the
    Mark> mail into different folders?

That was probably me. This is my annotated .gnus:

(setq user-mail-address "che@imsa.edu") ; I'm che@imsa.edu.
(setq gnus-select-method '(nntp "news.imsa.edu")) ; Get news from news.imsa.edu
(setq gnus-secondary-select-methods ; Also get my mail from the local mail
      '((nnml "private")))          ; spool.

(setq nnmail-split-methods ; Split up my mail into these categories:
      '(("junk" "^From:.*Ben Gertzfield")
	("debian-user" "^To:.*debian-user\\|^Cc:.*debian-user")
	("debian-devel" "^To:.*debian-devel\\|Cc:.*debian-devel")
	("debian-changes" "^To:.*debian-changes.*\\|Cc:.*debian-changes.*")
	("debian-private" "^To:.*debian-private\\|Cc:.*debian-private")
	("chicago-furry" "^Subject:.*cFur\\")
	("gnus" "^To:.*gnus\\|^To:.*ding\\|^Cc:.*ding\\|^Cc:.*gnus")
	("newgroups" "^Subject:.*newgroup\\|^Subject:.*rmgroup\\|^Subject:.*Netscape.*News")
	("linux-alert" "^To: linux-security@redhat.com")	
	("kevin-kell" "^Subject:.*KK")
	("cosmic" "^Reply-To: ce@hpesdxl.fc.hp.com")
	("deity" "^To:.*deity\\|^Cc:.*deity")
	("cdwrite" "^To:.*cdwrite\\|^Cc:.*cdwrite")
	("gimp" "^Subject:.*gimp\\|^To:.*gimp\\|^Cc:.*gimp")
	("other" "")))
(setq gnus-auto-expirable-newsgroups ; Keep my read mail for a week, then
      "nnml.*")                      ; delete it.
(setq gnus-use-nocem t)              ; Use NoCeM to cancel spam.
(add-hook 'message-header-setup-hook ; Insert my xface and reply-to, and
          (function (lambda ()       ; run my signature randomizer.
                      (goto-char (point-max))
		      (insert "Reply-To: che@imsa.edu\n")
                      (insert "X-Face:")
                      (insert-file-contents (expand-file-name "~/.xface"))
                      (forward-char -1)
	  	      (shell-command "/home/wilwonka/bin/sig.pl"))))

; Use MailCrypt for PGP.
(add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
(add-hook 'news-reply-mode-hook 'mc-install-write-mode)
(add-hook 'gnus-article-mode-hook 'mc-install-write-mode)

; The end!

-- 
Brought to you by the letters L and D and the number 7.
"You forgot Uranus." "Goooooooooodnight everybody!" -- Yakko and Wakko
Ben Gertzfield <http://www.imsa.edu/~wilwonka/> Finger me for my public
PGP key. I'm on FurryMUCK as Che, and EFNet and YiffNet IRC as Che_Fox.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: