Giter Club home page Giter Club logo

mu4e-maildirs-extension's People

Contributors

agpchil avatar andersjohansson avatar areina avatar ayman avatar binarin avatar casch-at avatar eigengrau avatar i02sopop avatar innerout avatar j-hao avatar lululau avatar punchagan avatar tychobrailleur avatar xaiki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mu4e-maildirs-extension's Issues

Upstream

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.

[Feature Request] Remove [u] option from display.

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.

examples of how to customise the list of maildirs

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?

Wrong type argument issue with the new version

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.

Tony

Memory Imprint Studio

After latest commit, maildirs don't update when new mail arrives

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?

mu4e-git compatibility broken

Something has changed in the mu4e-git version and when mu4e-maildirs-extension runs along mu4e mu4e-main view becomes empty.

maildirs view get incorrect unread/total number. the value always 0/0.

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.

System Info 💻

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: master (rev. 8e1af14)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm

Email count does not update?

I just realize today that my email counts doe not update. I can get emails from my 3 accounts just fine. Any hints? Thanks

[rfe] multicolumn layout?

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 :)

Fails when root is Maildir

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 there a way to hide trashed messages?

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?

Rename maildir on mu4e main screen only

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!

mailboxes do not display properly

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.

screenshot 2017-05-24 at 23 47 28

error in process filter with mu4e 0.9.9.6pre2 (built from git)

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.

Make directory structure more configurable

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.

Feature request: Only show maildirs with unread messages

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?

Update unread count after reading

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?

`mu4e` fails when `mu4e-maildirs-extension-use-bookmarks` is `t`

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

Auto-expand collapsed nodes when using isearch

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!

Symbol's function definition is void: mu4e-update-index

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

Bookmark support?

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.

Count command

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

New version of mu4e does not play well with mu4e-maildirs-extension

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?

Make variables customizable

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

Problem with maildirs with spaces after mu/mu4e update

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.

Update screenshot

The screenshot needs to be updated to show last changes (parent maildir info/propertize)

Changelog wiki page

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).

mu4e-maildirs-extension-load-bookmarks doesn't work with bookmark queries that are expressions

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.

Include mu4e configuration in README

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.

Here's what mine looks like:
screen shot 2015-12-01 at 10 11 44 am

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']

Looking for Maintainers

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

mu4e-maildirs-extension-force-update doesn't clear cache

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.

mu4e--main-action-str

At least for recent version of mu4e, I think mu4e--main-action-strshould instead be mu4e~main-action-str; maybe a version check is necessary?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.