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 ??????? Original Message ??????? Il luned? 24 gennaio 2022 2:43 AM, John Stoffel <john at stoffel.org> ha scritto:> "mikfum" == mikfum mikfum at 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
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 <john at stoffel.org> ha > scritto: > > > "mikfum" == mikfum mikfum at 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
mikfum> thanks John for the reply No problem! I'm not an expert by any stretch, but I've been using dovecot for years and doing It for way too many years... LOL! mikfum> what I would like to do is implement an autoarchive function mikfum> at server level that, in the night while dovecot is down, mikfum> moves messages older than n days from the user inbox to a mikfum> subfolder of the same user (cur to cur) Why do you bring dovecot down? What maintenance are you running them? I'm curious because I never reboot my dovecot instance unless there's a problem. And these days, if you are running a business providing email service, it seems better to run a cluster of dovecot servers behind dovecot director to load balance things. I also feel that using the doveadm commands to do this work is the better way, since it will properly handle locking and consistency of the folder(s). Why do you think that doing this with dovecot is down is the best way to do this? John