From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.134.218 with SMTP id k26cs12076bkt; Tue, 8 Jun 2010 04:58:22 -0700 (PDT) Received: by 10.231.44.200 with SMTP id b8mr5985190ibf.150.1275998301484; Tue, 08 Jun 2010 04:58:21 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id f8si8348169ibb.71.2010.06.08.04.58.20; Tue, 08 Jun 2010 04:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id AF7CA1D799F7; Tue, 8 Jun 2010 07:58:20 -0400 (EDT) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by rubyforge.org (Postfix) with ESMTP id 2597D1858321 for ; Tue, 8 Jun 2010 07:57:59 -0400 (EDT) Received: by pwi1 with SMTP id 1so407392pwi.23 for ; Tue, 08 Jun 2010 04:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:subject:from:to :in-reply-to:references:date:message-id:user-agent :content-transfer-encoding; bh=gOc5164iYpq+0mc2HYxYEiAhSMZI3uXVs7Zz/GkA8xk=; b=OZRd3OgUC2la6g3gzqLVdhIFnMVXbrX2TGvqxa/a947+8o7M9QVjkvdA6smpPJ1gKO siW8FyqJckyEH5kT5FQ3GtBqfqNW0QcCJPIhvNYpnVM6PVj2bcv4kzPm9h1RARFWV7j9 YR6vmBJEs4Rayirmi283xO/wIOe5jqsLPeD/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:in-reply-to:references:date:message-id :user-agent:content-transfer-encoding; b=tutOrWognJj/D9IAkwgBDhEmM3TELC63yiQbFjALvqyuFYmI57t8IYmGIJ2kR4lYmV BZHFxbMqZB/IB/tsM4iBAbAfoV+oWO3MpRppcednW6aCfVpVsDWH+bOhrCYzn5WhkyoE ZyUmyqvrU8JjBtezRaFQJx9o9yU1/Wt++5XyQ= Received: by 10.114.242.14 with SMTP id p14mr12776126wah.156.1275998278863; Tue, 08 Jun 2010 04:57:58 -0700 (PDT) Received: from localhost (c-76-98-96-154.hsd1.nj.comcast.net [76.98.96.154]) by mx.google.com with ESMTPS id c14sm49701206waa.13.2010.06.08.04.57.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 04:57:57 -0700 (PDT) From: Eric Sherman To: sup-talk In-reply-to: <1275973780-sup-5206@ubuntu.ubuntu-domain> References: <1275850632-sup-6402@ubuntu.ubuntu-domain> <1275884981-sup-4509@roughage.com.au> <1275973780-sup-5206@ubuntu.ubuntu-domain> Date: Tue, 08 Jun 2010 07:57:54 -0400 Message-Id: <1275997525-sup-9347@changeling.local> User-Agent: Sup/git Subject: Re: [sup-talk] choosing signatures X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Excerpts from Daniel Goldin's message of Tue Jun 08 01:16:25 -0400 2010: > Thanks so much, works like a charm. But is there a way to change the > "From:" and "In-reply-to:" and "Reply-to:" headers without having to add > the config option ":ask_for_from: true"? You may use the before-edit and reply-from hooks. Here are scrubbed versions of mine: before-edit.rb: if header["To"] =~ /megacorp|ultramegacorp|alternacorp|minicorp|othercorp/ header["From"] = "me " elsif header["To"] =~ /somelist|alternalist|otherlist/ header["From"] = "me " end header["Bcc"] = header["From"] reply-from.rb: val = case [message.recipient_email, message.to, message.cc, message.from].flatten.to_s when /megacorp|ultramegacorp|alternacorp|minicorp|othercorp/ then "me " when /personal.org/ then "me " when /nerdylistemail.org|somelist|alternalist|otherlist/ then "me " when /newemail/ then "me " when /oldemail/ then "me " end Person.from_address val _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk