My wish: centralize all mails in the imap account.
My solution is below.
P.S.: I use mbsync to make a local copy of imap account and getmail to move mails from pop server to imap local copy. And remember you can change contexts any time.
Cheers.
(setq mu4e-contexts
`( ,(make-mu4e-context
:name "p pop"
( user-full-name . "user name" )
( message-sendmail-extra-arguments . ("--account=popcom"))
( smtpmail-smtp-server . "
pop.com" )
( smtpmail-smtp-service . 25 )
( smtpmail-stream-type . nil )
( mu4e-sent-folder . "" )
( mu4e-drafts-folder . "customize or not" )
( mu4e-trash-folder . "customize or not" )
( mu4e-maildir-shortcuts . (("customize or not" . ?j)
("customize or not" . ?i)
("customize or not" . ?s)
("customize or not" . ?d)
("customize or not" . ?t)))
( mu4e-compose-signature . (concat
"customize or not\n"
"customize or not\n"
"customize or not\n") ) ) )
,(make-mu4e-context
:name "n imapcom"
( user-full-name . "user name" )
( message-sendmail-extra-arguments . ("--account=imapcom"))
( smtpmail-smtp-service . 587 )
( smtpmail-stream-type . starttls )
( mu4e-sent-folder . "customize or not" )
( mu4e-drafts-folder . "customize or not" )
( mu4e-trash-folder . "customize or not" )
( mu4e-maildir-shortcuts . (("customize or not" . ?j)
("customize or not" . ?i)
("customize or not" . ?s)
("customize or not" . ?d)
("customize or not" . ?t)))
( mu4e-compose-signature . (concat
"customize or not"
"customize or not"
"customize or not"
"customize or not"
"customize or not"
"customize or not"
"customize or not") ) ) )
,(make-mu4e-context
:name "i imapinternal"
:vars '( ( user-mail-address . "us...@imap.internal" )
( user-full-name . "user name" )
( message-sendmail-extra-arguments . ("--account=imapinternal"))
( smtpmail-smtp-server . "imap.internal" )
( smtpmail-smtp-service . 587 )
( smtpmail-stream-type . starttls )
( mu4e-sent-folder . "customize or not" )
( mu4e-drafts-folder . "customize or not" )
( mu4e-trash-folder . "customize or not" )
( mu4e-maildir-shortcuts . (("customize or not" . ?j)
("customize or not" . ?i)
("customize or not" . ?s)
("customize or not" . ?d)
("customize or not" . ?t)))
( mu4e-compose-signature . (concat
"customize or not"
"customize or not"
"customize or not"
"customize or not"
"customize or not"
"customize or not"
"customize or not") ) ) ) ) )