agpchil / mu4e-maildirs-extension Goto Github PK
View Code? Open in Web Editor NEWShow mu4e maildirs summary in mu4e-main-view
Show mu4e maildirs summary in mu4e-main-view
I just found that @seanfarley sent a PR djcb/mu#1586 to upstream to implement this functionality. Big thanks to @seanfarley and @djcb for their work!
AFAIK their implementation uses the "new feature" in mu/mu4e to fetch unread/total
counts using the daemon (ping/pong) instead of shell commands. Much more cleaner.
Looks like currently only bookmarks
is available in the release.
But I think mu4e-maildirs-extension
should be deprecated when the maildirs
part is included in a mu
tagged release.
Just a feature request for a configure option that toggles the display of
* [u]pdate index & cache
in the maildirs list. To me it just eats real estate. I figure it should default on but would be nice to turn it off.
I see that there is customisable "mu4e-maildirs-extension-custom-list", which I assume is how one would control which maildirs are shown, and which subdirectories are shown. Can you provide an example of how to do this?
I can not seem to implemente Write your own maildir format handler. Got following error:
error in process filter: propertize: Wrong type argument: numberp, nil
error in process filter: Wrong type argument: numberp, nil
Any thoughts? Thank for the great work.
Memory Imprint Studio
Hi,
Up until the latest commit, 0b79082, the new mail counts in mu4e's main buffer would be updated after pressing u
whenever new mail had arrived. Since that commit, however, I find that that is no longer the case. I need to do C-u C-u u
in order to make sure that the new mail counts are displayed correctly.
I added the value of mu4e-maildirs-extension-index-updated-function
back to mu4e-index-updated-hook
and now it works again. Perhaps this should be done unconditionally by mu4e-maildirs-extension
?
Something has changed in the mu4e-git version and when mu4e-maildirs-extension runs along mu4e mu4e-main view becomes empty.
with emacs debug, something wrong with the callback of mu4e-maildirs-extension-fetch function.buffer-string function return "�[?25h�[0G�[K�[?25h�[0G�[K", so the result value always 0.
I just realize today that my email counts doe not update. I can get emails from my 3 accounts just fine. Any hints? Thanks
Hi!
I guess it would be handy to get an opportunity to layout maildirs column by column from left to right as far as for multiple accounts/contexts use case main mu4e screen suddenly becomes a very long narrow stripe :)
Total disappearance of a maildir doesn't appear to be reflected until full restart of emacs.
If mu4e-maildir
is itself a Maildir, mu4e-maildirs-extension
fails.
Debugger entered--Lisp error: (wrong-type-argument wholenump -2)
make-string(-2 32)
mu4e-maildirs-extension-new-maildir("/")
mapcar(mu4e-maildirs-extension-new-maildir ("/"))
mu4e-maildirs-extension-load-maildirs()
mu4e-maildirs-extension-update()
mu4e-maildirs-extension-main-view-handler()
run-hooks(change-major-mode-after-body-hook special-mode-hook mu4e-main-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook special-mode-hook mu4e-main-mode-hook))
run-mode-hooks(mu4e-main-mode-hook)
mu4e-main-mode()
mu4e~main-view-real(nil nil)
mu4e~main-view()
mu4e~start(mu4e~main-view)
mu4e(nil)
call-interactively(mu4e nil nil)
command-execute(mu4e)
Is anybody experiencing any issue with emacs 26 and most recent mu update (1.3.5)?
Gmail seems to mark messages with the trash
tag rather than move them to a trash
folder.
However, the automatic filters that maildirs adds to the mu4e:main
view do not filter out trashed messages so I end up with a lot of trashed messages in my inbox.
Is there a way to customized the filters that maildirs adds to the mu4e:main
view?
Hi. Thanks for the great extension. Is there a way to change the name of a maildir on the mu4e main screen without changing the actual maildir name? i.e. Change '[Gmail].Drafts' to 'Drafts'?
Thanks!
I used to have my (setq mu4e-maildir "~/Mail")
but have changed it to be ~/Mail/sub-dir
now. Also I used to set it globally and now I set it as part of my mu4e-context. After making those changes, and changing the paths to folders to make them relative to the new mu4e-maildir
setting, I now get the mailboxes displayed as shown in the attachment below. The line gaps did not used to exist before. Any idea on where/how these are getting set ? I tried looking in the code to determine the cause, but was not able to do so. Most likely that is due to my poor elisp.
error in process filter: mu4e~main-action-str: Wrong type argument: integer-or-marker-p, nil
error in process filter: Wrong type argument: integer-or-marker-p, nil
Getting this error when using the mu4e-maildirs-extension
with the latest pull of mu4e
from https://github.com/djcb/mu. mu4e
's happy without the extension. Will post more if I can get a better trace of the error.
My ~/Mail
looks like that:
Ablage
Archiv
Archiv.2014 Doctoral Retreat
Archiv.2014 LK Oberstdorf
Therefore I have no multiple accounts, but a folder hierarchy , seperated by ".". It would be great if maildirs-extension would reflect this structure and indent each folder according to its nesting level.
Despite using a search based mail client I'm still archiving my mails into way too many folders...
This means that the current maildir list is much too long. I'd mostly be interested in seeing at a glance which maildirs actually have new messages. So I'd want to limit the list to only the maildirs with unread messages.
Would you be interested in supporting that?
Hi! First of all, this extension makes mu4e's main view so much more useful. Thanks to this I can use mu4e full time.
After I've viewed the headers of a folder and marked a few emails as read (mailing lists) or read them. I go back to the main view with 'q' and mu4-maildirs-extension shows the old unread count.
I need to Update my email to see the real current unread count. Which takes a while since it needs to sync with all the folders in my mail server.
Is there a way to have mu4e-maildirs-extension browse again the folders and recalculate the unread without having to Update mu4e?
Hey,
mu4e has a new way to create bookmarks (make-mu4e-bookmark
). make-mu4e-bookmark
returns a struct, but this new format is not supported by mu4e-maildirs-extension
.
Let's assume the variable mu4e-bookmarks
holds the following value (a mix of old/new bookmarks):
([cl-struct-mu4e-bookmark "All rtags emails" "(m:/Gmail/Inbox OR m:/Github) (v:rtags.* OR f:agbakken)" 114]
("flag:unread AND NOT flag:trashed" "Unread messages" 117)
("date:today..now" "Today's messages" 116)
("date:7d..now" "Last 7 days" 119)
("mime:image/*" "Messages with images" 112))
Calling now mu4e
would fail with the following error when mu4e-maildirs-extension-use-bookmarks
is t
in the function mu4e-maildirs-extension-load-bookmarks
.
mapc: Wrong type argument: listp, [cl-struct-mu4e-bookmark "All rtags emails" "(m:/Gmail/Inbox OR m:/Github) (v:rtags.* OR f:agbakken)" 114]
regards,
Christian
Not sure how exactly org-mode does it, but it might be convenient if the maildirs-extension would similarly auto-expand collapsed nodes when a maildir name hidden in a collapsed subtree matches the isearch.
Thanks for making mu4e-maildirs-extension!
It seems like the mu4e-update-index is no longer present in the mu4e code, at least I cannot find it by myself. mu4e-maildirs-extension cannot update the list manually (when entering 'u' keyboard shortcut). Updating the list works fine when everything is updated ('U' keyboard shortcut)
maildirs-extension version: git last commit 0477880
mu4e-version: 0.9.8.4
For each bookmark do a background query and show the unread/total results.
Basically, do the same thing for bookmarks as is done for maildirs.
Would this be reasonable to do, technically?
Or perhaps this is a bit out of scope for this extension?
I really like this extension but I tend to have one or two maildirs and then several bookmarks (a.k.a saved searches), and I'd like to see the unread/total counts for those as well, or at least some of them.
Hi every body,
Thanks for this extension.
I have an issue with the count command, which seems to fail with the message
Unmatched '.
I have many buffers with this expression named mu4e-maildirs-extensionsXXXX...
I'm using mu4e - mu for emacs version 0.9.11 on emacs 25.
Thank you in advance,
Mohamed
The installation of the new version of mu4e (1.10) creates some issues with the mu4e-maildirs package. Mu/Mu4e is functional, but the display of its default/main view is broken and displays a blank screen. Here's the error message that gets displayed every time any operation on folders is performed:
mu4e-maildirs-extension-update: Search failed: "
Misc"
error in process filter: mu4e-maildirs-extension-update: Search failed: "
Misc"
error in process filter: Search failed: "
Misc"
Any idea what's going on?
The variables defined with defvar
should be defined with defcustom
to allow users to customize. Also, should write the docstring for these variables.
@ayman is doing this changes
I pulled the latest changes to mu/mu4e (including the new query parser) the other day and now it seems mu4e-maildirs-extension
isn't working properly anymore. Specifically, there are three mailboxes that receive new mail but where new mail is never reported.
It's probably not a coincidence that these three mailboxes have a space in their names, while the mailboxes that still work don't.
The new query parser makes it possible to search for phrases, so it could be that mu4e's handling of spaces has changed. Alternatively, there may be a bug in the new query parser.
If there's anything I can do to help and find out what the issue is, and hopefully resolve it, let me know.
The screenshot needs to be updated to show last changes (parent maildir info/propertize)
I should add a wiki page to highlight breaking changes and new features between versions.
This way it should be easier for the user to update/fix configs (or delay updates if there are too much breaking changes).
I just started using the extension. It looks nice!
I see that the bookmarks thing is still experimental and disabled by default, but for some reason, my first run without customising anything (mu4e-maildirs-extension-use-bookmarks
is nil) runs mu4e-maildirs-extension-load-bookmarks
which halts with an error:
(wrong-type-argument characterp aj/mu4e-get-all-uu-archives)
This is not very surprising since one of my bookmarks is:
((aj/mu4e-get-all-uu-archives)
"UU-arkiv" 97)
(a function that returns all subdirectories in my archive).
maildirs-extension-load-bookmarks
tries to concat this with " AND flag:unread"
, which not so surprisingly doesn't work. mu4e supports expressions (that should return a search query) as bookmark definitions. Apperently mu4e-maildirs-extension does not now.
The solution would be to put an eval of query
somewhere and check that we get a string (like in mu4e-get-bookmark-query
).
I don't know why mu4e-maildirs-extension-load-bookmark
is run in the first place though.
I think it would be helpful to show the corresponding mail directory layout and elisp configuration that produced the screenshot in the README.
I'm having trouble getting mu4e to render the account maildir trees properly. I can fudge some mu4e configuration to make it visually appear correct, but then that breaks the query and always just reads (0/0)
.
I want it to look like the screenshot in the README, but I only have 1 email account for the time being.
@agpchil - how would you recommend I change my setup so it renders properly? Not sure where I went wrong.
My maildir directory layout:
Mail
|-- Work
|-- archive
|-- drafts
|-- sent
`-- trash
|-- Personal
|-- archive
|-- drafts
|-- sent
`-- trash
My relevant elisp configuration:
(setq mu4e-maildir "~/Mail/Work")
(setq mu4e-drafts-folder "/drafts")
(setq mu4e-sent-folder "/sent")
(setq mu4e-trash-folder "/trash")
(setq mu4e-maildir-shortcuts
'(("/archive" . ?a)
("/sent" . ?s)
("/trash" . ?t)
("/drafts" . ?d)))
(No custom bookmarks, just mu4e default ones for now)
My offlineimaprc:
[general]
accounts = Work
maxsyncaccounts = 3
pythonfile = ~/.offlineimap.py
[Account Work]
localrepository = Work-Local
remoterepository = Work-Remote
[Repository Work-Local]
type = Maildir
localfolders = ~/Mail/Work
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail'
}.get(folder, folder)
[Repository Work-Remote]
type = Gmail
remotehost = imap.gmail.com
remoteuser = xxxxxxxxxx
remotepasseval = get_authinfo_pass('imap.gmail.com', 'xxxxxxxxxx')
ssl = yes
maxconnections = 1
realdelete = no
sslcacertfile = /usr/local/etc/openssl/osx_cert.pem
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
'[Gmail]/Sent Mail': 'sent',
'[Gmail]/Trash': 'trash',
'[Gmail]/All Mail': 'archive'
}.get(folder, folder)
folderfilter = lambda folder: folder in ['[Gmail]/All Mail',
'[Gmail]/Drafts',
'[Gmail]/Sent Mail',
'[Gmail]/Trash']
Hey all :),
As you may have noticed, I've not been updating this package lately. Some people have been using it and contributed fixing issues (eg: compatibilty with to newer mu4e versions). But I've not put the attention mu4e-maildirs-extension deserves. That's why I'm looking for maintainers.
Meanwhile, I'll try to help solving some issues and merging PRs.
Thanks all
First of all, thank you for very useful extension.
It appeared that for my setup maildir list was never getting updates, even after pressing u
in mu4e-main-view. The issue seems to be that I run mu index
outside of Emacs, so when I press u
mu4e-update-index
doesn't find new updates, and the fact that the cache is cleared only in mu4e-index-updated-hook
which is never called in my case. I think we should additionally clear the cache in mu4e-maildirs-extension-force-update
just before calling mu4e-update-index
to be sure that after u
maildir stats are always up-to-date.
At least for recent version of mu4e, I think mu4e--main-action-str
should instead be mu4e~main-action-str
; maybe a version check is necessary?
Changing mu4e-maildirs-extension-custom-list changes
has no visible effect until Emacs is restarted -- even mu4e
restart has no effect.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.