From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.32.82 with SMTP id b18cs170139ebd; Thu, 8 Apr 2010 14:44:51 -0700 (PDT) Received: by 10.204.36.199 with SMTP id u7mr773135bkd.212.1270763090663; Thu, 08 Apr 2010 14:44:50 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id k5si992977bkb.39.2010.04.08.14.44.49; Thu, 08 Apr 2010 14:44:50 -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 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 521D11D78889; Thu, 8 Apr 2010 17:44:49 -0400 (EDT) Received: from mail-relay-3.csv.warwick.ac.uk (mail-relay-3.csv.warwick.ac.uk [137.205.128.9]) by rubyforge.org (Postfix) with ESMTP id 4A89718582E7 for ; Thu, 8 Apr 2010 17:44:35 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail-relay-3.csv.warwick.ac.uk (8.13.8/8.13.6) with ESMTP id o38LiX59016654; Thu, 8 Apr 2010 22:44:33 +0100 (BST) X-Virus-Scanned: amavisd-new at warwick.ac.uk Received: from mail-relay-3.csv.warwick.ac.uk ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jccEYqK17drK; Thu, 8 Apr 2010 22:44:33 +0100 (BST) Received: from stewart.warwick.ac.uk (host-137-205-220-112 [137.205.220.112]) by mail-relay-3.csv.warwick.ac.uk (8.13.8/8.13.6) with ESMTP id o38LiWYY016630; Thu, 8 Apr 2010 22:44:32 +0100 (BST) X-Envelope-From: neil.stewart@warwick.ac.uk Received: from neil (helo=localhost) by stewart.warwick.ac.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1NzzWY-0007f3-QE; Thu, 08 Apr 2010 22:44:30 +0100 Date: Thu, 8 Apr 2010 22:44:30 +0100 (BST) From: Neil Stewart X-X-Sender: neil@stewart.warwick.ac.uk To: Richard Heycock In-Reply-To: <1270727373-sup-8902@roughage.com.au> Message-ID: References: <1270727373-sup-8902@roughage.com.au> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-530645552-1270763070=:26765" X-DCC-Warwick-Metrics: anemone; whitelist Cc: sup-talk Subject: Re: [sup-talk] sent mail X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Neil Stewart List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-530645552-1270763070=:26765 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed >>> In sup 0.11, sent mail does not get the inbox label anymore (AFAIK). Are you >>> using 0.11? >> >> I'm using 0.10.2-1 from Debian testing. I've had a go at getting 0.11, but >> it's not available in Debian. I've failed to compile it several times using >> "gems install sup". I finally got it to work using ruby1.9, but can't work >> out how to run sup. I tried Here is some more information on sent mail appearing in the inbox. First, it was discussed a while ago. Apologies for missing it. http://www.mail-archive.com/sup-talk@rubyforge.org/msg03227.html Second, I've downloaded the development sup from the gitorious.org and built and installed a sup gem. Using this, sent mail does get the inbox tag and appear in the inbox after sending. I've found that by changing line 52 in sent.rb from def labels; [:inbox, :sent]; end to def labels; [:sent]; end this behaviour can be disabled, so sent mail goes straight into the archive and is not included in the inbox. I've not used ruby before, but I've added an option :sent_appears_in_inbox: true to config.yaml. So the critical lines in sent.rb are now if $config[:sent_appears_in_inbox] then def labels; [:inbox, :sent]; end else def labels; [:sent]; end and I added :sent_appears_in_inbox => true to the bit of sup.pl that writes the default config.yaml. So the default is the current behaviour---sent appearing in the inbox, but one can turn this off by altering the default config.yaml. I've attached trivial patches for sup.rb and sent.rb if these are of any use. Best, Neil. --8323328-530645552-1270763070=:26765 Content-Type: APPLICATION/x-ruby; name=patch_for_sent.rb Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=patch_for_sent.rb LS0tIHNlbnQucmIub3JpZ2luYWwJMjAxMC0wNC0wOCAyMjo0MToxOC4wMDAw MDAwMDAgKzAxMDAKKysrIHNlbnQucmIJMjAxMC0wNC0wOCAyMjoyMzowNi4w MDAwMDAwMDAgKzAxMDAKQEAgLTUwLDcgKzUwLDExIEBACiAgIGRlZiB1cmk7 ICdzdXA6Ly9zZW50JyBlbmQKIAogICBkZWYgaWQ7IDk5OTg7IGVuZAotICBk ZWYgbGFiZWxzOyBbOmluYm94LCA6c2VudF07IGVuZAorICBpZiAkY29uZmln WzpzZW50X2FwcGVhcnNfaW5faW5ib3hdIHRoZW4gCisgIAlkZWYgbGFiZWxz OyBbOmluYm94LCA6c2VudF07IGVuZAorICBlbHNlCQorICAJZGVmIGxhYmVs czsgWzpzZW50XTsgZW5kCisgIGVuZAogZW5kCiAKIGVuZAo= --8323328-530645552-1270763070=:26765 Content-Type: APPLICATION/x-ruby; name=patch_for_sup.rb Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=patch_for_sup.rb LS0tIHN1cC5yYi5vcmlnaW5hbAkyMDEwLTA0LTA4IDIyOjQwOjU1LjAwMDAw MDAwMCArMDEwMAorKysgc3VwLnJiCTIwMTAtMDQtMDggMjI6MjM6NDMuMDAw MDAwMDAwICswMTAwCkBAIC0yNjYsNyArMjY2LDggQEAKICAgICA6c2VudF9z b3VyY2UgPT4gInN1cDovL3NlbnQiLAogICAgIDpwb2xsX2ludGVydmFsID0+ IDMwMCwKICAgICA6d3JhcF93aWR0aCA9PiAwLAotICAgIDpzbGlwX3Jvd3Mg PT4gMAorICAgIDpzbGlwX3Jvd3MgPT4gMCwKKyAgICA6c2VudF9hcHBlYXJz X2luX2luYm94ID0+IHRydWUKICAgfQogICBiZWdpbgogICAgIEZpbGVVdGls cy5ta2Rpcl9wIFJlZHdvb2Q6OkJBU0VfRElSCg== --8323328-530645552-1270763070=:26765 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk --8323328-530645552-1270763070=:26765--