[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] sent mail



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.

Attachment: patch_for_sent.rb
Description: application/ruby

Attachment: patch_for_sup.rb
Description: application/ruby

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk