#!/bin/cat
$Id: FAQ.Archiving.txt,v 1.2 2016/05/09 13:03:14 gilles Exp gilles $

This documentation is also at http://imapsync.lamiral.info/#doc

============================================
   Imapsync tips about archiving messages.
============================================

=======================================================================
Q. How to move emails from one IMAP folder to another either on the 
  same IMAP server or a different one?
  For example, all messages older than 1 year, move from INBOX to Archive.
 
R1. Solution:

  imapsync ... --minage 365 --folder Inbox --f1f2 INBOX=Archive --delete --noexpungeaftereach

Add option --noexpungeaftereach if speed is a concern.
Add option --delete if you want to move messages, instead of just copy/sync them.

R2. See also file FAQ.Folders_Mapping.txt

