Thanks, Charlie! set klst [msgmetaget $mh DRIVERCTL] was exactly what I needed. However, I had to do some additional massaging to get purely the file name.
In my case the inbound file is one folder down from my PWD.
Is there a way to pull the FILENAME based on a key rather than performing string manipulation to get down to it?
set fn [msgmetaget $mh DRIVERCTL]
set filename [split $fn “/”]
echo filename: [regsub -all {}} [lindex $filename 1] {} filename]
echo filename: $filename
You do not need to define Directory Parse/Delete routines to get file name if Fileset/Local
Unless changed the message metadata will always contain it
I posted this before:
set klst [msgmetaget $mh DRIVERCTL]
Or, if in Xlate
set klst [xpmmetaget $xlateID DRIVERCTL]
# Always set a default
set filepath “”; keylget klst FILENAME filepath
filepath will contain full path.