From deabc16dc16e5107d8ab1dd1cd1cb69b6ca06334 Mon Sep 17 00:00:00 2001 From: protist Date: Thu, 12 Jan 2023 18:58:23 +1100 Subject: [PATCH 1/3] change older name to new script name --- viewmailattachments.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/viewmailattachments.py b/viewmailattachments.py index 9f5db426..79691511 100755 --- a/viewmailattachments.py +++ b/viewmailattachments.py @@ -5,7 +5,7 @@ # Can be run from within a mailer like mutt, or independently # on a single message file. # -# Usage: viewhtmlmail.py email_message_file +# Usage: viewmailattachments.py email_message_file # # Inspired by John Eikenberry 's view_html_mail.sh # which sadly no longer works, at least with mail from current Apple Mail. @@ -17,8 +17,8 @@ # To use it from mutt, install it somewhere in your path, # then put the following lines in your .muttrc: -# macro index "~/bin/viewhtmlmail.py\n" "View HTML email in browser" -# macro pager "~/bin/viewhtmlmail,ot\n" "View HTML email in browser" +# macro index "~/bin/viewmailattachments.py\n" "View HTML email in browser" +# macro pager "~/bin/viewmailattachments.py\n" "View HTML email in browser" # TESTING: Use the email file in test/files/htmlmail.eml. From f929d85a17e23f3defaa01326b3e5c6524f0a119 Mon Sep 17 00:00:00 2001 From: protist Date: Thu, 12 Jan 2023 18:59:37 +1100 Subject: [PATCH 2/3] Remove hardcoded script location If script is installed in your path, no need to explicitly list full absolute path of the script, which might not be at ~/bin anyway. --- viewmailattachments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewmailattachments.py b/viewmailattachments.py index 79691511..f723b71d 100755 --- a/viewmailattachments.py +++ b/viewmailattachments.py @@ -17,8 +17,8 @@ # To use it from mutt, install it somewhere in your path, # then put the following lines in your .muttrc: -# macro index "~/bin/viewmailattachments.py\n" "View HTML email in browser" -# macro pager "~/bin/viewmailattachments.py\n" "View HTML email in browser" +# macro index "viewmailattachments.py\n" "View HTML email in browser" +# macro pager "viewmailattachments.py\n" "View HTML email in browser" # TESTING: Use the email file in test/files/htmlmail.eml. From c24c63527d7b894c980c3c278b586b7bef5175da Mon Sep 17 00:00:00 2001 From: protist Date: Thu, 12 Jan 2023 19:01:03 +1100 Subject: [PATCH 3/3] Put both mutt commands on a single line --- viewmailattachments.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/viewmailattachments.py b/viewmailattachments.py index f723b71d..b2b5b19f 100755 --- a/viewmailattachments.py +++ b/viewmailattachments.py @@ -17,8 +17,7 @@ # To use it from mutt, install it somewhere in your path, # then put the following lines in your .muttrc: -# macro index "viewmailattachments.py\n" "View HTML email in browser" -# macro pager "viewmailattachments.py\n" "View HTML email in browser" +# macro index,pager "viewmailattachments.py\n" "View HTML email in browser" # TESTING: Use the email file in test/files/htmlmail.eml.