Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mu4e-error: unrecognized link #21

Open
jaaved opened this issue May 1, 2021 · 5 comments
Open

mu4e-error: unrecognized link #21

jaaved opened this issue May 1, 2021 · 5 comments

Comments

@jaaved
Copy link

jaaved commented May 1, 2021

My dashboard.org

[[mu4e:flag:unread][All unread]]

I enabled mu4e-dashboard-mode and and clicking on the "All unread" link is displaying this error:

"mu4e-error: \[mu4e\] mu4e: unrecognized link type 'flag:unread||10'"

I have mu4e client configured and working without issues.
Emacs 27.2
mu version 1.0

@rougier
Copy link
Owner

rougier commented May 3, 2021

We modified the code a bit because mu4e links are somehow reserved for mu4e. You now have the option to name the link to whatever you want and the default is mu. I think you can set it back to mu4e but it might interfere with mu4e regular links.

@jaaved
Copy link
Author

jaaved commented May 3, 2021

replacine mu with mu4e worked.

A question related to count:
this works
mu:from:[email protected]|%3d

but not this
mu:(date:4w..now AND from:[email protected])|%3d

this displays a "+" symbol instead of count.

Is count is not expected to work with compound queries? @rougier

@rougier
Copy link
Owner

rougier commented May 3, 2021

It depens on the count. Since you give %3d for format and if the number is higher, it will display "+++" to indicate that the count is higher. Try with %5d for example. But it seems there's a bug for some peopel (see #19)

@jaaved
Copy link
Author

jaaved commented May 4, 2021

@rougier thanks for the update,

I tried few things , the issue is not about using %5d because my email numbers are not that big. What I found out is

Using braces was the problem

mu:(date:today..now AND from:[email protected])|%3d

this worked:

mu:date:today..now AND from:[email protected]|%3d

Update:

e.g. In this

[[mu:(date:today..now AND from:[email protected])][today]][[mu:(date:today..now AND from:[email protected])|%3d][  0]] 

clicking on today opens expected mu4e buffer with emails as expected but the count part is getting displayed as zero.
Braces works in the link but not in the count.

@rougier
Copy link
Owner

rougier commented May 15, 2021

Thanks for the report. I think the braces are interpreted by the shell when we make the call:

$ mu find date:today..now | wc -l
9
$ mu find "(date:today..now)" | wc -l
9
$ mu find (date:today..now) | wc -l
zsh: number expected
0

Can you confirm? If so, it's a matter of surrounding the query with \" in the shell call. Could you make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants