update folder hook regexp.

This commit is contained in:
Storm Dragon 2018-11-04 15:26:06 -05:00
parent 5941be5d1f
commit 8a9c4474a1

View File

@ -4,7 +4,6 @@
# Written by Storm Dragon: https://social.stormdragon.tk/storm
# Written by Michael Taboada: https://2mb.social/mwtab
# Contributions by Kyle: https://kyle.tk
# This is a 2MB Solutions project: https://2mb.solutions
# Released under the terms of the WTFPL: http://wtfpl.net
# Setup for gettext localization
@ -315,7 +314,7 @@ add_email_address()
shred -fuzn 10 "$passwordFile"
echo "source \"gpg -d ${muttHome/#$HOME/\~}/${emailAddress}.gpg|\"" >> "$muttHome/$emailAddress"
add_keybinding
echo "folder-hook *$emailAddress/ 'source ${muttHome/#$HOME/\~}/$emailAddress'" >> "$muttHome/$emailAddress"
echo "folder-hook .*$emailAddress/ 'source ${muttHome/#$HOME/\~}/$emailAddress'" >> "$muttHome/$emailAddress"
msgbox "$(gettext "Email address added, press enter to continue.")"
}