[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-workers] mhstore RFE: add facility to manipulate the original filen

From: Jon Fairbairn
Subject: [Nmh-workers] mhstore RFE: add facility to manipulate the original filename
Date: Fri, 30 May 2014 10:44:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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

-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                                 address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]