Background: I’m using mhstore in a script to automatically extract images and text from messages. Since the messages come from and results go to naïve users, I’d like to be able to use the original file basenames so that they recognise what they sent.
-auto isn’t desirable because it completely ignores the filename if there’s anything dodgy about it. So I currently create a temporary profile with mhstore-<type> lines, but this loses the original filename completely. What would be nice would be a means of getting a sanitised version of the basename (probably less everything from the last “.” too) of the original filename (when present). Could a % format be provided to do this? — Jón -- Jón Fairbairn [email protected] _______________________________________________ Nmh-workers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/nmh-workers
