<<< Date Index >>>     <<< Thread Index >>>

Re: Does anyone know of a mailbox merging utility?



On Tue, Jan 27, 2004 at 04:41:44PM +0000, Chris Green wrote:
} I know it's a bit OT but does anyone know of a utility for merging
} mbox type mailboxes?  I want to merge two mailbox files in the sense
} of adding them together and then deleting all duplicate messages.
} 
} I have mbox1 and mbox2 where mbox2 will have some newer messages not
} in mbox1 and mbox1 may have some older messages not in mbox2.  I just
} want to add the newer messages from mbox2 into mbox1.
} 
} Don't say "use maildir", I have been using maildir but the
} disadvantages outweigh the advantages for me.  If I can do this merge
} then mbox format is just so much more convenient, I don't have any
} issues with locking problems, only I use the mbox files in question
} and new mail doesn't get delivered to them.

I don't know of a way of removing duplicates that is any easy than using
mutt to see and delete duplicates, but combining the two mboxes is as
simple as cat mbox2 >> mbox1.

} Chris Green (chris@xxxxxxxxxxx)
--Greg