13 Feb
2019
13 Feb
'19
7:10 p.m.
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 dovecot@dovecot.org 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 as-is
I really prefere a bash one-liner......
Here for a start
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
The file is in $F; the target directory is in $D; in front of the last semicolon you add
mkdir -p $D; mv $F $D
-- peter