From: jeff.covey@pobox.com (jeff covey)
Subject: [sup-talk] saving sent mail to places other than the default
Date: Mon, 03 Sep 2007 08:33:48 -0400 [thread overview]
Message-ID: <1188822120-sup-9376@mona> (raw)
In-Reply-To: <20070831171234.GD8312@die.therning.org>
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/
prev parent reply other threads:[~2007-09-03 12:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1188557360-sup-7369@bryma>
2007-08-31 15:31 ` [sup-talk] on sup William Morgan
2007-08-31 17:12 ` Magnus Therning
2007-09-02 23:03 ` William Morgan
2007-09-05 7:48 ` Magnus Therning
2007-09-05 15:27 ` William Morgan
2007-09-06 7:02 ` Magnus Therning
2007-09-11 22:08 ` William Morgan
2007-09-11 23:04 ` Magnus Therning
2007-09-05 21:55 ` William Morgan
2007-09-06 6:50 ` Magnus Therning
2007-09-11 20:48 ` William Morgan
2007-09-03 12:33 ` jeff covey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1188822120-sup-9376@mona \
--to=jeff.covey@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox