I am downloading mail using fetchmail from a pop account and using gnus to read mails from the maildir.
I would like to run elisp code on emails that are matched by fancy split rules, or something similar.
My end goal would be to match all mails from firstname.lastname@example.org and run elisp code to extract the data and upload it to a server.
I have read the linked manual and got the idea after reading this portion
(! func split) If the split is a list, and the first element is !, then split will be processed, and func will be called as a function with the result of split as argument. func should return a split.
Would I be able to use the function to run code for the side effects and still return the split, or am I on the completely wrong track?