Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de>
Subject: Re: Summary format question
Date: 27 May 1997 18:07:53 +0200	[thread overview]
Message-ID: <vaf4tbolwyu.fsf@ls6.cs.uni-dortmund.de> (raw)
In-Reply-To: Nelson Jose dos Santos Ferreira's message of 27 May 1997 15:44:23 +0100

>>>>> Nelson Jose dos Santos Ferreira writes:

  Nelson> 1. Set Gcc replies for mail folders to that folder.

I use the following:

,-----
| (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)
`-----

I also have the following function bound to a key in message mode.

,-----
| (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")))))))
`-----

hth,
kai
-- 
Life is hard and then you die.


  reply	other threads:[~1997-05-27 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-27 14:44 Nelson Jose dos Santos Ferreira
1997-05-27 16:07 ` Kai Grossjohann [this message]
1997-05-27 17:46 ` Lars Magne Ingebrigtsen
1997-05-27 18:10 ` Sudish Joseph

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=vaf4tbolwyu.fsf@ls6.cs.uni-dortmund.de \
    --to=grossjohann@charly.cs.uni-dortmund.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).