You are not logged in.

#1 2013-10-17 17:18:54

hariskar
Member
From: Greece/Kavala
Registered: 2012-10-16
Posts: 185

Multiple accounts in mutt problem

I can see from both accounts the inboxes, send and receive mail, when I click c I can see the rest of the folders from gmail.com account. Then after I click F3, I change account but with c I see the folders from previous account.
Any idea what is wrong?

Thank you

muttrc

macro index <f2> '<change-folder>imaps://imap.gmail.com<enter>'
macro index <f3> '<change-folder>imaps://server10.cretaforce.gr<enter>'

# switch to default account on startup
#source ~/.mutt/account.gmail

# Store message headers locally to speed things up.
# If hcache is a folder, Mutt will create sub cache folders for each account which may speeds things even more up.
set header_cache = ~/.cache/mutt

# Store messages locally to speed things up, like searching message bodies.
# Can be the same folder as header_cache.
# This will cost important disk usage according to your e-mail amount.
set message_cachedir = "~/.cache/mutt"

# Allow Mutt to open new imap connection automatically.
unset imap_passive

# Keep IMAP connection alive by polling intermittently (time in seconds).
set imap_keepalive = 300

# How often to check for new mail (time in seconds).
set mail_check = 120

set signature='~/.mutt/signature'
set mailcap_path        = ~/.mutt/mailcap

## ACCOUNT1
#source "~/.mutt/account.mikroviologos"
# Here we use the $folder variable that has just been set in the sourced file.
# We must set it right now otherwise the 'folder' variable will change in the next sourced file.
folder-hook server10.cretaforce.gr 'source ~/.mutt/account.mikrobiologos'

## ACCOUNT2
source ~/.mutt/account.gmail
folder-hook imap.gmail.com 'source ~/.mutt/account.gmail'

auto_view text/html
#set mbox_type=Maildir

account.mikrobiologos

set folder=imaps://server10.cretaforce.gr/
set hostname="mikrobiologos.gr"
set spoolfile= +INBOX
set postponed = +Drafts
set record = +Sent

set from="info@mikrobiologos.gr"
set realname="*** ***"
set editor=vim

set ssl_force_tls = yes

account-hook server10.cretaforce.gr "set imap_user=info@mikrobiologos.gr imap_pass=********"
account-hook server10.cretaforce.gr "set smtp_url=smtps://info@mikrobiologos.gr:**********@server10.cretaforce.gr:465"

account.gmail

set folder      = imaps://imap.gmail.com/
set hostname="gmail.com"
set spoolfile   = +INBOX
set postponed = +Drafts
set record = +Sent

set editor=vim

unset ssl_starttls

account-hook gmail.com "set imap_user=haris@gmail.com imap_pass=*******"
account-hook gmail.com "set smtp_url=smtps://haris@gmail.com:*******@smtp.gmail.com"

Last edited by hariskar (2013-10-18 02:22:18)

Offline

#2 2016-04-07 18:07:49

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

Re: Multiple accounts in mutt problem

I guess you need to configure folder hook. Cause during changing mutt uses settings from previous profile

Offline

#3 2016-04-07 18:09:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Multiple accounts in mutt problem

Stop necrobumping: https://wiki.archlinux.org/index.php/Fo … bumping.22

You won't be asked politely again.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB