From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.134.218 with SMTP id k26cs19141bkt; Tue, 8 Jun 2010 10:16:14 -0700 (PDT) Received: by 10.231.59.1 with SMTP id j1mr1954856ibh.55.1276017373363; Tue, 08 Jun 2010 10:16:13 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id y29si8901653iby.10.2010.06.08.10.16.12; Tue, 08 Jun 2010 10:16:13 -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 3A069167831A; Tue, 8 Jun 2010 13:16:12 -0400 (EDT) Received: from mail-pv0-f178.google.com (mail-pv0-f178.google.com [74.125.83.178]) by rubyforge.org (Postfix) with ESMTP id 831D11858346 for ; Tue, 8 Jun 2010 13:04:52 -0400 (EDT) Received: by pvg12 with SMTP id 12so117670pvg.23 for ; Tue, 08 Jun 2010 10:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:cc:subject:from :to:in-reply-to:reply-to:references:date:message-id:user-agent :content-transfer-encoding; bh=INkzM11jzL7lud4icrHmoLMQOndqw6IZHDsumiyNNLc=; b=aTj9EzK+616Hq9c91PacxzwoxJEetC0Oc0DB9sHaFgRZq/7yk9TVWw2iOd9gBDJEt1 6NqY1JzNUSCu4IJ6ffzVABmQHN9ALWePgB5C/bbHOOeG8w1yByQ0TsG1xKkdINcUXE2C bANS/IbKQqRfKP708Z6/jGbQzfLu0QWlK/09g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:cc:subject:from:to:in-reply-to:reply-to:references :date:message-id:user-agent:content-transfer-encoding; b=nY3as3JmxH6i8+WjKvOyog3F/amq/cmajf3NiK9AnHcsK7Wjdyt8tRELKSIV8fDp+m vWZQotv+nkel5uUuUZ7GY7ZDZlkM+Coo5Ed/G7nt6aaLwK4Ewo2yG6KfeUhMZ4n/AsdL 4irmMo97xt9sIGagBOc4u2dGtGDqwNG6Icnuo= Received: by 10.140.58.7 with SMTP id g7mr1063543rva.37.1276016246555; Tue, 08 Jun 2010 09:57:26 -0700 (PDT) Received: from localhost (adsl-75-16-50-98.dsl.irvnca.sbcglobal.net [75.16.50.98]) by mx.google.com with ESMTPS id d14sm5915077rva.6.2010.06.08.09.57.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 09:57:25 -0700 (PDT) From: Daniel Goldin To: Eric Sherman In-reply-to: <1275997525-sup-9347@changeling.local> References: <1275850632-sup-6402@ubuntu.ubuntu-domain> <1275884981-sup-4509@roughage.com.au> <1275973780-sup-5206@ubuntu.ubuntu-domain> <1275997525-sup-9347@changeling.local> Date: Tue, 08 Jun 2010 09:57:22 -0700 Message-Id: <1276016203-sup-3732@ubuntu.ubuntu-domain> User-Agent: Sup/0.10.2 Cc: sup-talk Subject: Re: [sup-talk] choosing signatures X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Daniel Goldin 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 Thank you so much! Works perfectly. d. Excerpts from Eric Sherman's message of Tue Jun 08 04:57:54 -0700 2010: > 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 -- Daniel Goldin 213.926.1960 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk