From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs103578ebz; Wed, 6 Jan 2010 11:30:32 -0800 (PST) Received: by 10.224.69.84 with SMTP id y20mr13033423qai.353.1262806231683; Wed, 06 Jan 2010 11:30:31 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 3si31072955qyk.68.2010.01.06.11.30.31; Wed, 06 Jan 2010 11:30:31 -0800 (PST) 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 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 2A1CA177994B; Wed, 6 Jan 2010 14:30:31 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id BB9E21779942 for ; Wed, 6 Jan 2010 14:29:40 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1NSbZc-0006A3-Iy for sup-talk@rubyforge.org; Wed, 06 Jan 2010 14:29:40 -0500 From: William Morgan To: sup-talk In-reply-to: <3f81a4241001061118k7fa0c9e6ub556c400a00b139b@mail.gmail.com> References: <1246476925-sup-5046@ntdws12.chass.utoronto.ca> <1246502666-sup-1295@ntdws12.chass.utoronto.ca> <1246542975-sup-7239@ntdws12.chass.utoronto.ca> <3f81a4241001041055t443931c6vbbe1e7a44599d4f1@mail.gmail.com> <1262728264-sup-3239@masanjin.net> <3f81a4241001061118k7fa0c9e6ub556c400a00b139b@mail.gmail.com> Date: Wed, 06 Jan 2010 14:29:40 -0500 Message-Id: <1262805923-sup-3586@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] sent_source - singular or per-account? 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 Reformatted excerpts from Bryan Richardson's message of 2010-01-06: > I'd take a stab at it if a Sup guru would give me a few pointers as to > where to start... :) SentManager.write_sent_message is the method you want to play with. For hook stuff, take a look at how any of the current hooks are defined and called (git grep 'hook' or something). Ben Walton's posts on this thread are also very useful. The simplest approach might be to just have the hook return a source that's used (if supplied) instead of the default source, and leave it up to the hook writer to interact with SourceManager or whatever to acquire the Source object they want. -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk