Am Montag, dem 24.01.2022 um 10:18 +0000 schrieb mikfum: > thanks John for the reply > what I would like to do is implement an autoarchive function at > server level that, in the night while dovecot is down, moves > messages older than n days from the user inbox to a subfolder of the > same user (cur to cur) > > tx > mik >
Use something like this in cron or similar: doveadm move -A Archive BEFORE 90d You must make sure though that the Archive mailbox exists before. > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > Il lunedì 24 gennaio 2022 2:43 AM, John Stoffel <j...@stoffel.org> ha > scritto: > > > "mikfum" == mikfum mik...@protonmail.com writes: > > mikfum> I would like to ask if it is an acceptable practice to manage > > mikfum> messages in the maildir as a file (move them from one folder > > mikfum> to another) while dovecot is in stop state thinking that it > > mikfum> will be rebuild to the next imap user login > > No, it's not a good idea, bad things might happen. > > what are you trying to accomplish? Maybe we can give a suggestion if > > we know what you are trying to accomplish. Don't assume that a > > certain method is the only way, just talk about the problem and what > > you wnat to achieve, not HOW you want to achieve it. > > Cheers, > > John