Browse Source

Merge branch 'XDG': dropping XDG_DATA_HOME

pull/276/head
Roland Puntaier 5 years ago
parent
commit
2a1749a7fc
4 changed files with 6 additions and 8 deletions
  1. +3
    -3
      README.md
  2. +1
    -1
      bin/mailsync
  3. +1
    -1
      bin/mw
  4. +1
    -3
      mw.1

+ 3
- 3
README.md View File

@@ -59,7 +59,7 @@ If you get errors in `neomutt`, install the most recent version manually or manu
- `w3m` - view HTML email and images in neomutt.
- `notmuch` - index and search mail.
Install it and run `notmuch setup`.
Tell it where your mail is (`$MAILDIR` or `~/.local/share/mail/`).
Tell it where your mail is (`$MAILDIR` or `~/Mail`).
Although, `mw` will do this automatically, if you haven't set notmuch up before.
You can run it in mutt with `ctrl-f`.
Run `notmuch new` to process new mail.
@@ -96,7 +96,7 @@ To give you an example of the interface, here's an idea:

## New stuff and improvements since the original release

- honors `$MAILDIR`, `$XDG_CONFIG_HOME`, `$XDG_DATA_HOME`, `$XDG_CACHE_HOME`, if defined.
- honors `$MAILDIR`, `$XDG_CONFIG_HOME`, `$XDG_CACHE_HOME`, if defined.
- `gm/gM` to sync mail inside `mutt`, as `o/O` has a `mutt` assignment already.
- Make channel name equal to email address to avoid choosing a new name for the same thing.
- `isync`/`mbsync` has replaced `offlineimap` as the backend.
@@ -108,7 +108,7 @@ To give you an example of the interface, here's an idea:
Image/video/pdf attachments without relying on the neomutt instance.
- abook integration by default.
- The messy template files and other directories have been moved or removed, leaving a clean config folder.
- msmtp configs moved to `~/.config/` and mail default location moved to `~/.local/share/mail/`, reducing mess in `~`.
- msmtp configs moved to `~/.config/` and mail default location moved to `~/Mail`, reducing mess in `~`.
- `pass` is used as a password manager instead of separately saving passwords.
- Script is POSIX sh compliant.
- Error handling for the many people who don't read or follow directions.


+ 1
- 1
bin/mailsync View File

@@ -13,7 +13,7 @@ if [[ -z $PASSWORD_STORE_DIR ]]; then
[ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
fi
configdir=${XDG_CONFIG_HOME:-$HOME/.config}
maildir="${MAILDIR:-${XDG_DATA_HOME:-$HOME/.local/share}/mail}"
maildir="${MAILDIR:-$HOME/Mail}"
lastrun=${XDG_CACHE_HOME:-$HOME/.cache}/.mailsynclastrun
if [[ -f $configdir/isync/mbsyncrc ]]; then
mbsyncrc="$configdir/isync/mbsyncrc"


+ 1
- 1
bin/mw View File

@@ -29,7 +29,7 @@ mwmuttdir="$mwconfigdir/mutt"
# Directory for account settings
mwaccrcdir="$mwmuttdir/accounts"
# Location of mail storage
mwmaildir="${MAILDIR:-${XDG_DATA_HOME:-$HOME/.local/share}/mail}"
mwmaildir="${MAILDIR:-$HOME/mail}"
# Regex to confirm valid email address
mwemailre=".\+@.\+\\..\+"
mwshare="$prefix/share/mutt-wizard"


+ 1
- 3
mw.1 View File

@@ -40,9 +40,7 @@ If the user chooses to keep offline email with
it will be kept in
.I $MAILDIR
which defaults to
.I $XDG_DATA_HOME/share/mail/
which defaults to
.I ~/.local/share/mail/.
.I $HOME/mail/.
.B notmuch
can be used to index and search this mail by giving this directory when first running
.B notmuch setup.


Loading…
Cancel
Save