From mboxrd@z Thu Jan 1 00:00:00 1970 From: jeff.covey@pobox.com (jeff covey) Date: Mon, 03 Sep 2007 08:33:48 -0400 Subject: [sup-talk] saving sent mail to places other than the default In-Reply-To: <20070831171234.GD8312@die.therning.org> References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south> <20070831171234.GD8312@die.therning.org> Message-ID: <1188822120-sup-9376@mona> 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/