Something like Wanderlust's "Folder mode"?

55 views
Skip to first unread message

Hippo Man

unread,
Aug 15, 2016, 5:48:28 PM8/15/16
to mu-discuss
I am in the process of switching from Wanderlust to mu4e. I have multiple IMAP accounts and folders, and I am able to use mu4e's capabilities to mange them.

However, there is one feature of Wanderlust that I miss within mu4e: a "Folder mode" buffer. This is a buffer which contains a list of summary information for each active IMAP folder that I am dealing with. I can navigate from one folder to the next simply by selecting its line within this Folder mode buffer.

The Folder mode buffer looks like the following example:

 
- Email     :0/0/3745
      work        
:0/0/190
      home        
:0/0/803
      girlfriend  
:0/0/2128
      misc        
:0/0/624


The numbers represent new, unread, and total messages.

Has anyone constructed anything similar that works under mu4e? It doesn't have to be exactly the same. Instead of folders, it could be a list of bookmarks, for example.

The main thing I'm looking for is a list of IMAP folders or bookmarks that I can choose from, with similar message counts.

Anyway, at some point, I'm going to try to create such a thing for mu4e. But if something like this already exists, I don't want to go through the effort of "reinventing the wheel".

Thank you very much for any suggestions.
.

Florian Lindner

unread,
Aug 16, 2016, 3:30:47 AM8/16/16
to mu-di...@googlegroups.com
Hello,

Am 15.08.2016 um 23:48 schrieb Hippo Man:
> I am in the process of switching from Wanderlust to mu4e. I have multiple IMAP accounts and folders, and I am able to use mu4e's capabilities to mange them.
>
> However, there is one feature of Wanderlust that I miss within mu4e: a "Folder mode" buffer. This is a buffer which contains a list of summary information for each active IMAP folder that I am dealing with. I can navigate from one folder to the next simply by selecting its line within this Folder mode buffer.

There is the mu4e-maildirs-extension

(use-package mu4e-maildirs-extension
:ensure t
:config (progn
(setq mu4e-maildirs-extension-action-text nil)
(setq mu4e-maildirs-extension-before-insert-maildir-hook nil)
(mu4e-maildirs-extension)))


Which provides something similiar.

Best,
Florian

>
> The Folder mode buffer looks like the following example:
> |
>
> -Email :0/0/3745

Ben Swift

unread,
Aug 16, 2016, 3:37:58 AM8/16/16
to mu-di...@googlegroups.com
Is there a plan in the future to merge this with mu4e proper?

Cheers
Ben

Hippo Man

unread,
Aug 16, 2016, 6:48:51 PM8/16/16
to mu-discuss
Thank you.

But sadly, the "mu4e-maildirs-extension" package doesn't seem to be available ...

my-mu4e.el:9:1:Error: Package `mu4e-maildirs-extension-' is unavailable

There is no trailing hyphen in my emacs code. I'm using the exact code you specified above.

It is looking here ...

Contacting host: elpa.gnu.org:8

I've never used "use-package" before now. Is there some configuration I have to do, perhaps?

Hippo Man

unread,
Aug 17, 2016, 4:07:20 AM8/17/16
to mu-discuss
Never mind the problem with "use-package".

I found "mu4e-maildirs-extension" and downloaded it and its dependencies directly.

It works well. Thank you!

Hippo Man

unread,
Aug 17, 2016, 5:18:02 PM8/17/16
to mu-discuss
Follow-up ...

I have things set up more or less the way I want now in mu4e, now that I am using mu4e-maildirs-extension. However, there is another thing I'd like to accomplish, and I'm not sure where to start.

I'd like the *mu4e-main* buffer to permanently exist and permanently show the folders listed by mu4e-maildirs-extension. This way, whenever I finish viewing a folder, composing a message, sending a message, etc., I will end up in *mu4e-mail* with the fully expanded maildirs.

Actually, I'd also like to remove some of the other items from the *mu4e-main* view, as well.

I've been digging through the code, and eventually I'll figure out how to accomplish this, via trial and error. However, if anyone can give me some suggestions as to where to focus my efforts, that will be helpful.

Thank you.



Eduardo Mercovich

unread,
Aug 20, 2016, 8:18:44 PM8/20/16
to mu-di...@googlegroups.com
Hi.

> [...] Actually, I'd also like to remove some of the other items from the
> *mu4e-main* view, as well.

> I've been digging through the code, and eventually I'll figure out how
> to accomplish this, via trial and error. However, if anyone can give
> me some suggestions as to where to focus my efforts, that will be
> helpful.

No need to touch the code, if I understood ok, those are bookmarks that you can define.
https://www.djcbsoftware.nl/code/mu/mu4e/Bookmarks.html

Best.


--
eduardo mercovich

Donde se cruzan tus talentos
con las necesidades del mundo,
ahí está tu vocación.

Hippo Man

unread,
Aug 25, 2016, 6:53:21 PM8/25/16
to mu-discuss
On Saturday, August 20, 2016 at 8:18:44 PM UTC-4, Eduardo Mercovich wrote:
...


No need to touch the code, if I understood ok, those are bookmarks that you can define.
https://www.djcbsoftware.nl/code/mu/mu4e/Bookmarks.html

Thank you very much. I set `mu4e-bookmarks' to nil, and then the "Bookmarks" section of the main page indeed came up empty.

However, I still have "Basics" and "Misc" on that page, and the "Bookmarks" header remains, simply with nothing underneath it.

My goal is to replace all those items in the main page with a permanent list of maildirs, and nothing else ... and no headers like "Basic", "Bookmarks", or "Misc".

I think I might have to dig into the mu4e code, after all, in order to accomplish this.

Hippo Man

unread,
Aug 25, 2016, 6:58:24 PM8/25/16
to mu-discuss
Well, it turns out that I just need to put the following into my startup file after mu4e has been loaded:

(defun mu4e~main-view-real (ignore-auto noconfirm))

In other words, make `my4e~main-view-real' into a do-nothing function.

I think I just need to re-implement that function in order to make the maildirs permanently be present.

I'll be working on that over the next few days, and I'll post my results.


Reply all
Reply to author
Forward
0 new messages