From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61239 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: how to change "from" address depending on which adress im replying to? Date: Wed, 26 Oct 2005 21:50:31 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130435029 23965 80.91.229.2 (27 Oct 2005 17:43:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 17:43:49 +0000 (UTC) Original-X-From: ding-owner+m9771@lists.math.uh.edu Thu Oct 27 19:43:45 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVBm8-0006tU-Qw for ding-account@gmane.org; Thu, 27 Oct 2005 19:42:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EVBm2-0006ym-00; Thu, 27 Oct 2005 12:42:46 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EV1eH-0005ay-00 for ding@lists.math.uh.edu; Thu, 27 Oct 2005 01:54:05 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EV1eD-0006Zz-1B for ding@lists.math.uh.edu; Thu, 27 Oct 2005 01:54:05 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EV1eB-0005DD-00 for ; Thu, 27 Oct 2005 08:53:59 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EV1cP-0008GH-9e for ding@gnus.org; Thu, 27 Oct 2005 08:52:09 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2005 08:52:09 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2005 08:52:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:aR+QPmP7RLgBdQJj3xkqrYXFPnU= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61239 Archived-At: On Tue, Oct 25 2005, Joakim Verona wrote: > How do I change the "from" address depending on which adress I'm > replying to? Put something like this in `gnus-posting-styles': ((string-match "joakim" (with-current-buffer gnus-article-buffer (message-fetch-field "From"))) (address "address-for-replies-to-joakim")) Untested and without proper error handling. (gnus-article-buffer might be nil or the buffer might not exist) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/