------------------------------------------------------------------------------- MH notes ------------------------------------------------------------------------------- File components initial header for NEW mail replcomps components for replying to mail forwcomps components for forwarding mail scan.form format for a scan command (which is used by ExMH as well) commands folder -pack +inbox pack down a folder folders -pack -recurse pack down ALL folderS ------------------------------------------------------------------------------- Upload MH folder to GMail (with dates) Normal IMap transfers does not set the right 'arrival date' that gmail uses for its mail. # get software dnf install imap-upload.noarch Ensure any badly uploaded is removed and GMail Trash emptied! create top level folder "Upload" # Create a mbox packf -mbox +Work/Machines/Gremlin/ -file upload.mbox imap_upload.py --gmail --user anthony.thyssen@gmail.com \ --password *** --box "Upload" upload.mbox No move mail in gmail where you want it. ------------------------------------------------------------------------------- Extract mime parts into files mhstore +inbox 49 -auto The -auto flag directs mhstore to use the 'suggested filenames' for parts ------------------------------------------------------------------------------- Showing text/html content Using the show command to display text/html content # ~/.mh_profile... mhshow-charset-iso-8859-1: '%s' mhn-show-text/html: links -dump '%F' mhshow-show-text/html: links -dump '%F' # environment export MM_CHARSET=ISO-8859-1 And now 'show' et al automagically render text/html as scrolling plain text. S: MM_CHARSET=ISO-8859-1 convinces mh that it can display ISO-8859-1 charset msgs in the current terminal, but MM_CHARSET=UTF-8 did not work. I'm assuming UTF-8 does not include ISO-8859-1. Steve ------------------------------------------------------------------------------- Replying to mail with mime and quote printable #!/bin/bash # # replx -- reply wrapper to fix mail being replied to # # It assumes you've got show setup to munge mime (eg plain/html) # content into plain text. See my previous post re show'ing # text/html content.) # # Steve on ExMH-users@redhat.com mail list # repl -filter /dev/null -nodraftfolder -nowhatnowproc $* (cat ~/Mail/draft; echo -e "\n > ---- Original Message ----" ; \ mhshow cur -type text -nopause -nomoreproc \ | egrep -v '^Return-Path|^Delivery-Date|^part[ ]+text/plain' \ | sed 's/^/ > /' \ ) > ~/Mail/drafts/9999 comp -use -draftfolder drafts -draftmessage 9999 rm -f ~/Mail/draft rm -f ~/Mail/drafts/9999 -------------------------------------------------------------------------------