Re: Wrapping non-wrapped e-mail when replying [SEC=UNCLASSIFIED]
0n Thu, Apr 28, 2011 at 02:51:32PM -0500, David Champion wrote: * On 27 Apr 2011, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. I use with gqap functionality within vim (.vimrc) (F1 being the key one you want): * F1 to re-format the current paragraph correctly * F2 to format a line which is too long, and go to the next line * F3 to merge the previous line with the current one, with a correct nmapF1gqap nmapF2gqqj nmapF3kgqj map!F1ESCgqapi map!F2ESCgqqji map!F3ESCkgqji Works wonderfully! -Alex IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
Re: Wrapping non-wrapped e-mail when replying [SEC=UNCLASSIFIED]
0n Thu, Apr 28, 2011 at 02:51:32PM -0500, David Champion wrote: * On 27 Apr 2011, Trey Sizemore wrote: I'd like to find out how to wrap long lines in e-mails that I'm replying to. My mutt is setup to automatically wrap lines when I compose, but I'd like to be able to also lap long lines in e-mails when I reply. Besides vim, you can use a program called 'par'. It is brilliant. I set $display_filter to use it so that I get the neat line wrap for reading as well. I also have several vi macros that use it for reflowing text in different styles. (Even if I did use vim, par is more flexible.) David, any chance you can post any examples of your config for par ? -Alex IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
mairix search
hi, I have a question regarding macros in mutt. Currently I use these two macros for searching: macro generic ,f shell-escapemairix search via mairix macro generic ,,f change-folderkill-line=searchenter load the search results mailbox Can I optimize it in the way that after finishing the search with ,f - the result mailbox is automatically loaded? Is searching / indexing with mairix state of the art or is there a better solution available? I am quite happy with that, just wanted to ask ;-). thanks and best regards Sebastian Tramp -- Sebastian Tramp WebID: http://sebastian.tramp.name
Re: mairix search
* Sebastian Tramp on Friday, April 29, 2011 at 13:56:51 +0200 I have a question regarding macros in mutt. Currently I use these two macros for searching: macro generic ,f shell-escapemairix search via mairix macro generic ,,f change-folderkill-line=searchenter load the search results mailbox Can I optimize it in the way that after finishing the search with ,f - the result mailbox is automatically loaded? Is searching / indexing with mairix state of the art or is there a better solution available? I am quite happy with that, just wanted to ask ;-). I use the following shell script for interactive mairix search from within mutt; it also makes a rudimentary attempt to search using a fallback charset for non-ascii strings. #!/bin/sh threads= augment= charset=`printf '%s' $LANG | cut -d . -f 2` fallback=windows-1252 yorn() { local ans printf '%s %s ' $1 (yes/[no]) read -e ans case $ans in y*|Y*) return 0;; *) return 1;; esac } printf '%s\n' Enter mairix query: read -e query test -z $query exit 0 yorn Retrieve thread(s)? threads=--threads yorn Append message(s) to mfolder? augment=--augment query=`echo $query | iconv -f $charset -t UTF-8` mairix $threads $augment $query queryx=`echo $query | iconv -f $charset -t $fallback` if [ $queryx != $query ]; then echo trying $fallback mairix $threads --augment $queryx fi muttrc: set my_mairixfolder=`awk -F '=' '/^mfolder/ { print $2 }' ~/.mairixrc` macro index,pager ,m \ enter-command set my_wait_key=\$wait_key wait_key=noenter\ shell-escape mairixquery.shenter\ enter-command set wait_key=\$my_wait_key my_wait_keyenter\ change-folder+$my_mairixfolder mairix query macro browser ,m \ enter-command set my_wait_key=\$wait_key wait_key=noenter\ shell-escape mairixquery.shenter\ enter-command set wait_key=\$my_wait_key my_wait_keyenter\ exitchange-folder+$my_mairixfolder mairix query For reverse detection of the original mails I recommend muttjump: https://github.com/weisslj/muttjump c -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions