Operating System - OpenVMS
1827474 Members
2033 Online
109965 Solutions
New Discussion

Alpha VMS Email output to a flat file

 
SOLVED
Go to solution
J Asson
Advisor

Alpha VMS Email output to a flat file


I know of the extract command in mail but is there a program which can extract to a flat file all the current unread mail messages in an account and to follow on - then be able to delete those extracted messages as well ?
6 REPLIES 6
Thomas Ritter
Respected Contributor

Re: Alpha VMS Email output to a flat file

J., you can build your own. We actually wrote a commercial quality transaction processing system which used email as the transport.

VMS provides a callable interface to mail. We used C to call the mail routines. The routines are a built ugly at first sight, but once you become comfortable with it, good fun.

There are some examples in the VMS doco set. Cannot remember where.
Thomas Ritter
Respected Contributor

Re: Alpha VMS Email output to a flat file

J., try a google search on MAIL$_MESSAGE_FILE_CTX

found this.

http://pcbunn.cithep.caltech.edu/jjb/mail/vms2eud.html
Thomas Ritter
Respected Contributor

Re: Alpha VMS Email output to a flat file

Hein van den Heuvel
Honored Contributor
Solution

Re: Alpha VMS Email output to a flat file

Sounds like a minor command file with

$mail
select newmail
extract/all newmail.txt
delete/all
$rename newmail.txt some-nicer-name.txt

What am I missing here?
Hein.

J Asson
Advisor

Re: Alpha VMS Email output to a flat file

Well I never flipping thought it would be that simple and forgot I could DCL into VMS.

It would be nice to have some code though that would recognise new mail rather than have to run a batch to handle checks but the later is ok with me as I am not a code fella.

Cheers and thanks to all from the Gold Coast in Australia
J Asson
Advisor

Re: Alpha VMS Email output to a flat file

Code and DCL into Mail