[sup-talk] saving sent mail to places other than the default

jeff covey jeff.covey at pobox.com
Mon Sep 3 08:33:48 EDT 2007


Excerpts from Magnus Therning's message of Fri Aug 31 13:12:34 -0400 2007:

> > >  - support for choosing where to save sent messages
> > 
> > This I'm a little curious about. Why do you care where they live on
> > disk, as long as they show up in the index?
> 
> I have a fairly extensive configuration of procmail for sorting mails

i also want my sent mail sorted by procmail instead of stored in ~/.sup, so
i run it through "formail -s procmail".  below is the script i run at the
end of the day to empty ~/.sup/sent.mbox and file the messages with
procmail; you might try something similar, perhaps by cron if it's on your
friend's machine.


#------------------------------------------------------
#!/bin/sh

ruby='ruby -I lib -w'

cd ~/tmp/sup/trunk

tmpfile=~/tmp/sup-sent/sup-sent-`/bin/date +%F-%T`.mbox

mv ~/.sup/sent.mbox $tmpfile
touch ~/.sup/sent.mbox

echo "processing messages..."
formail -s procmail < $tmpfile

$ruby bin/sup-sync --changed sup://sent 

echo "original sup sent mbox in $tmpfile"

#------------------------------------------------------


this assumes that the resulting destinations for sent messages are checked
by sup in its poll for new messages, so they show up in sup's index again.

sincerely,

-- 
jeff covey
http://jeffcovey.net/



More information about the sup-talk mailing list