You are not logged in.

#1 2010-09-29 14:31:11

rennis250
Member
Registered: 2009-07-26
Posts: 18

[SOLVED] Mutt does not obey folder-hook definitions

Hello,

I have mutt running with a set of folder-hooks that change my "From:" address, depending on the mailbox I am working in.  They appear to work fine, at first glance.  If I change from the default mailbox (gmx/) to another (gmail/), the "From:" address changes from the default GMX account to my GMail account.  However, If I return to my default mailbox (gmx/), the "From:" address remains as my GMail  account and does not return to my GMX account, which the folder-hooks specify.  This error does not occur with the copy of mutt running on my Mac OS X parition, which leads me to believe it is some sort of *nix or arch error.

Here is a copy of my ~/.mutt/folder-hooks file (the stars are not part of the actual file, but are meant to hide my addresses/identity):

folder-hook =gmx "send-hook . 'my_hdr From: Robert ** <r**@gmx.com>'"
folder-hook =gmail "send-hook . 'my_hdr From: Robert ** <r**50@gmail.com>'"
folder-hook =EMDS "send-hook . 'my_hdr From: Robert ** <r**50@gmail.com>'"
folder-hook =sunyopt "send-hook . 'my_hdr From: Robert ** <r**@gmx.com>'" 

Thanks for any help,
Rob

Last edited by rennis250 (2010-10-27 22:35:36)

Offline

#2 2010-09-29 14:49:04

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] Mutt does not obey folder-hook definitions

i'm not familiar with the sendhook . 'my_hdr... syntax.  perhaps try the following? I use something similar (sourcing a separate file on folder-hooks) and it's working fine.

# set the Name part for all
set realname "Robert **"

# then set the from address with the hooks
folder-hook =gmx set from "<r**@gmx.com>"
folder-hook =gmail set from "<r**50@gmail.com>"
folder-hook =EMDS set from "<r**50@gmail.com>"
folder-hook =sunyopt set from "<r**@gmx.com>"

Offline

#3 2010-09-29 15:24:31

rennis250
Member
Registered: 2009-07-26
Posts: 18

Re: [SOLVED] Mutt does not obey folder-hook definitions

Hey brisbin,

I had to add an "=" sign in between realname/from and the assigned values, but that did the trick!  Thanks a bunch. I thought you'd like to know that a part of my setup is based on your dual GMX/Gmail approach.  Your articles on mutt and backups were very useful to me in the past. smile

Thanks,
Rob

Offline

#4 2010-10-02 22:05:46

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] Mutt does not obey folder-hook definitions

sorry about that, typos on my part.  please, if you could, edit the first post and put a [SOLVED] in the thread title.

Offline

Board footer

Powered by FluxBB