reddit / emacs

mu4e - Archived email not showing up in emacs

xer0d0g · 2022-02-27 17:11
I recently set up mu/mu4e to manage my email in emacs. Everything is/was working correctly: sending, receiving, deleting, etc. The one issue I'm running into is that if I mark messages in my inbox with "refile" ("r" in evil mode) and then execute the command, it appears that the command executed correctly. However, when I then jump to my Archive folder, I don't see any of the emails. Here's what I've done so far to troubleshoot. If I manually look for the messages in a terminal by going into my mu maildir, I can see the archived messages. Additionally if I run \`mu find some-message\` I can see emails in the Archive directory. If I send my self a new email and then archive it, I can see it in emacs. But then if I update, it dissappears, so it looks like I can only see unread emails. Has anyone encountered this before? I did some googling but couldn't find anything on this specific topic. Emacs and mu/mu4e versions provided below, along with my config. Emacs 27.1 mu/mu4e 1.5.7 OS: Linux - POP\_OS (Ubuntu Derivative) ;; Receiving mail (setq mu4e-maildir "~/.mail" mu4e-attachment-dir "~/Downloads" mu4e-sent-folder "/myemail/Sent" ;; folder for sent messages mu4e-drafts-folder "/myemail/Drafts" ;; unfinished messages mu4e-trash-folder "/myemail/Trash" ;; trashed messages mu4e-refile-folder "/myemail/Archive") (setq mu4e-get-mail-command "mbsync -a" mu4e-use-fancy-chars t mu4e-view-show-addresses t mu4e-view-show-images t) ;; When set to nil, mail must me manually retrieved (setq mu4e-update-interval nil) ;; Sending mail ;; tell message-mode how to send mail (setq message-send-mail-function 'smtpmail-send-it) ;; if our mail server lives at smtp.example.org; if you have a local ;; mail-server, simply use 'localhost' here. (setq mu4e-sent-folder "/myemail/Sent" ;; mu4e-sent-messages-behavior 'delete ;; Unsure how this should be configured user-mail-address "my-email" user-full-name "my-name" smtpmail-local-domain (system-name) smtpmail-smtp-user "my-name" smtpmail-default-smtp-server "some-server.com" smtpmail-smtp-server "some-server.com" ;;smtpmail-stream-type 'starttls smtpmail-smtp-service 587)
polaris64 · 2022-02-28 08:25
I've had cases where occasionally mail from a certain server fails to fetch and doesn't appear in mu4e. I haven't tracked down exactly what causes this yet, but in those cases I created the local maildir again from scratch (i.e. I renamed the current maildir, used `mbsync` to fetch it again from scratch, then deleted the renamed maildir once I confirmed that everything was OK). This is quite annoying, especially if you have a lot of mail, but might help. Hopefully a proper solution can be found though.