mirror of
https://github.com/hyzendust/mutt-add-account.git
synced 2026-02-15 04:01:12 +01:00
Add: html view
This commit is contained in:
@@ -21,6 +21,10 @@ set mbox_type=Maildir
|
|||||||
set use_envelope_from = yes
|
set use_envelope_from = yes
|
||||||
set sort=reverse-date
|
set sort=reverse-date
|
||||||
set ssl_verify_host = no
|
set ssl_verify_host = no
|
||||||
|
|
||||||
|
auto_view text/html # view HTML automatically
|
||||||
|
alternative_order text/plain text/enriched text/html # save HTML for last
|
||||||
|
|
||||||
MUTTRC_EOF
|
MUTTRC_EOF
|
||||||
echo "Created ~/.muttrc"
|
echo "Created ~/.muttrc"
|
||||||
else
|
else
|
||||||
@@ -36,9 +40,17 @@ else
|
|||||||
"set use_envelope_from = yes"
|
"set use_envelope_from = yes"
|
||||||
"set sort=reverse-date"
|
"set sort=reverse-date"
|
||||||
"set ssl_verify_host = no"
|
"set ssl_verify_host = no"
|
||||||
|
""
|
||||||
|
"auto_view text/html # view HTML automatically"
|
||||||
|
"alternative_order text/plain text/enriched text/html # save HTML for last"
|
||||||
|
""
|
||||||
)
|
)
|
||||||
|
|
||||||
for option in "${required_options[@]}"; do
|
for option in "${required_options[@]}"; do
|
||||||
|
# Skip empty lines
|
||||||
|
if [ -z "$option" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
option_name=$(echo "$option" | awk '{print $1, $2}')
|
option_name=$(echo "$option" | awk '{print $1, $2}')
|
||||||
if grep -q "^${option_name}" "$mutt_config"; then
|
if grep -q "^${option_name}" "$mutt_config"; then
|
||||||
# Option exists, update it
|
# Option exists, update it
|
||||||
|
|||||||
Reference in New Issue
Block a user