Image

Imagekalephunk wrote in Imagelinux crusty-eyed

ugh, procmail

I've stared at howtos and tut's for hours now with not much luck. Anybody here a procmail guru willing to throw me a bone?

I need to conjure up a recipe that'll do an action (shell function to modify a file) if there's a subject match. However, I've got ~300 files, and each file is named "127 blah blah", "128 blah blah" etc, consecutively. Is there a way to, if a subject on an email is, say, "[127] blah blah", execute the shell cmd on the variable of the number within the [] deliminators, without making 300 recipe snippets? Does this even make sense? Same command for each file, files are completely diff names (all they share is that they are all in the same dir and have an integer in front of them.

Any help much appreciated.