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

save-hook #4127

Closed
laburnumT opened this issue Dec 8, 2023 · 1 comment
Closed

save-hook #4127

laburnumT opened this issue Dec 8, 2023 · 1 comment
Labels

Comments

@laburnumT
Copy link

I'm trying to get save-hooks working for sorting email that does not
contain a plain text section and was not sent from a noreply email. I
tried it both of the following ways and I did not get a result:

save-hook "!~M text/plain !~f '.*no-?reply@.*'" "=HTML"
save-hook "!~M text/plain !~f '\\\\.*no-?reply@\\\\.*'" "=HTML"

After this did not work I decided to try a couple of simpler save-hooks:

save-hook '~s .*' '=HTML'
save-hook '~s \\.*' '=HTML'
save-hook '~s test' '=HTML'
save-hook '~f <laburnumtec@gmail.com>' '=HTML'
save-hook '<laburnumtec@gmail.com>' '=HTML'

All of these also did not work. Is there something I'm doing wrong with
these save-hooks?

@laburnumT laburnumT added the type:question Question label Dec 8, 2023
@laburnumT
Copy link
Author

I got the following response on irc

│11:22:39  flatcap | I've just done a quick test and the save-hook seems to work the way I expected...
│11:23:37  flatcap | the *first* match wins.  so `save-hook "~s neomutt" =neomutt`  and a default case  `save-hook .  =other`
│11:23:51  flatcap | will save to =neomutt if subject neomutt, else =other
│11:24:32  flatcap | what do you see when you hit 's' <save-message> ?
│11:27:06 laburnum | I see =HTML
│11:27:19 laburnum | I think I probably misunderstood what save-hook does
│11:27:41 laburnum | I thought it would activate on an incoming message and save it to that folder
│11:27:58  flatcap | ah, no.  sorry, it's not automatic
│11:29:04 laburnum | Fair enough. I'll look for a different solution for that then

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

No branches or pull requests

1 participant