From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/7810 Path: main.gmane.org!not-for-mail From: dsg@linus.mitre.org (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: how do I fcc: a nnml folder? and what is gcc? (gnus 5.3) Date: 04 Sep 1996 15:20:08 -0400 Sender: dsg@linus.mitre.org Message-ID: References: <199609041433.HAA17952@kelly.teleport.com> Reply-To: dsg@mitre.org (David S. Goldberg) NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.75) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035148071 8595 80.91.224.250 (20 Oct 2002 21:07:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:07:51 +0000 (UTC) Cc: "Randal L. Schwartz" 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 MAA22352 for ; Wed, 4 Sep 1996 12:35:57 -0700 Original-Received: from linus.mitre.org (linus.mitre.org [129.83.10.1]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 4 Sep 1996 21:21:36 +0200 Original-Received: from blackbird.mitre.org (blackbird.mitre.org [129.83.10.172]) by linus.mitre.org (8.6.12/8.6.12) with ESMTP id PAA11303; Wed, 4 Sep 1996 15:20:14 -0400 Original-Received: (from dsg@localhost) by blackbird.mitre.org (8.7.5/8.7.3) id PAA05363; Wed, 4 Sep 1996 15:20:10 -0400 (EDT) Original-To: ding@ifi.uio.no X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit<4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xfOw;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&Kd0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 In-Reply-To: "Randal L. Schwartz"'s message of Wed, 4 Sep 1996 07:33:42 -0700 (PDT) Original-Lines: 57 X-Mailer: Gnus v5.2.39/Emacs 19.31 Xref: main.gmane.org gmane.emacs.gnus.general:7810 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:7810 > But now I'm stuck. What's the right Fcc setup to trigger saving > into nnml "groups" called "nnml:outbox" or "nnml:todo" or whatever? > The docs say that message-fcc-handler-function is rmail-output by > default, but I can't figure out what nnml function corresponds to > rmail-output. There doesn't seem to be a good default. With rmail-output you can do something like Fcc: |/usr/local/lib/mh/rcvstore +folder but that's way too much typing for me. So I wrote a fcc handler function that did the rcvstore for me. However, I wasn't real satisfied with that. Since I've decided to move away from MH as my primary means of reading mail in favor of Gnus, I didn't want to have to deal with the Fcc's ending up in my unseen sequence (which I still use for some colaborative stuff outside of Gnus). I know I can muck with the environment and specify a stripped down mh profile but I didn't want that. I also didn't like the fact that using rcvstore meant having to do nnml-generate-nov-databases. So I came up with the following message-fcc-handler-function, which does all the right nnml stuff. I've only been using it a couple days now which is why I haven't said anything about it before - I'm still not sure it's correct although it hasn't burned me yet. (defun dsg-message-do-mh-fcc (fldr) "Store a message into an MH folder given by Fcc header in message-mode." (let* ((fldr (substring fldr (1+ (length (getenv "HOME"))))) (group (if (= (string-to-char fldr) ?+) (substring fldr 1) fldr))) (if (string-match "/$" group) (setq group (replace-match "" nil nil group))) (while (string-match "/" group) (setq group (replace-match "." nil nil group))) (nnml-request-accept-article group nil t))) The replacement of / with . is necessary only if you're like me and you're used to doing MH style fcc's with recursive folders. This lets me use the mh-to-fcc function from mh-e to get folder completion (I rebind \C-c\C-f\C-w to mh-to-fcc). > And, the docs mention "gcc" once, and the source mentions it twice, > but that's the end of the road. Is that the remnants of an > experiment gone bad, or is that what I'm looking for? I am pretty sure that this is basically what gcc is supposed to do, but I'm used to fcc and prefer to be able to take advantage of functions I wrote for mh-e to get default fcc folders etc rather than have to learn gcc and figure out how to do the same thing with that header. -- Dave Goldberg Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730 Phone: 617-271-3887 Email: dsg@mitre.org