diff options
author | EuAndreh <eu@euandre.org> | 2018-07-27 06:49:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-07-27 06:49:50 -0300 |
commit | 58dc4112547a9d60f51dd6bcb2feece3b815c170 (patch) | |
tree | 3c0f7705e49fa558cd7aafa5f5e5afd055dd1798 | |
parent | Output all mail cronjob logs to date-named file (diff) | |
download | dotfiles-58dc4112547a9d60f51dd6bcb2feece3b815c170.tar.gz dotfiles-58dc4112547a9d60f51dd6bcb2feece3b815c170.tar.xz |
Use symlinks for the mail tmp files GC logic
-rw-r--r-- | bash/symlinks.sh | 8 | ||||
-rw-r--r-- | nixos/configuration.nix | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bash/symlinks.sh b/bash/symlinks.sh index dc8bc03..9683e67 100644 --- a/bash/symlinks.sh +++ b/bash/symlinks.sh @@ -43,11 +43,13 @@ ln -fs $DOTFILES/xmonad/xsession.sh ~/.xsession ln -fs $DOTFILES/xmonad/xmonad.hs ~/.xmonad/xmonad.hs ln -fs $DOTFILES/xmonad/xmobar.hs ~/.xmobarrc -# OfflineIMAP -ln -fs $DOTFILES/mail/mbsyncrc.ini ~/.mbsyncrc -ln -fs $DOTFILES/mail/notmuch.ini ~/.notmuch-config +# Mail mkdir -p ~/mbsync/.notmuch/hooks ~/mbsync/EuAndreh ~/mbsync/Gmail ~/mbsync/Nubank ln -fs $DOTFILES/mail/notmuch-post.sh ~/mbsync/.notmuch/hooks/post-new +ln -fs $DOTFILES/mail/mbsyncrc.ini ~/.mbsyncrc +ln -fs $DOTFILES/mail/notmuch.ini ~/.notmuch-config +ln -fs /tmp/mbsync.$(date +%Y-%m-%d).log /tmp/mbsync.log +ln -fs /tmp/notmuch.$(date +%Y-%m-%d).log /tmp/notmuch.log # GNUS diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 07d424e..c82e334 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -266,7 +266,7 @@ services = { cron.enable = true; - cron.systemCronJobs = ["* * * * * andreh mbsync -aV &>> /tmp/mbsync.$(date +%Y-%m-%d).log && notmuch new &>> /tmp/notmuch.$(date +%Y-%m-%d).log"]; + cron.systemCronJobs = ["* * * * * andreh mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log"]; xserver = { enable = true; |