From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.134.218 with SMTP id k26cs76677bkt; Thu, 10 Jun 2010 09:46:30 -0700 (PDT) Received: by 10.101.146.3 with SMTP id y3mr373400ann.199.1276188389688; Thu, 10 Jun 2010 09:46:29 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id f8si320573ibb.97.2010.06.10.09.46.29; Thu, 10 Jun 2010 09:46:29 -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 D009A185838D; Thu, 10 Jun 2010 12:46:28 -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 D511B185835D for ; Thu, 10 Jun 2010 12:09:27 -0400 (EDT) Received: by pwj2 with SMTP id 2so58910pwj.23 for ; Thu, 10 Jun 2010 09:09:26 -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:references:date:message-id:user-agent :content-transfer-encoding; bh=5Ibo73MLBNhs+FDyWE8p1hV40+n6tka4uhZCT4oF65U=; b=vwfBQJRVogzUdZ0T4WXVXGU02NeWiA2HzEy4nBZlVUWbF65UDWRcCZ3J3FB28ta6LY YU7RqAw3wf5qaoZEmdBIRd9xLF1HVI1kBKXqGg1EQDkbwwQ77fTpO7EXERl5raJMR21l Ca1lgLeCUtcCV9DdNrb4pNiEQoQwXIgTSGKSA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:cc:subject:from:to:in-reply-to:references:date :message-id:user-agent:content-transfer-encoding; b=nIfSfi/d8zr0iofHVoUu/v8dk2CduvNFHCr4Rzat3gtBvSK7KCLZH7LwrJgmKY+ubM 9EA2Ey7Ch5cEyJRwaKFFDfZGpJRRHLqG/PHmt/8vSGe3EJVlaS+m5FGc25ee6dqjCnKn 2nnzbZYagTBbBObgvX2kMElKgQsvmLA3g3LAY= Received: by 10.115.133.14 with SMTP id k14mr324048wan.73.1276185681283; Thu, 10 Jun 2010 09:01:21 -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 r20sm1515375wam.5.2010.06.10.09.01.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jun 2010 09:01:19 -0700 (PDT) From: Eric Sherman To: Gregor Hoffleit In-reply-to: <1276184688-sup-7287@sam.mediasupervision.de> References: <1275850632-sup-6402@ubuntu.ubuntu-domain> <1275884981-sup-4509@roughage.com.au> <1275973780-sup-5206@ubuntu.ubuntu-domain> <1275997525-sup-9347@changeling.local> <1276184688-sup-7287@sam.mediasupervision.de> Date: Thu, 10 Jun 2010 12:01:15 -0400 Message-Id: <1276185501-sup-3012@changeling.local> User-Agent: Sup/git Cc: sup-talk 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 Gregor Hoffleit's message of Thu Jun 10 11:52:25 -0400 2010: > Eric, > > at first, that looks like a duplication of code. Could you elaborate why > you use both of these hooks? > > Gregor Yes. The reply-from hook only triggers when replying, whereas the before-edit hook triggers also when composing a new email. In this way I can ensure that for instance when I start a new thread to recipients at my workplace or its vendors, the correct non-default From address (and thusly the correct non-default sup account and signature and so on) is selected. _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk