Installation script for mails
This commit is contained in:
@@ -1,9 +1,69 @@
|
||||
#+TITLE: Mail Configuration
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
Installation:
|
||||
* Mail Install Script
|
||||
:PROPERTIES:
|
||||
:header-args:bash: :tangle scripts/install-mail.sh :shebang "#!/bin/bash" :mkdirp yes
|
||||
:END:
|
||||
|
||||
Mail setup documentation: [[file:mail.org][mail.org]]
|
||||
|
||||
#+begin_src bash
|
||||
set -euo pipefail
|
||||
#+end_src
|
||||
|
||||
** Packages
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Mail packages"
|
||||
paru -S --needed --noconfirm \
|
||||
isync \
|
||||
msmtp \
|
||||
neomutt \
|
||||
mu \
|
||||
lynx urlview
|
||||
#+end_src
|
||||
|
||||
** Tangle Configuration
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Tangling mail.org"
|
||||
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/mail.org")'
|
||||
#+end_src
|
||||
|
||||
** Mail Directories
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Creating mail directories"
|
||||
mkdir -p ~/.local/share/mails/{gmail,esrf,search,empty}
|
||||
mkdir -p ~/.local/share/mails/gmail/{Inbox,Sent,Drafts,Archive,Trash}
|
||||
mkdir -p ~/.local/share/mails/esrf/{Inbox,Sent,Drafts,Archive,Trash}
|
||||
mkdir -p ~/.local/share/mails/search/{cur,new,tmp}
|
||||
mkdir -p ~/.local/share/mails/empty/gmail/{cur,new,tmp}
|
||||
mkdir -p ~/.local/share/mails/empty/esrf/{cur,new,tmp}
|
||||
#+end_src
|
||||
|
||||
** Getting the emails
|
||||
|
||||
#+begin_src bash
|
||||
echo "==> Getting all the emails"
|
||||
mbsync -a
|
||||
#+end_src
|
||||
|
||||
** Initialize mu
|
||||
|
||||
#+begin_src bash :tangle no
|
||||
paru -S mbsync msmtp neomutt lynx urlview
|
||||
echo "==> Initializing mu index"
|
||||
mu init -m ~/.local/share/mails
|
||||
mu index
|
||||
#+end_src
|
||||
|
||||
** Systemd Timers
|
||||
|
||||
#+begin_src bash :tangle no
|
||||
echo "==> Enabling mail timers"
|
||||
systemctl --user enable --now checkmail.timer
|
||||
systemctl --user enable --now syncmail.timer
|
||||
#+end_src
|
||||
|
||||
* Claude Code — Email Assistant
|
||||
@@ -227,12 +287,6 @@ account default : esrf
|
||||
#+END_SRC
|
||||
|
||||
* =mu= - Mail Indexer
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: mu
|
||||
:END:
|
||||
|
||||
=Mu= ([[https://github.com/djcb/mu][github]]) it used as a "maildir indexer/searcher".
|
||||
Useful commands are described in the [[http://www.djcbsoftware.nl/code/mu/cheatsheet.html][Cheat-sheet]].
|
||||
|
||||
|
||||
Reference in New Issue
Block a user