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

Re: [sup-devel] Mail-to-self does not end up in inbox



Excerpts from Ico Doornekamp's message of Sun Mar 06 18:34:56 +0000 2011:
> Back in the old days when using mutt, I regularly used to send mails to
> myself as reminders or short notes. Sup however shows intelligent
> behaviour, recognizes the message is both sent and received, and
> attaches a 'sent' label to it, and thus the mail does not show up in the
> inbox.
> 
> Is there a simple workaround for this ? Could this be considered a bug,
> or is this just functioning as designed ?

I generally prefer sent email to not show up in the inbox - I try to
keep my inbox somewhere near zero (though I rarely achieve it ...)

A work around could be to add the inbox label to sent mail that is just
to you. In before-add-message.rb you could have something like:


if message.from.email == "me@mine.com" && message.to.length == 1 && message.to[0].email == "me@mine.com"
  message.add_label :inbox
end


I haven't tested that, so you may want to check your logs if you try
using it. Or you could have a keyword in the subject - [ACTION] maybe -
and have a hook filter for that.

Hamish
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel