Gnus development mailing list
 help / color / mirror / Atom feed
* envelope sender, qmail
@ 2002-09-17 15:32 clemens fischer
  2002-09-17 16:54 ` Paul Jarc
  0 siblings, 1 reply; 8+ messages in thread
From: clemens fischer @ 2002-09-17 15:32 UTC (permalink / raw)


i'm still not sure why gnus can't set the envelope sender in the
posting styles, or why setting Return-Path doesn't make qmail-inject
use its value for the sender.

my current problem is with originating a message, like starting a new
thread or subscribing to a mailinglist that looks at the envelope.
not every list-software allows setting the address one wants like
ezmlm by using special syntax in the request-address, and some lists
allow only subscribers by checking the envelope.

i have now:

;;; setting up envelope sender
(defun cf-message-sender-hook ()
   (let ((from (or (cadr (mail-extract-address-components
                           (message-fetch-field "from")))
                   user-mail-address)))
        (setq message-qmail-inject-args (list "-h" "-f" from))))

(add-hook 'message-send-mail-hook ; perhaps message-send-hook?
          'cf-message-sender-hook)

now i wonder if this isn't the rather clumsy variant, but at least it
works.

btw, i think i never really answered kai's hint to use group-local
variables for this kind of thing: i'm collecting all messages into one
central inbox to read them, and only afterwards decide where to put
them, because usually i just make notes, so many list messages finally
get deleted.  so i don't have groups for every list i'm subscibed to.

-- 
clemens





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-21 17:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 15:32 envelope sender, qmail clemens fischer
2002-09-17 16:54 ` Paul Jarc
2002-09-17 17:57   ` Kai Großjohann
2002-09-19 21:45   ` Clemens Fischer
2002-09-20 10:04     ` Kai Großjohann
2002-09-21  0:33       ` Clemens Fischer
2002-09-20 16:14     ` Paul Jarc
2002-09-21 17:13       ` Clemens Fischer

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).