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

Mailing List Archive: Qmail: users

duplicate copy

 

 

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


ntserafica at gmail

Nov 18, 2009, 1:04 AM

Post #1 of 3 (1420 views)
Permalink
duplicate copy

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?


ar-djblists at acrconsulting

Nov 18, 2009, 1:22 AM

Post #2 of 3 (1305 views)
Permalink
Re: duplicate copy [In reply to]

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


ntserafica at gmail

Nov 18, 2009, 6:52 PM

Post #3 of 3 (1305 views)
Permalink
Re: duplicate copy [In reply to]

Thanks Andrew! It works
>
> If it's not you could use a tool like safecat instead,
>
> ./Maildir/
> |safecat Maildir/tmp Maildir/backup
>
>
>

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.