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

Regex doesn't work in neomutt? #134

Open
sprnza opened this issue Jul 28, 2023 · 2 comments
Open

Regex doesn't work in neomutt? #134

sprnza opened this issue Jul 28, 2023 · 2 comments

Comments

@sprnza
Copy link

sprnza commented Jul 28, 2023

Hi!
Thanks for the project!
I'm unable to setup urlscan to exclude mailto links:

macro index,pager \cu "<pipe-message> urlscan -scdE 'http.*'<enter>" "call urlscan to extract URLs out of a message"
macro attach,compose \cu "<pipe-entry> urlscan -scdE 'http.*'<enter>" "call urlscan to extract URLs out of a message"

When run from neomutt it still shows mailto links.
If I run from command line I get it working properly:

sdg-dell ➜ ~ cat /tmp/urls
https://google.com
mailto:example.com
https://google.com
sdg-dell ➜ ~ urlscan -cdnE 'http.*' /tmp/urls
https://google.com

What could be wrong with my setup?

@tjex
Copy link
Contributor

tjex commented Aug 16, 2023

also not working for me.
if I test the same sytax in a terminal, the mailto: link is not considered.
But from neomutt, it is.

@firecat53
Copy link
Owner

The issue appears to be that the regex is only applied to the plain text part of the message, not the HTML part. This will take some digging to solve...

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

3 participants