Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

mail attachment in VMS mail utility

 
Bjay
Advisor

mail attachment in VMS mail utility

Hi

I have sent an email with txt file attached to one of my vms machine email is successfully received at VMS end but I am not sure hot to extract the txt file attachment or how to save the attachment to my vms machine

Please help
Thanks
Bjay
3 REPLIES 3
Volker Halle
Honored Contributor

Re: mail attachment in VMS mail utility

Bjay,

use the MIME utility...

$ mime:==$MIME
$ mail
MAIL> READ ! read the mail
MAIL> EXTRACT/NOHEAD x.x
MAIL> EXIT
$ MIME x.x
MIME> LIST ! find attachment number
MIME> EXTRACT/ATT=n
MIME> EXIT

Volker.
Bjay
Advisor

Re: mail attachment in VMS mail utility

Thank you Volker it worked and now I can use Attachments in VMS hurray!!!!
Paul Jerrom
Valued Contributor

Re: mail attachment in VMS mail utility

Just be careful with the attachment numbers. I wrote a script to process emails, and some of them have no attachment 1, although they do have attachment 2, 3, etc!! So if you automate the reading of the email and the extraction of the attachments, don't assume a failure to extract attachment 1 means there aren't any.

have fun,

PJ
Have fun,

Peejay
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If it can't be done with a VT220, who needs it?