From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9325 Path: main.gmane.org!not-for-mail From: Jens Lautenbacher Newsgroups: gmane.emacs.gnus.general Subject: Re: Gcc: and duplicate mail coming back to you Date: 09 Jan 1997 08:46:44 +0100 Message-ID: References: Reply-To: jens@lemcbed.lem.uni-karlsruhe.de NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.94) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035149368 17822 80.91.224.250 (20 Oct 2002 21:29:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:29:28 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.4/8.8.4) with SMTP id XAA05750 for ; Wed, 8 Jan 1997 23:57:42 -0800 Original-Received: from lemcbed.lem.uni-karlsruhe.de (lemcbed.lem.uni-karlsruhe.de [129.13.103.197]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Thu, 9 Jan 1997 08:44:31 +0100 Original-Received: by lemcbed.lem.uni-karlsruhe.de; id AA07809; Thu, 9 Jan 1997 08:46:44 +0100 Original-To: ding@ifi.uio.no X-Face: Z[@OB)("ZvE?ev~1b+b!0ZUB.$%rh.9qE>dVf>q}Q/V?%d`J3gd!LR\aAZ8K)'\Ulb7y-7*.If^;rHl['oa)n_M7E6w+LDKMs"G8_`c)uOS1^}.1|8Ill]7X68X-paeUOpBhz writes: > I've got this in my .gnus.el (I copied it from somewhere): > > (defun kai-gnus-outgoing-message-group () > (cond ((and gnus-newsgroup-name > (stringp gnus-newsgroup-name) > (string-match "^nnfolder" gnus-newsgroup-name)) > gnus-newsgroup-name) > (t "nnfolder:mail.misc"))) > (setq gnus-outgoing-message-group 'kai-gnus-outgoing-message-group) > (setq gnus-message-archive-group nil) > > > This works great, all my mail either ends up in the right nnfolder > group or the nnfolder:mail.misc folder. > > I _usually_ end up seeing the mail twice though (annoying). Once for > the Gcc: and once when the list ends up sending me the mail. Is there > a way to do any of the following: > > 1) In my gnus-outgoing-message-group function, get at the "to" and > "cc" headers of the message and return nil to suppress Gcc: if I am > sending to a list I am on (I'm willing to hard code that list > somewhere in my .gnus). > > 2) Automatically mark Gcc: messages read (I believe I asked for this > before, it got put on the Red Gnus "To Do" list). > > 3) Some other superior option? Use group parameters for that. Setup: (setq gnus-message-archive-group '((if (message-news-p) "misc-news" "misc-mail"))) And then set the gcc-self parameter to t for every group you want to get outgoing mail stored into the same group, set it to 'none for every mailinglist where you will get your answer back through the list. (I suggest to use topics for mail groups and mailinglists and change these parameters in the topic). The net effect will be what you want: Mail sent from a group will end there, if it is sent from outside any group it will go to misc-mail and outgoing news will be stored in misc-news. Quite easy.