I am new to mu4e.
I am getting two issues both on my Debian Gnu/Linux Jessie and on OS X.
Configuration on both is the same.
1. After offlineimap syncs all the messages I have 'd' ->[Gmail].Trash
reappear. I have done this multiple times. Is there a way to stop this?
2. It seems to take a long time when I expect it to refresh every 5
minutes. (ie. Hours for mail that appears in Gmail webmail. The sending is
fast and instant.)
What do I need to do to troubleshoot this?
Thanks and regards,
Paul
>From my .emacs
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(require 'mu4e)
;; default
;; (setq mu4e-maildir "~/Maildir")
(setq mu4e-drafts-folder "/[Gmail].Drafts")
(setq mu4e-sent-folder "/[Gmail].Sent Mail")
(setq mu4e-trash-folder "/[Gmail].Trash")
;; don't save message to Sent Messages, Gmail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)
;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``ma''.
;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``ma''.
(setq mu4e-maildir-shortcuts
'( ("/Inbox" . ?I)
("/[Gmail].Important" . ?i)
("/[Gmail].Sent Mail" . ?s)
("/[Gmail].Trash" . ?t)
("/[Gmail].All Mail" . ?a)
("/[Gmail].Starred" . ?r)))
(add-to-list 'mu4e-bookmarks
'("flag:unread AND NOT flag:trashed AND date:today..now AND
NOT maildir:/[Gmail].Sent"
"Today's unread messages"
?m))
(add-to-list 'mu4e-bookmarks
'("flag:flagged"
"Flagged messages"
?f))
;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap")
;; something about ourselves
(setq
user-mail-address "[email protected]"
user-full-name "My Name"
mu4e-compose-signature
(concat
"My Name\n"
"http://www.mysite.net\n"))
;; sending mail -- replace USERNAME with your gmail username
;; also, make sure the gnutls command line utils are installed
;; package 'gnutls-bin' in Debian/Ubuntu
(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
starttls-use-gnutls t
smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-auth-credentials
'(("smtp.gmail.com" 587 "[email protected]" nil))
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587)
;; alternatively, for emacs-24 you can use:
;;(setq message-send-mail-function 'smtpmail-send-it
;; smtpmail-stream-type 'starttls
;; smtpmail-default-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-service 587)
;; don't keep message buffers around
(setq message-kill-buffer-on-exit t)
(setq mu4e-view-show-images t)
(when (fboundp 'imagemagick-register-types)
(imagemagick-register-types))
(setq mu4e-view-prefer-html t)
(setq mu4e-html2text-command "w3m -dump -cols 80 -T text/html")
(setq mail-user-agent 'mu4e-user-agent)
(add-to-list 'mu4e-view-actions
'("ViewInBrowser" . mu4e-action-view-in-browser) t)
;;To View in Browser. Then, in the view, press "aV", and you can read the
message in a
;;browser. You can use `browse-url-generic-program' to influence the
;;browser to use.
(add-to-list 'mu4e-view-actions
'("ViewInBrowser" . mu4e-action-view-in-browser) t)
(setq
mu4e-get-mail-command "offlineimap" ;; or fetchmail, or ...
mu4e-update-interval 300) ;; update every 5 minutes
;; notify sauron of new mail
(require 'sauron)
(require 'mu4e-utils)
(setq total-unread 0)
(defun new-messages ()
"Check our Maildir for 'new' messages and return the count"
(let ((cmd (concat "find " (expand-file-name "~/Mail")
" -type f | grep -i new | wc -l")))
(string-to-number (replace-regexp-in-string "![0-9]" ""
(shell-command-to-string cmd)))))
(defadvice mu4e-info-handler (after sauron-new-mail-handler)
"Notify sauron if we have new unread messages (new-messages)"
(let ((new (new-messages)))
(if (eq total-unread 0)
(setq total-unread new)
(if (equal (plist-get info :status) 'complete)
(progn
(setq unread (- new total-unread))
(setq total-unread new)
(if (> unread 0)
(sauron-add-event 'email 3 (format "Unread messages: %i"
unread))))))))
(ad-update 'mu4e-info-handler)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My .offlineimaprc
[general]
accounts = Gmail
maxsyncaccounts = 3
[Account Gmail]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = Maildir
localfolders = ~/Maildir
[Repository Remote]
type = IMAP
remotehost = imap.gmail.com
remoteuser = [email protected]
remotepass = <myepicpasspoem>
ssl = yes
maxconnections = 1
realdelete = no
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.