[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple imap servers/addresses



At Wed, 14 Oct 2009 15:02:36 -0400, Steven Knight wrote:
> 
> 
> Hi,
> 
> I've trying to switch to Emacs + Wanderlust as my email client.  I 
> current have two imap servers I speak to (one for work and one for 
> personal usage).
> 
> I'd like to have a single wanderlust rather then two and so I've setup 
> my ~/.folders to have both work and personal servers  -- that it 
> currently working.  My current problem is that I can't figure out how to 
> set From, signature, etc for each email address.
> 
> Does anyone have any suggestions?

(setq
 wl-template-alist
 '(("default"
    (bottom . "\n-- \nwbr, Vitaly")))
 wl-draft-config-matchone t
 wl-draft-config-alist
 '(((string-match "company" wl-draft-parent-folder)
    ("From" . "Vitaly Mayatskikh <user@company.com>")
    (wl-envelope-from . "user@company.com")
    ("Fcc" . "%Sent:user@mail.company.com:993")
    (template . "default")
    (wl-smtp-posting-user . "user")
    (wl-smtp-posting-server . "smtp.company.com")
    (wl-smtp-posting-port . 25)
    (wl-smtp-connection-type . nil)
    (wl-smtp-authenticate-type . nil))
   ((string-match "gmx" wl-draft-parent-folder)
    ("From" . "Vitaly Mayatskikh <mvu@gmx.com>")
    (wl-envelope-from . "mvu@gmx.com")
    ("Fcc" . "%Sent:mvu@imap.gmx.com:993")
    (template . "default")
    (wl-smtp-posting-user . "mvu@gmx.com")
    (wl-smtp-posting-server . "smtp.gmx.com")
    (wl-smtp-posting-port . 587)
    (wl-smtp-connection-type . 'starttls)
    (wl-smtp-authenticate-type . "plain"))
   ((string-match "gmail" wl-draft-parent-folder)
    ("From" . "Vitaly Mayatskikh <v.mayatskih@gmail.com>")
    (wl-envelope-from . "v.mayatskih@gmail.com")
    ("Fcc" . "%Sent:v.mayatskih@imap.gmail.com:993")
    (template . "default")
    (wl-smtp-posting-user . "v.mayatskih")
    (wl-smtp-posting-server . "smtp.gmail.com")
    (wl-smtp-posting-port . 587)
    (wl-smtp-connection-type . 'starttls)
    (wl-smtp-authenticate-type . "plain"))))

Hierarchy in ~/.folders:

company{
...
}
gmail{
...
}
gmx{
...
}
-- 
wbr, Vitaly