Thanks fosiul01 but I want to move anly the massages received more than 3 months ago :-)
Main Topics
Browse All TopicsIs there a simple way to automatically move to another dovecot IMAP user account all email massages received more than 3 months ago on a specified IMAP dovecot user account?
I want to move all old messages from the account llattari to the account archive. How to perform this? How to perform this task always automatically? Thanks for any suggestion :-) I use the Dovecot version 1.1.1 and the problem is that some user mail files are bigger than 10GB !!!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There are many IMAP tools that you can use.
I believe these can help:
http://sourceforge.net/pro
http://sourceforge.net/pro
http://sourceforge.net/pro
the list to search includes this:
http://sourceforge.net/sea
Thanks Redimido!
The imapsplit utility is fine but how do I set the regexp expression ('match_regexp') to match the messages that have been received more than 3 months ago?
imap_servers = [
# IMAPS server at somewhere.com
{'type': 'imaps',
'host': 'somewhere.com',
'user': 'chochko',
'password': 'mochko',
'split_rules': [{'target': 'ros-dev',
'match': 'header',
'match_regexp': r"^List-Id: *ReactOS Development List *<ros-dev\.reactos\.com>$"
},
{'target': 'miscellaneous',
'match': 'always'
}
]
},
Many thanks in advance :-)
I'm sorry because I am not an expert, but I will still try to help:
just looking at the packages suggested, I see this page
http://imap-agent.sourcefo
Looks like imap-agent is a good tool for mails that are X days old (I read imapsplit and cannot think of a good regular expression that matchs old emails since there is no actual date variable to use. sorry it took to much for me but I understand my advise is what you were looking for and not me doing the actual job for you)
well, to the point:
check "ADDITIONAL].XML Sample File" and the information for age="XXX" where you can state the age of emails you want that rule to match.
here we can match emails older than 90 days, so it works for what you need.
ehhh.... nothing to do.... because, as I read (maybe I misunderstood it), the Age attribute in the imap agent is used for definitively deleting emails older than (Age) days and not for moving them to a different folder and (what is my goal) for moving them to another namespace (dovecot user).... anyways many thanks Redimido for the help
Age:
Meaning number of days old.
All email older than (Age) days is deleted. The MIME Date: header is where the email date is taken from.!
Note: Deleted messages are not moved to the mailbox Trash folder, but are immediately expunged from the mailbox. There is no ability to retrieve deleted messages.
hmmm.... Age is used to set the age quota of a folder.... all messages that exceed the age quota are deleted (definitively)....and there is no way to move a messages to a specified folder based on its age...
Under <folder> I read:
"
Age of the message in days.
Numeric.
Optional. This attribute applies when the folder tag is a child of the <aging> tag.
=> It only applies to aging <=
"
"
<aging>
Aging tags are parent tags containing folder tags. <aging> and <rules> tags are at the same level.
They are separated because aging is only performed periodically such as once per day while the other rules are performed many times per day, perhaps many times per hour and this makes for easier maintenance.
"
But...ok... i will try and I tell you :-) Many Thanks!
Business Accounts
Answer for Membership
by: fosiul01Posted on 2009-01-19 at 05:11:51ID: 23410221
one you you can set a forward in llattari account to go all email to another account w-to-use-t he-.forwar d-file
http://www.go2linux.org/ho
normaly all email is stored in
cd /var/mail folder
now this archive where you want to keep all email from llattari , this "archive" is this an email account or its a directory where you want to keep all lattarri's email ??
in that case, easy options i would of say, to copy lattarris file from /var/mail folder to Archive folder
and you can automate this via cronjob