Hello James,

Thursday, July 17, 2003, 8:38:48 AM, you wrote:
JS> Is it possible to assign a unique name to a file that is
JS> extracted or exported via a filter? Specifically I'd really like
JS> to use a macro expansion like $DATE$ in the file name...or
JS> better yet use regular expressions to use the original message's
JS> subject line (and /or other header info) as the extracted or
JS> exported file's name.

Seems that this can't be done easily. The only way I see is to export
message (as .eml file) and then use something on this file, so it will
extract attachments and save them under required filenames. The only
problem is the program that will preprocess exported messages and
extract files from them... TB itself doesn't provide and method to

And please make sure that it is insecure to allow filenames to contain
parts given directly from other's messages. What will happen if you'll
export files as $SUBJECT$.<extension_of_the_original_file> and some
hmm... malicious preson will send you a message with a subject like
"../../../../../autoexec.bat" (example for Win9x/Me-based systems only),
or just accidently and unintentionally write a "/" slash character...
Same applies to header information...

(Note: TB itself replaces "\", "/" and ":" with "_" and adds "#" character
 to the beginning of filename in that case)

-- 
Best regards,
 Daeman                            mailto:[EMAIL PROTECTED]

Using The Bat! v1.63 Beta/10 on Windows 2000 5.0 Build 2195 Service Pack 2


________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to