cutting mail spool

Lynn David Newton lnewton at mvista.com
Fri Jul 29 11:27:35 MST 2005


Using dd to cut a large mail spool file blindly cuts it
at some random place. It would be better to split it at
the beginning of messages. An email message begins with
the string "^From ".

I played a couple of minutes with csplit(1) (context
split), which looks like a possibility, and used to
understand, but it's been 10-15 years since I've used
it for anything, and couldn't quite make it work. But
I'll bet with a little experimentation you could use
that to divide the file into multiple spool files.

-- 
Lynn David Newton
Phoenix, AZ


More information about the PLUG-discuss mailing list