build-mu.sh 685 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. # for mu4e
  4. if ! command -v mu; then
  5. if command -v rpm; then
  6. package-manager.sh install maildir-utils-guile isync
  7. elif command -v apt; then
  8. package-manager.sh install libgmime-3.0-dev libxapian-dev guile-2.2-dev html2text xdg-utils meson isync
  9. git clone https://github.com/djcb/mu.git /tmp/mu
  10. cd /tmp/mu
  11. ./autogen.sh && make
  12. sudo make install
  13. fi
  14. fi
  15. # idk if its not automatically done by mu4e
  16. maildir="${HOME}/.mail"
  17. mkdir -p "$maildir"
  18. read -erp "Type your email address: " -i "example1@mailo.com" mail
  19. mu init --maildir="${maildir}" --my-address="${mail}"
  20. mu index