[plug] moving mail in postfix

Adrian Chadd adrian at creative.net.au
Fri Apr 17 11:13:49 WST 2009


As long as you get the format correct, appending messages will
be fine. (ie, blank line between old and new message.)

There's no requirement for messages to be ordered correctly in the file.



Adrian

On Fri, Apr 17, 2009, ian at iball.id.au wrote:
> Out of curiousity, would simply appending the old mbox file to the new mbox
> file cause any issues, since the emails would not be sequential in the file
> (ie: old mail would appear after new mail)?
> 
> There is a lot to be said for Maildir's instead of Mboxes :)
> 
> --Ian
> 
> 
> On Fri, 17 Apr 2009 11:00:46 +0800 (WST), Matt Kemner
> <zombie at penguincare.com.au> wrote:
> > Hi Jon
> > 
> > On Fri, 17 Apr 2009, quoth Jon L. Miller:
> > 
> >> We have a mailbox that has mail in /var/mail/username that we would like
> >> to move to another user.  Is there a way to move this file (username) to
> >> another? Is this some sort of copy command to append the file to the new
> >> user?  I'm using aliase to redirect any new mail, but currently we want
> >> to
> >> see the old mail mail.
> > 
> > It's just a text file, so you can append it using normal unix tools
> > 
> > eg:
> > 
> > cat /var/mail/oldusername >> /var/mail/newusername
> > 
> > The >> means append, single > means overwrite
> > 
> >  - Matt
> > 
> > _______________________________________________
> > PLUG discussion list: plug at plug.org.au
> > http://www.plug.org.au/mailman/listinfo/plug
> > Committee e-mail: committee at plug.linux.org.au
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -



More information about the plug mailing list