[Linux-disciples] Setting the line width in mutt

Stephen R Laniel steve at laniels.org
Wed Mar 16 14:09:59 EST 2005


On Wed, Mar 16, 2005 at 09:38:39AM -0500, Adam Rosi-Kessel wrote:
> Another way to do it would be to change the prefix of the temp file mutt
> creates with a send-hook when your message is to a cell number; then add
> to your .vimrc a Au line that disables wordwrap if the filename matches
> the prefix for cell messages.

Hackish, but a fairly elegant hack. Here's what I ended up doing:

In .vimrc, I already had this chunk:

au BufNewFile /tmp/mutt/mutt* set textwidth=60 
au BufRead /tmp/mutt/mutt* set textwidth=60

Now I just added:

au BufNewFile /tmp/mutt/to_cell/mutt* set textwidth=0
au BufRead /tmp/mutt/mutt* set textwidth=0

and in .muttrc I have
set tmpdir="/tmp/mutt"
send-hook '~C vtext\.com' 'unset signature; set abort_nosubject=no; set tmpdir="/tmp/mutt/to_cell"'

, the latter being a set of rules for Verizon cell phones.
Extending it to other services' cell phones would be easy.

Thanks for the suggestion, Adam; it worked great.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/


More information about the Linux-disciples mailing list