From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6581 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: Probs with mailreading. Date: 09 Jun 1996 23:37:36 +0200 Sender: grossjoh@buster.informatik.uni-dortmund.de Message-ID: References: Reply-To: Kai Grossjohann NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.52) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035147016 4104 80.91.224.250 (20 Oct 2002 20:50:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:50:16 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id OAA03787 for ; Sun, 9 Jun 1996 14:58:18 -0700 Original-Received: from floyd.informatik.uni-dortmund.de (floyd.informatik.uni-dortmund.de [129.217.4.40]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Sun, 9 Jun 1996 23:37:40 +0200 Original-Received: from buster.informatik.uni-dortmund.de by floyd.informatik.uni-dortmund.de with SMTP (Sendmail 8.7.5/UniDo 3.11) id XAA14326; Sun, 9 Jun 1996 23:37:37 +0200 (MES) Original-Received: by buster.informatik.uni-dortmund.de id AA08304; Sun, 9 Jun 96 23:37:36 +0200 Original-To: Jens Lautenbacher In-Reply-To: Jens Lautenbacher's message of 09 Jun 1996 00:00:57 +0200 Original-Lines: 62 X-Mailer: Gnus v5.2.12/Emacs 19.30 Xref: main.gmane.org gmane.emacs.gnus.general:6581 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6581 >>>>> On 09 Jun 1996 00:00:57 +0200, Jens Lautenbacher >>>>> said: Jens> b) I would like to have all replies, followups or postings in Jens> my mail groups be saved to the group I'm posting or Jens> replying from. E.g. if I post an article (or reply) to Jens> jtl@tkm.physik.uni-karlsruhe.de, this message should be Jens> stuffed into the "nnfolder+private:JTL" group. Is there any Jens> reasonable way to achieve this? Mails out of the "Misc" Jens> groups and newspostings should of course still be stuffed Jens> into "nnfolder+archive: misc-mail" or "...misc-news" I use the following setup. ,----- | (defun kai-gnus-outgoing-message-group () | (cond ((and gnus-newsgroup-name | (stringp gnus-newsgroup-name) | (string-match "^nnml" gnus-newsgroup-name)) | gnus-newsgroup-name) | (t "nnml:mail.misc"))) | (setq gnus-outgoing-message-group 'kai-gnus-outgoing-message-group) `----- You probably want to twiddle the method and the default group name, I think. I also have a nifty (but poorly implemented) function (defun message-toggle-gcc () (interactive) (save-excursion (save-restriction (let ((pmin (progn (beginning-of-buffer) (point))) (pmax (progn (beginning-of-buffer) (re-search-forward (concat "^" mail-header-separator "$")) (beginning-of-line) (point)))) (beginning-of-buffer) (narrow-to-region pmin pmax) (if (re-search-forward "^gcc: .*" nil t) (progn (beginning-of-line) (kill-line 1)) (goto-char pmax) (insert (concat "Gcc: " (kai-gnus-outgoing-message-group) "\n"))))))) If I bind this to a key, something useful happens: If the Gcc header is already in there, it will be deleted, if it isn't, a Gcc header will be created that contains the `right' group name. Suggestions for a cleaner implementation gladly accepted :-) Whatcha think? kai -- Life is hard and then you die.