Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

Re: duplicate copy (corrected)

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


ar-djblists at acrconsulting

Nov 18, 2009, 3:21 AM

Post #1 of 1 (768 views)
Permalink
Re: duplicate copy (corrected)

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/
./Maildir/backup/

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
====================================================================

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.