Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai Grossjohann <grossjoh@charly.informatik.uni-dortmund.de>
Cc: Paul Stodghill <stodghil@CS.Cornell.EDU>, ding@ifi.uio.no
Subject: Re: Feature wish Red Gnus
Date: 19 Jul 1996 09:21:58 +0200	[thread overview]
Message-ID: <vaf20i8so6h.fsf@ls6.informatik.uni-dortmund.de> (raw)
In-Reply-To: Mark Eichin's message of 19 Jul 1996 02:53:39 -0400

>>>>> On 19 Jul 1996 02:53:39 -0400, Mark Eichin <eichin@cygnus.com>
>>>>> said:

  Mark> [...] I haven't dug around to find out how to deal, but it's
  Mark> pretty clear that "this isn't how lars does it" or it would be
  Mark> easier :-)

FWIW, here's what I do.  Not too sophisticated, but kind of nice, I
think.  I have bound the last function to a key in message-mode.

I don't remember why I didn't use gnus-message-archive-group.

kai
-- 
Life is hard and then you die.


(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)
(setq gnus-message-archive-group nil)

;; I'm sure this is a horrible implementation and there's
;; a way to do it better that's a million times more
;; elegant.
(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")))))))


  reply	other threads:[~1996-07-19  7:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-18 13:03 Kai Grossjohann
1996-07-18 20:27 ` Lars Magne Ingebrigtsen
1996-07-18 21:01   ` Han Pilmeyer
1996-07-18 23:16     ` Paul Stodghill
1996-07-18 23:46       ` Steven L Baur
1996-07-19  6:53       ` Mark Eichin
1996-07-19  7:21         ` Kai Grossjohann [this message]
1996-07-19  8:42         ` Jens Lautenbacher
1996-07-19 22:10       ` Lars Magne Ingebrigtsen
1996-07-19  6:22   ` Kai Grossjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vaf20i8so6h.fsf@ls6.informatik.uni-dortmund.de \
    --to=grossjoh@charly.informatik.uni-dortmund.de \
    --cc=ding@ifi.uio.no \
    --cc=stodghil@CS.Cornell.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).