Gnus development mailing list
 help / color / mirror / Atom feed
From: Jens Lautenbacher <jens@lemming0.lem.uni-karlsruhe.de>
Subject: Re: Feature wish Red Gnus
Date: 19 Jul 1996 10:42:16 +0200	[thread overview]
Message-ID: <x2spao8wif.fsf@lemming0.lem.uni-karlsruhe.de> (raw)
In-Reply-To: Mark Eichin's message of 19 Jul 1996 02:53:39 -0400

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

Mark Eichin <eichin@cygnus.com> writes:

> On problem: I set gnus-message-archive-group to (lambda(x) (list
> "misc-mail" x)) which does the right thing when my mail is in nnml:*
> and news is just in news.group.whatever, but when I've got nnml as
> the gnus-select-method, and the groups are actually named mail.*, it
> ends up building a gcc line pointing to nnfolder+archive:mail.*
> instead.  I haven't dug around to find out how to deal, but it's
> pretty clear that "this isn't how lars does it" or it would be
> easier :-)

I made a small patch to gnus-msg.el that provides a new group
parameter "gcc-self". If this is set to t in a groups's parameter
list, the gcc line is always build according to the right group name
if you send from inside of this this group. I process all my article
saving with this, except for a standart archive server line for misc
mail or misc news like:

    (setq gnus-message-archive-group
	     '((if (message-news-p)
		   "misc-news"
		 "misc-mail")))

If gcc-self is set to none, no gcc line at all appears in this group. I
use this for articles gong to mailing lists I,m subscribed to, as my
article will come back anyway.

A typical group parameter list would be (for ding.ifi.uio.no):

;; Type `C-c C-c' after editing the group parameters.

((gcc-self . none)
 (to-address . "ding@ifi.uio.no"))


And another for some private email:

;; Type `C-c C-c' after editing the group parameters.

((gcc-self . t)
 (to-address . "LITZLER@KHE.SCN.DE"))


I append my patch below, I already sent it to Lars but it will not be
integrated (if at all) before Red Gnus.


[-- Attachment #2: gnuspatch --]
[-- Type: application/octet-stream, Size: 1598 bytes --]

*** /usr/users/jens/daten/elisp/gnus-5.2.19/lisp/gnus-msg.el	Sat Jun 15 11:06:23 1996
--- gnus-msg.el	Sat Jun 15 15:42:33 1996
***************
*** 854,859 ****
--- 854,860 ----
    (let* ((var gnus-message-archive-group)
  	 (group (or group gnus-newsgroup-name ""))
  	 result
+ 	 gcc-self-val
  	 (groups
  	  (cond 
  	   ((null gnus-message-archive-method)
***************
*** 897,909 ****
  	  (gnus-inews-narrow-to-headers)
  	  (goto-char (point-max))
  	  (insert "Gcc: ")
! 	  (while (setq name (pop groups))
! 	    (insert (if (string-match ":" name)
! 			name
! 		      (gnus-group-prefixed-name 
! 		       name gnus-message-archive-method)))
! 	    (if groups (insert " ")))
! 	  (insert "\n"))))))
  
  (defun gnus-summary-send-draft ()
    "Enter a mail/post buffer to edit and send the draft."
--- 898,924 ----
  	  (gnus-inews-narrow-to-headers)
  	  (goto-char (point-max))
  	  (insert "Gcc: ")
! 	  (if (and gnus-newsgroup-name
! 		   (setq gcc-self-val
! 			 (gnus-group-get-parameter
! 			  gnus-newsgroup-name 'gcc-self)))
! 	      (progn 
! 		(insert
! 		 (if (stringp gcc-self-val)
! 		     gcc-self-val
! 		   group))
! 		(if (not (eq gcc-self-val 'none))
! 		    (insert "\n")
! 		  (progn
! 		    (beginning-of-line)
! 		    (kill-line))))
! 	    (while (setq name (pop groups))
! 	      (insert (if (string-match ":" name)
! 			  name
! 			(gnus-group-prefixed-name 
! 			 name gnus-message-archive-method)))
! 	      (if groups (insert " ")))
! 	    (insert "\n")))))))
  
  (defun gnus-summary-send-draft ()
    "Enter a mail/post buffer to edit and send the draft."

  parent reply	other threads:[~1996-07-19  8:42 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
1996-07-19  8:42         ` Jens Lautenbacher [this message]
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=x2spao8wif.fsf@lemming0.lem.uni-karlsruhe.de \
    --to=jens@lemming0.lem.uni-karlsruhe.de \
    /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).