I'm trying to set up my first instance of mutt, and am having some
problems with the realname setting. I'm using mutt 1.4.1i on a RHEL4
system. Here's part of my ~/.muttrc file (domain name obscured):
[EMAIL PROTECTED] ~]$ cat .muttrc 
set mbox_type=Maildir
<snip>
mailboxes =ghana
<snip>
# Set the From: header to '[EMAIL PROTECTED]' in the 'ghana'
mailbox
folder-hook ghana set from = "[EMAIL PROTECTED]"
folder-hook ghana set realname = 'Ghana Malaria Project'
#folder-hook ghana set use_from=yes
#folder-hook ghana set envelope_from=yes

# Set the From: header back in the general mailbox area.
<snip>

When I use this configuration file, I'm able to select the 'ghana'
folder. When I do, the message 'Malaria: unknown variable' appears
briefly at the bottom of the screen. When I compose a reply, the From:
header appears as:
From: Ghana <[EMAIL PROTECTED]>

There doesn't seem to be any strange characters in the realname line:
[EMAIL PROTECTED] ~]$ grep Malaria .muttrc | cat -vet 
folder-hook ghana set realname = 'Ghana Malaria Project'$
[EMAIL PROTECTED] ~]$ grep Malaria .muttrc | hexdump -C
00000000  66 6f 6c 64 65 72 2d 68  6f 6f 6b 20 67 68 61 6e  |folder-hook
ghan|
00000010  61 20 73 65 74 20 72 65  61 6c 6e 61 6d 65 20 3d  |a set
realname =|
00000020  20 27 47 68 61 6e 61 20  4d 61 6c 61 72 69 61 20  | 'Ghana
Malaria |
00000030  50 72 6f 6a 65 63 74 27  0a                       |Project'.|
00000039
[EMAIL PROTECTED] ~]$

I've also tried:
folder-hook Ghana set from = 'Ghana Malaria Project
<[EMAIL PROTECTED]>'
but this didn't seem to work, either.

I'm stumped. Can anyone suggest why this is happening and how to fix it?

Thanks for your advice and suggestions.

-Kevin
Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland  21202
410-659-6139 

Reply via email to