Re: Archive maildir

2019-02-13 Thread @lbutlr via dovecot
On 13 Feb 2019, at 11:10, Peter Chiochetti via dovecot wrote: > ls | while read F; do echo $F; T=$(echo $F | cut -c 1-10); D=$(date > --date="@$T" "+../../.Archive.%Y-%m/cur"); echo $D; done Perfect! (change date to gdate if your system is BSD based and your gnu tools are prefix with 'g')

Re: Archive maildir

2019-02-13 Thread Peter Chiochetti via dovecot
Am 13.02.19 um 15:44 schrieb Gandalf Corvotempesta via dovecot: Il giorno mer 13 feb 2019 alle ore 14:02 @lbutlr via dovecot ha scritto: Why would the script be looking at the contents of the messages at all? The script isn't made by me and i'm not a python programme, thus, i'll keep it

Re: Archive maildir

2019-02-13 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 13 feb 2019 alle ore 14:02 @lbutlr via dovecot ha scritto: > Why would the script be looking at the contents of the messages at all? css having to "deal" with the subject? If you are using maildir, you have the > timestamp in the filename, and you can easily sort a message into

Re: Archive maildir

2019-02-13 Thread @lbutlr via dovecot
On 13 Feb 2019, at 02:22, Gandalf Corvotempesta via dovecot wrote: > Hi to all > We have a maildir with about 180GB of emails. > We have to archive them to a structure like: .Archive.YYY./MM.folder > > Are you aware of a script doing this ? I've found a perl script that > doesn't spit in year

Re: Archive maildir

2019-02-13 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 13 feb 2019 alle ore 11:09 Aki Tuomi ha scritto: > with 2.3.4 you could use the new FILTER command over IMAP to run sieve script. It's a very very old server, i'm not on 2.4.x I've managed to make this working: https://gist.github.com/fwenzel/280896 is working properly. I had to

Re: Archive maildir

2019-02-13 Thread Sami Ketola via dovecot
> On 13 Feb 2019, at 11.22, Gandalf Corvotempesta via dovecot > wrote: > > Hi to all > We have a maildir with about 180GB of emails. > We have to archive them to a structure like: .Archive.YYY./MM.folder > > Are you aware of a script doing this ? I've found a perl script that > doesn't spit

RE: Archive maildir

2019-02-13 Thread Aki Tuomi via dovecot
andalf Corvotempesta via dovecot [mailto: dovecot@dovecot.org] Sent: 13 February 2019 10:23 To: Dovecot Mailing List Subject: Archive maildir Hi to all We have a maildir with about 180GB of emails. We have to archiv

RE: Archive maildir

2019-02-13 Thread Marc Roos via dovecot
Mailing List Subject: Archive maildir Hi to all We have a maildir with about 180GB of emails. We have to archive them to a structure like: .Archive.YYY./MM.folder Are you aware of a script doing this ? I've found a perl script that doesn't spit in year and month and a very, very, very, very, very old

Re: Archive maildir

2019-02-13 Thread Peter Chiochetti via dovecot
Am 13.02.19 um 10:22 schrieb Gandalf Corvotempesta via dovecot: Hi to all We have a maildir with about 180GB of emails. We have to archive them to a structure like: .Archive.YYY./MM.folder Are you aware of a script doing this ? I've found a perl script that doesn't spit in year and month and a

Archive maildir

2019-02-13 Thread Gandalf Corvotempesta via dovecot
Hi to all We have a maildir with about 180GB of emails. We have to archive them to a structure like: .Archive.YYY./MM.folder Are you aware of a script doing this ? I've found a perl script that doesn't spit in year and month and a very, very, very, very, very old python script that: 1) doesn't