1
I want to use Wanderlust IMAP client to read my email in Emacs.
However, when configured to use with Gmail account it doesn't update number of new messages correctly. Wanderlust's notification (ws-biff-*) system depends on this - I will get notified only if there're new messages.
For example, in the Folder view:
...
%INBOX:0/217/49684
...
When I get a new message I should get the following:
...
%INBOX:1/218/49684
...
However, what I see is the following:
...
%INBOX:0/218/49684
...
All other functionality of Wanderlust works perfectly and I'd really love to make it handle notifications correctly.
I've installed it using el-get. Emacs version is 24.2.1. Wanderlust version is 2.15.9 (Almost Unreal).
Relevant part of ~/.emacs.d/init.el:
;; wanderlust
(autoload 'wl "wl" "Wanderlust" t)
(autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
(autoload 'wl-user-agent-compose "wl-draft" nil t)
~/.wl:
;; IMAP
(setq elmo-imap4-default-server "imap.gmail.com")
(setq elmo-imap4-default-user "my_email_address@gmail.com")
(setq elmo-imap4-default-authenticate-type 'clear)
(setq elmo-imap4-default-port '993)
(setq elmo-imap4-default-stream-type 'ssl)
(setq elmo-imap4-set-seen-flag-explicitly t)
;; SMTP
(setq wl-smtp-connection-type 'starttls)
(setq wl-smtp-posting-port 587)
(setq wl-smtp-authenticate-type "plain")
(setq wl-smtp-posting-user "my_email_address@gmail.com")
(setq wl-smtp-posting-server "smtp.gmail.com")
(setq wl-local-domain "gmail.com")
(setq wl-icon-directory "~/.emacs.d/el-get/wanderlust/etc/icons")
(setq wl-default-folder "%inbox")
(setq wl-default-spec "%")
(setq wl-draft-folder "%[Gmail]/Drafts") ; Gmail IMAP
(setq wl-trash-folder "%[Gmail]/Trash")
(setq wl-folder-check-async t)
(setq elmo-imap4-use-modified-utf7 t)
(if (boundp 'mail-user-agent)
(setq mail-user-agent 'wl-user-agent))
(if (fboundp 'define-mail-user-agent)
(define-mail-user-agent
'wl-user-agent
'wl-user-agent-compose
'wl-draft-send
'wl-draft-kill
'mail-send-hook))
(require 'tls)
(setq elmo-network-stream-type-alist '(("!" . (ssl ssl open-tls-stream))))
;; ignore all fields
(setq wl-message-ignored-field-list '("^.*:"))
;; ..but these five
(setq wl-message-visible-field-list
'("^To:"
"^Cc:"
"^From:"
"^Subject:"
"^Date:"))
(setq wl-message-sort-field-list
'("^From:"
"^Subject:"
"^Date:"
"^To:"
"^Cc:"))
(setq wl-biff-check-folder-list '("%[Gmail]/Important" "%Workrelatedstuff"))
(setq wl-show-plug-status-on-modeline t)
(add-hook 'wl-biff-notify-hook
(lambda (message &optional header)
(message
(format "New mail: %s. %s"
header
(substring message 0 (min 30 (length message)))))))
~/.folders is just :
%/
How should I configure it to work properly with Gmail? Thanks in advance for any help!