init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
parent
256dc98754
commit
df2daf524d
641 changed files with 140617 additions and 12 deletions
15
archive_mails.sh
Executable file
15
archive_mails.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
# Nico Schottelius
|
||||
# clean current mailbox, so imap connections are faster
|
||||
|
||||
set -e
|
||||
|
||||
maildir="$HOME/Maildir"
|
||||
curdir="$maildir/cur"
|
||||
date=$(date +%Y-%m-%d)
|
||||
archiv="$HOME/mail-archiv"
|
||||
ddir="${archiv}/${date}/"
|
||||
|
||||
mkdir -p "$ddir"
|
||||
|
||||
find "$curdir" -type f -exec mv {} "$ddir" \;
|
||||
Loading…
Add table
Add a link
Reference in a new issue