16 コミット

作成者 SHA1 メッセージ 日付
  Luke Smith 29b7b59ffd
Merge pull request #804 from epsilon-0/master 2年前
  Luke Smith c0758e1751
Merge pull request #805 from 187Qrly/patch-1 2年前
  Luke Smith 5aea3a0b54
Merge pull request #807 from CMurtagh-LGTM/patch-1 2年前
  Luke Smith 98f23a0ab9
Merge pull request #786 from Jberczel/reorder-cleanup 2年前
  Luke Smith cd2bc6fc2d
Merge pull request #787 from cshjsc/patch-1 2年前
  Luke Smith c983035d09
Merge pull request #791 from mmcculle/edit-mailsync-grep 2年前
  Luke Smith 037f3d2607
Merge pull request #806 from ghost/patch-1 2年前
  Aisha Tammy a82a86c310 change path of command to use prefix 2年前
  Cameron Murtagh b149d1c9ce
Add option to use user mailcap 2年前
  Thamognya 0d98a9ef5b
Update domains.csv 2年前
  187Qrly aba07e26f8
Make gentoo users aware that they need the "sasl" for the neomutt package. 2年前
  Aisha Tammy 37c91057f7 add GPG WKS publishing functionality 2年前
  Matthew McCulley 8e81135f8b
Checks $HOME/.confg/zsh/.zshenv for Env variables 2年前
  Gunnar K. Halvorsen bed0470f0d
Added domain to list 2年前
  cshjsc 2cb6dfb574
Fix html links splitting 2年前
  Jberczel 256c091196 Cleanup reorder account numbers action 2年前
6個のファイルの変更17行の追加9行の削除
分割表示
  1. +1
    -1
      README.md
  2. +2
    -1
      bin/mailsync
  3. +11
    -5
      bin/mw
  4. +1
    -0
      share/domains.csv
  5. +1
    -1
      share/mailcap
  6. +1
    -1
      share/mutt-wizard.muttrc

+ 1
- 1
README.md ファイルの表示

@@ -28,7 +28,7 @@ Specifically, this wizard:

#### Dependencies

- `neomutt` - the email client.
- `neomutt` - the email client. (If you are using Gentoo GNU/Linux, you will need the `sasl` use flag to be enabled)
- `curl` - tests connections (required at install).
- `isync` - downloads and syncs the mail (required if storing IMAP mail locally).
- `msmtp` - sends the email.


+ 2
- 1
bin/mailsync ファイルの表示

@@ -23,7 +23,8 @@ pgrep mbsync >/dev/null && { echo "mbsync is already running."; exit ;}
eval "$(grep -h -- \
"^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\)=" \
"$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \
"$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" "$HOME/.pam_environment" 2>/dev/null)"
"$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \
"$HOME/.pam_environment" 2>/dev/null)"

export GPG_TTY="$(tty)"



+ 11
- 5
bin/mw ファイルの表示

@@ -108,6 +108,8 @@ set trash = "+Trash"
set record = "+Sent"
$extra
$synccmd
macro index \eg \"<enter-command>unset wait_key<enter><shell-escape>gpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; $prefix/libexec/gpg-wks-client --create \\\$eFGPT \\\$eID | msmtp --read-envelope-from --read-recipients -a $fulladdr<enter>\" \"publish GPG key to WKS provider\"
macro index \eh \"<pipe-message>$prefix/libexec/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a $fulladdr<enter>\" \"confirm GPG publication\"
" > "$accdir/$fulladdr.muttrc"

[ ! -f "$muttrc" ] && echo "# vim: filetype=neomuttrc" > "$muttrc"
@@ -308,23 +310,27 @@ To change an account's password, run \`pass edit your@email.com\`.
EOF
}

reorder(){
reorder() {
tempfile="$(mktemp -u)"
trap 'rm -f $tempfile' HUP INT QUIT TERM PWR EXIT
echo "# Carefully reorder these accounts with the desired numbers." > "$tempfile"
echo "# Carefully reorder these accounts with the desired numbers in the first column.
# DO NOT reorder rows or rename the accounts in the second column." > "$tempfile"
sed -n "
/ i[0-9] / s?\(.* i\|'<sync.*/\|\.muttrc.*\)??g p
" "$muttrc" > "$tempfile"
" "$muttrc" >> "$tempfile"
${EDITOR:-vim} "$tempfile" || exit 1
sed -i -e 's/#.*//' -e '/^$/d' "$tempfile"
default="$(sort -n "$tempfile" | head -n 1)"
default="${default#* }"
sed -ibu "/.* i[0-9] .*.muttrc/d" "$muttrc" 2>/dev/null; rm -f "$muttrc"bu
sed -ibu "
/.* i[0-9] .*.muttrc/d
/^source.*accounts.*.muttrc/d
" "$muttrc" 2>/dev/null; rm -f "$muttrc"bu
awk -v a="$accdir" -v d="$default" ' BEGIN { print "source "a"/"d".muttrc" }
{
print "macro index,pager i"$1" '\''<sync-mailbox><enter-command>source "a"/"$2".muttrc<enter><change-folder>!<enter>;<check-stats>'\'' \"switch to "$2"\""
}
' "$tempfile" >> "$muttrc"

}

while getopts "rfpPXlhodTYD:y:i:I:s:S:u:a:n:x:m:t:" o; do case "${o}" in


+ 1
- 0
share/domains.csv ファイルの表示

@@ -274,6 +274,7 @@ tecnico.ulisboa.pt,mail.tecnico.ulisboa.pt,993,mail.tecnico.ulisboa.pt,465
teknik.io,mail.teknik.io,993,mail.teknik.io,587
telenet.be,imap.telenet.be,993,smtp.telenet.be,587
tfwno.gf,mail.cock.li,993,mail.cock.li,587
thamognya.com,mail.thamognya.com,993,mail.thamognya.com,587
thunix.net,thunix.net,143,thunix.net,25
tlen.pl,poczta.o2.pl,993,poczta.o2.pl,465
tlu.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587


+ 1
- 1
share/mailcap ファイルの表示

@@ -1,6 +1,6 @@
text/plain; $EDITOR %s ;
text/html; openfile %s ; nametemplate=%s.html
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump -width=1024 %s; nametemplate=%s.html; copiousoutput;
image/*; openfile %s ;
video/*; setsid mpv --quiet %s &; copiousoutput
audio/*; mpv %s ;


+ 1
- 1
share/mutt-wizard.muttrc ファイルの表示

@@ -3,7 +3,7 @@
# mutt-wizard will have this file sourced from your muttrc.
# In the interest of seamless updating, do not edit this file.
# If you want to override any settings, set those in your muttrc.
set mailcap_path = /usr/local/share/mutt-wizard/mailcap:$mailcap_path
set mailcap_path = $HOME/.config/mutt/mailcap:/usr/local/share/mutt-wizard/mailcap:$mailcap_path
set mime_type_query_command = "file --mime-type -b %s"
set date_format="%y/%m/%d %I:%M%p"
set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"


読み込み中…
キャンセル
保存