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

Error in mw -a for email addresses starting with letter "i" due to overbroad regex #993

Open
IzaacMammadov opened this issue Jul 28, 2024 · 0 comments

Comments

@IzaacMammadov
Copy link

This error only comes up if you have an email address starting with the letter "i" and then attempt to add another email address.
/usr/bin/mw: line 229: [: zaac@mammadov.co.uk": integer expression expected

where my email address is izaac@mammadov.co.uk

The offending regex in question is on line 227: for x in $(sed -n "/^macro.* i[0-9] / s/\(^macro.* i\| .*\)//gp " "$muttrc" | sort -u; echo 0); do

It's designed to match the i1/i2/i3 in the .muttrc file, but instead matches the space and start of my email address.

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

1 participant