Re: Account-hooks do not work as expected

2013-11-17 Thread Chris Bannister
On Sat, Nov 16, 2013 at 10:18:10PM +0100, Niels Kobschaetzki wrote:
 Hi,
 
 I am relatively new to mutt but was able to set up some account-hooks.
 I have three accounts A, B and C and when I start mutt everything
 works as expected.  I start in account A and when I want to change
 folders or want to copy mails I see the folders of account A. When I
 send mail it is send from account A.  Now I switch to account B. And
 everything works for account B, the same for account C. And then I
 switch back to account A and the following problems occur: When I want
 to change folders, I see the folders of the last account I was in (in
 this example account C), when I write a mail the From and
 SMTP-settings are those from the last account I was in.
 
 When I switch to account B or C everything works as expected. The
 problems happen only with account A (which is also my main-account).
 After a restart of mutt everything works fine, until I changed from
 account A to another one. Since the config for B and C are copied
 completely from A and then changed the account-specific-settings, I
 have no idea where to look what the problem could be.

Unless someone has a crystal ball, neither have we.
IOW, we need to see the code!

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


Account-hooks do not work as expected

2013-11-16 Thread Niels Kobschaetzki

Hi,

I am relatively new to mutt but was able to set up some account-hooks. I have 
three accounts A, B and C and when I start mutt everything works as expected.
I start in account A and when I want to change folders or want to copy mails I 
see the folders of account A. When I send mail it is send from account A.
Now I switch to account B. And everything works for account B, the same for 
account C. And then I switch back to account A and the following problems occur:
When I want to change folders, I see the folders of the last account I was in (in this example 
account C), when I write a mail the From and SMTP-settings are those from 
the last account I was in.

When I switch to account B or C everything works as expected. The problems happen only with account A (which is also my main-account). After a restart of mutt everything works fine, until I changed from account A to another one. 
Since the config for B and C are copied completely from A and then changed the account-specific-settings, I have no idea where to look what the problem could be.


In addition I'd like to ask if there is a way to change the from when I am in 
the screen right after writing a mail?

Thanks in advance,

Niels


Re: Account-hooks do not work as expected

2013-11-16 Thread Chris Down
On 2013-11-16 22:18:10 +0100, Niels Kobschaetzki wrote:
 I am relatively new to mutt but was able to set up some account-hooks. I have 
 three accounts A, B and C and when I start mutt everything works as expected.
 I start in account A and when I want to change folders or want to copy mails 
 I see the folders of account A. When I send mail it is send from account A.
 Now I switch to account B. And everything works for account B, the same for 
 account C. And then I switch back to account A and the following problems 
 occur:
 When I want to change folders, I see the folders of the last account I was in 
 (in this example account C), when I write a mail the From and 
 SMTP-settings are those from the last account I was in.

I also have this problem, I never found a solution. The good thing is
that I mostly only use one account, so it's not a major issue.

 In addition I'd like to ask if there is a way to change the from when
 I am in the screen right after writing a mail?

edit_headers is very useful for this (although you would do the changes
in your editor that way).


pgpBgD0p4My0g.pgp
Description: PGP signature