Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
Re: [SLE] Copy spool mail files?
  • From: Jim Flanagan <linuxjim@xxxxxxxxxx>
  • Date: Sat, 28 May 2005 23:37:35 -0500
  • Message-id: <200505282337.35935.linuxjim@xxxxxxxxxx>
On Saturday May 28 2005 8:57 pm, Anders Johansson wrote:
> On Sunday 29 May 2005 03:34, Jim Flanagan wrote:
> > Thanks Anders. But I guess I did not fully state my question. I have been
> > bouncing back and forth between both installs, trying to configure
> > posftix on the new one. Now I have mail in both /var/spool/mail dirs,
> > some on one, others on the other.
> >
> > Is there a way to merge these?
> Sure, it's a relatively simple mail format. Just make sure no programs are
> running that use the spool file, and then do
> cat <spool file 1> <spool file 2> > <new spool file>
> and then "mv" the new spool file to whichever place you want to actually
> use (or possibly both)
> Make sure you take backups of the original spool files before you overwrite
> them, just in case you make a typo or something

cat worked great! Had a little trouble with renaming the 2 different files,
could not do that for some reason, so I put them in different directories.
After that I did a >> to the old larger one. Worked great! Thanks.

Jim Flanagan
linuxjim at jjfiii dot com

< Previous Next >