procmail
[Top] [All Lists]

Re: Backup in mbox format?

2000-01-17 00:50:50
On Sun, Jan 16, 2000 at 09:02:50PM -0600, Aaron Schrab wrote:

At 13:32 +0100 16 Jan 2000, Morten Bo Johansen <mojo(_at_)image(_dot_)dk> 
wrote:

However it saves the backed up messages in the MH folder
format (I think).

As has already been said mbox doesn't work too well for this
type of thing, but mutt supports MH folders.  To get it to
recognize your backup as a MH folder, just create a
.mh_sequences file in your backup directory:

  touch backup/.mh_sequences
  mutt -f backup

I think you might also have to add a slash and a dot to the
directory in the first recipe from `man procmailex` and do
something about the "msg.*" in the second. Mutt needs the file
names to be numbers, it appears.

              :0 c
              backup/.

              :0 ic
              | cd backup && rm -f dummy `ls -t * | sed -e 1,32d`

There would be problems if you started deleting these mails from
within mutt, wouldn't there? And the problem with these backups
on a regular basis is it leaves 2 extra entries in .procmail/log
for each email received. 

-- 
Greg Matheson                                      The Internet from time
Chinmin College, Taiwan                            to time claims this 
lang(_at_)ms(_dot_)chinmin(_dot_)edu(_dot_)tw                             
address does not exist

<Prev in Thread] Current Thread [Next in Thread>