Gnus development mailing list
 help / color / mirror / Atom feed
From: Dirk Meyer <dmeyer@tzi.de>
Subject: Re: function to get "To" address from the header
Date: Thu, 30 Aug 2001 16:57:07 +0200	[thread overview]
Message-ID: <xt4bskxvbng.fsf@riemen.informatik.uni-bremen.de> (raw)
In-Reply-To: <vaf1yltg3hj.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Thu, 30 Aug 2001 14:02:32 +0200")

Kai Großjohann wrote:
> Dirk Meyer <dischi@tzi.de> writes:
>
>> This doesn't work for me. %L und %D are empty in nndraft:draft because
>> the Date-Header is still missing. 
>>
>> Is it possible to add the missing headers when saving the message with
>> C-x C-s?
>
> Maybe (setq message-generate-headers-first t) and
> (add-to-list 'message-deletable-headers 'Date)?

Thanks. I don't like all headers as default, but with your tip I wrote   

(defun message-generate-headers-and-save ()
  (interactive)
  (message-generate-headers
   (if (message-news-p)
       message-required-news-headers
     message-required-mail-headers))
  (save-buffer))


(define-key message-mode-map "\C-x\C-s" 'message-generate-headers-and-save)


to add the headers only when saving the message. Now it works perfect
in nndraft:draft.

Dirk

-- 
Don't read everything you believe.


      reply	other threads:[~2001-08-30 14:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <u3d6bgo1g.fsf@cisco.com>
     [not found] ` <vafn14ik8j2.fsf@lucy.cs.uni-dortmund.de>
     [not found]   ` <u7kvm7yqw.fsf@cisco.com>
2001-08-30 10:57     ` Dirk Meyer
2001-08-30 12:02       ` Kai Großjohann
2001-08-30 14:57         ` Dirk Meyer [this message]

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=xt4bskxvbng.fsf@riemen.informatik.uni-bremen.de \
    --to=dmeyer@tzi.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).