imap & rsync - doing backup & restore

Hi ALL...

I have an IMAP server & I have setup rsync to copy all mailboxes (MailDir) to a remote backup machine.
rsync is working fine and is copying my files.

I need some advice on how to restore a particular mailbox when a user makes a request
assuming she has has deleted an important email.

my rsync command & options are :

rsync -avt --log-file=$log_file /home/vmail/ 10.0.0.x:/home/vmail

Thanks
CoolAtt

Have you tried:

rsync -avt --log-file=$log_file 10.0.0.x:/home/vmail/<somesubdir> /home/vmail/<somesubdir>

I don't know what the /home/vmail structure is, but I guess this is it.

However I doubt the solution you've set up will be good for reverting deleted emails. The change (file deletion) will propagate to the backup after each sync.