
ar-djblists at acrconsulting
Nov 18, 2009, 1:22 AM
Post #2 of 3
(1305 views)
Permalink
|
On Wednesday 18 November 2009 09:04:03 nelsonts wrote: > Anyone can give me a hint or advise how can I duplicate all emails > coming on a user to a have a copy to another folder inside his Maildir > directory. > > Example. > > There's a directory called backup inside the Maildir other than new, cur > and tmp. Of course if someone email to a user, the email will go to new > directory under Maildir. I want also to have a copy of that every new > email to the backup folder inside the Maildir. I believe I can do this > in .qmail inside the user's home directory. I just don't know where to > start. Can anyone give me a url or suggestion how to do this. Can I > create a simple bash script to put on .qmail to make this thing run? If Maildir/backup is also a Maildir, (so you have backup/cur, backup/new, backup/tmp) then you can just have your .qmail with, ./Maildir/ ./backup/Maildir/ If it's not you could use a tool like safecat instead, ./Maildir/ |safecat Maildir/tmp Maildir/backup cheers, Andrew. -- ==================================================================== * Custom email solutions * Systems Administration * Networking http://www.acrconsulting.co.uk/email/qmail.html ====================================================================
|