You are not logged in.

#1 2016-04-19 23:41:34

rusch
Member
Registered: 2015-06-28
Posts: 7

Mutt doesnt move read email automatically with account and folder hook

Hi,
if you have

set move=yes

in your muttrc conf, then mutt will move all read emails to a specific folder you have set with

set mbox='+Archive'

Everything works fine and read emails will be moved to folder Archives in the imap folder, but the problems starts if you start to use folder and account hooks. after switching your account the moving doesnt work anymore. I need help to find a solution. My conf looks like this:

muttrc

mailboxes imaps://domain1.com
mailboxes imaps://domain2.com
account-hook domain1.com '\
    set imap_user=$my_a_user; \
    set imap_pass=$my_a_pass'
account-hook domain2.com '\
    set imap_user=$my_b_user; \
    set imap_pass=$my_b_pass'
folder-hook \
    imaps://domain1.com \
    source ~/.mutt/account1
folder-hook \
    imaps://domain2.com \
    source ~/.mutt/account2
source ~/.mutt/account1
set move=yes

file account1

set from=bla@domain1
set folder=imaps://domain1.com
set spoolfile='+Inbox'
set postponed='+Drafts'
set record='+Sent'
set mbox='+Archives.2016'
set move=yes

file account2

set from=bla@domain1
set folder=imaps://domain1.com
set spoolfile='+Inbox'
set postponed='+Drafts'
set record='+Sent'
set mbox='+Archives.2016'
set move=yes

Does someone know the problem and can provide a workaround or even a solution?

Last edited by rusch (2016-04-19 23:41:57)

Offline

Board footer

Powered by FluxBB