aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--IDEAS.markdown1
-rw-r--r--Makefile11
-rw-r--r--README.markdown1
-rw-r--r--mail/mailrc.m43
5 files changed, 15 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 91f646d3..b0ad92d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,6 +35,7 @@ games/strik
games/zs
git/gitconfig
gnupg/gpg.conf
+mail/mailrc
man/man7/dotfiles.7df
mutt/muttrc
tmux/tmux.conf
diff --git a/IDEAS.markdown b/IDEAS.markdown
index 610e0914..25b79516 100644
--- a/IDEAS.markdown
+++ b/IDEAS.markdown
@@ -9,4 +9,3 @@ Ideas
* Have eds(1df) accept stdin with the "starting content" for the script
* Convert all the manual pages to mandoc maybe? <https://en.wikipedia.org/wiki/Mandoc>
* edio(1df), like vipe(1)
-* Maybe add ~/.mailrc
diff --git a/Makefile b/Makefile
index ae9eedff..1e8664af 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@
install-gtk \
install-i3 \
install-less \
+ install-mail \
install-maildir \
install-mutt \
install-ncmcpp \
@@ -111,6 +112,7 @@ clean distclean :
$(GAMES) \
git/gitconfig \
gnupg/gpg.conf \
+ mail/mailrc \
man/man7/dotfiles.7df \
mutt/muttrc \
tmux/tmux.conf \
@@ -128,6 +130,10 @@ gnupg/gpg.conf : gnupg/gpg.conf.m4
m4 -D DOTFILES_HOME="$(HOME)" \
gnupg/gpg.conf.m4 > gnupg/gpg.conf
+mail/mailrc : mail/mailrc.m4
+ m4 -D DOTFILES_SENDMAIL="$$(command -v "$(SENDMAIL)")" \
+ mail/mailrc.m4 > "$@"
+
man/man7/dotfiles.7df : README.markdown man/man7/dotfiles.7df.header
cat man/man7/dotfiles.7df.header README.markdown | \
pandoc -sS -t man -o "$@"
@@ -259,6 +265,9 @@ install-less :
install -pm 0644 -- less/lesskey "$(HOME)"/.lesskey
command -v lesskey && lesskey
+install-mail :
+ install -pm 0644 -- mail/mailrc "$(HOME)"/.mailrc
+
install-maildir :
install -m 0755 -d -- \
"$(MAILDIR)"/inbox/cur \
@@ -268,7 +277,7 @@ install-maildir :
"$(MAILDIR)"/sent/new \
"$(MAILDIR)"/sent/tmp
-install-mutt : mutt/muttrc install-maildir
+install-mutt : mutt/muttrc install-mail install-maildir
install -m 0755 -d -- \
"$(HOME)"/.mutt \
"$(HOME)"/.cache/mutt
diff --git a/README.markdown b/README.markdown
index 70234ed8..be0f6481 100644
--- a/README.markdown
+++ b/README.markdown
@@ -58,6 +58,7 @@ Configuration is included for:
elements
* [i3](https://i3wm.org/) -- Tiling window manager
* [less](https://www.gnu.org/software/less/) -- Terminal pager
+* `mail(1)` -- classic mail program
* [Mutt](http://www.mutt.org/) -- Terminal mail user agent
* [`mysql(1)`](http://linux.die.net/man/1/mysql) -- Command-line MySQL client
* [Ncmpcpp](https://rybczak.net/ncmpcpp/) -- ncurses music player client
diff --git a/mail/mailrc.m4 b/mail/mailrc.m4
new file mode 100644
index 00000000..873fe080
--- /dev/null
+++ b/mail/mailrc.m4
@@ -0,0 +1,3 @@
+set sendmail=DOTFILES_SENDMAIL
+unset askcc
+set nosave skipempty