Contexts with multiple addresses/alternative aliases

36 views
Skip to first unread message

jmde...@gmail.com

unread,
Jan 19, 2018, 8:53:23 PM1/19/18
to mu-discuss
Hello,

How would I go about configuring mu4e to reply with the correct email address in this scenario? I'm using Fastmail for my domain and have something like this setup:
If f...@jm.example.com receives an email, I can read it in mu4e because my current context just matches the Maildir, but when I go to reply, I am replying as j...@example.com and not f...@jm.example.com.

What is a good way to handle this shared-inbox, separate from-address issue? Do I need to create separate contexts for each alternate identity or is there an easier way with less duplication?

Thanks for any pointers!
Jon-Michael

Júlio Maranhão

unread,
Jan 21, 2018, 10:38:24 PM1/21/18
to mu-di...@googlegroups.com
See my example at work:

a) Two accounts: one only pop (pop.com), other imap (imap.com);
b) The imap one is new and have interfaces to two networks: internet (imap.com) and internal (imap.internal). But actually there's only one imap mail box.

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"
     :vars '( ( user-mail-address      . "us...@pop.com" )
      ( 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"
     :vars '( ( user-mail-address       . "us...@imap.com" )
      ( user-full-name          . "user name" )
      ( message-sendmail-extra-arguments . ("--account=imapcom"))
      ( smtpmail-smtp-server    . "imap.com" )
      ( 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") ) ) ) ) )







--
You received this message because you are subscribed to the Google Groups "mu-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Horn

unread,
Jan 23, 2018, 10:27:17 AM1/23/18
to mu-discuss


On Sunday, January 21, 2018 at 10:38:24 PM UTC-5, Júlio Maranhão wrote:
See my example at work:



In addition or as an alternative to changing the From field, you might want to change "Rply-to", and your signature..

Mu4e has two relevant parameters that you can change as part of a context.
 
 mu4e-compose-reply-to-address
 mu4e-compose-signature



Reply all
Reply to author
Forward
0 new messages