From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46594 Path: main.gmane.org!not-for-mail From: clemens fischer Newsgroups: gmane.emacs.gnus.general Subject: envelope sender, qmail Date: Tue, 17 Sep 2002 17:32:44 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032290082 1198 127.0.0.1 (17 Sep 2002 19:14:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2002 19:14:42 +0000 (UTC) Return-path: Original-Received: from util2.math.uh.edu ([129.7.128.23]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17rNnz-0000JB-00 for ; Tue, 17 Sep 2002 21:14:40 +0200 Original-Received: from karazm.math.uh.edu ([129.7.128.1]) by util2.math.uh.edu with esmtp (Exim 4.10) id 17rNXn-000107-02; Tue, 17 Sep 2002 13:57:55 -0500 Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.128.10]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id LAA05375; Tue, 17 Sep 2002 11:19:41 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 17 Sep 2002 11:20:20 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA25712 for ; Tue, 17 Sep 2002 11:20:09 -0500 (CDT) Original-Received: (qmail 17629 invoked by alias); 17 Sep 2002 16:19:23 -0000 Original-Received: (qmail 17624 invoked from network); 17 Sep 2002 16:19:23 -0000 Original-Received: from main.gmane.org (80.91.224.249) by gnus.org with SMTP; 17 Sep 2002 16:19:23 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17rL40-0007Dn-00 for ; Tue, 17 Sep 2002 18:19:00 +0200 Original-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17rL3z-0007De-00 for ; Tue, 17 Sep 2002 18:18:59 +0200 Original-Path: ID-23066.news.dfncis.de!not-for-mail Original-Lines: 33 Original-NNTP-Posting-Host: pd90559c5.dip.t-dialin.net Original-X-Trace: main.gmane.org 1032279539 27753 217.5.89.197 (17 Sep 2002 16:18:59 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Tue, 17 Sep 2002 16:18:59 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386--freebsd) Cancel-Lock: sha1:7dpXzAqvU2ZtWh1Yi+JTcP3SdmE= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46594 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46594 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