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

Multiple IMAP accounts and wl-fcc



Hi,

I have multiple IMAP accounts set up with Wanderlust and is working
find so far.

I maintain "Sent" folder in the respective mail servers, i.e., not on
the local machine, so I want the sent messages to be saved based on
the IMAP account currently I am dealing with.

I am trying to achieve this by setting wl-fcc in wl-draft-config-alist
but no success so far. wl-fcc is set to proper value(C-h v) in the
draft buffer but there are no messages in the sent folder (and also
FCC doesn't appear in the header field). But setting wl-fcc globally
works fine but will not be suitable for me.

Any suggestion?

My wl-draft-config-alist
(for now only "company" template has wl-fcc defined)

,----
|       wl-draft-config-alist
|       '((reply
|          "To: .*\\(abc@cc.hut.fi\\)"
|          (template . "tkk"))
|         (reply
|          "To: .*\\(.*@cs.hut.fi\\)"
|          (template . "tkk"))
|         (reply
|          "To: .*\\(abc@xyzcompany.com\\)"
|          (template . "xyzcompany"))
|         (reply
|          "To: .*\\(xyz@gmail.com\\)"
|          (template . "gmail"))
|         ((string-match ".*in-exch01\\.x\\.y.*" wl-draft-parent-folder)
|          (template . "company"))
|         ((string-match "" wl-draft-parent-folder)
|          (template . "gmail"))
|         )
| 
|       wl-template-alist
|       '(("gmail"                            ; Gmail
|          (wl-from . "xyz <xyz@gmail.com>")
|          ("From" . wl-from)
|          (wl-smtp-connection-type . 'starttls)
|          (wl-smtp-posting-port . 587)
|          (wl-smtp-authenticate-type . "plain")
|          (wl-smtp-posting-user . "xyz")
|          (wl-smtp-posting-server . "smtp.gmail.com")
|          (wl-local-domain . "gmail.com"))
|         ("company"
|          (wl-from . "xyz <xyz@xyzcompany.com>")
|          ("From" . wl-from)
|          (wl-fcc . "%Sent Items:xyz/clear@in-exch01.x.y:143")
|          (wl-fcc-force-as-read . t)
|          (wl-smtp-connection-type . nil)
|          (wl-smtp-posting-port . nil)
|          (wl-smtp-authenticate-type . "login")
|          (wl-smtp-posting-user . "xyz")
|          (wl-smtp-posting-server . "in-exch01.x.z")
|          (wl-local-domain . "xyz.com"))
|         ("tkk"
|          (wl-from . "xyz <xyz@cc.hut.fi>")
|          ("From" . wl-from)
|          (wl-smtp-connection-type . nil)
|          (wl-smtp-posting-port . 25)
|          (wl-smtp-authenticate-type . nil)
|          (wl-smtp-posting-user . "xyz")
|          (wl-smtp-posting-server . "smtp.hut.fi")
|          (wl-local-domain . "hut.fi")))
`----

Thanks,
Suresh