Operating System - OpenVMS
1829122 Members
2018 Online
109986 Solutions
New Discussion

escaping characters in mail addresses

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

escaping characters in mail addresses

Anyone know how to escape meta characters in VMS mail ? Our MS Exchange server has some mail dist lists that start with special charaters.

i.e.
MAIL> mail
To: *operations@mycompany.com
%MAIL-E-USERSPEC, invalid user specification '*OPERATIONS@MYCOMPANY.COM'
I know in UNIX I can do the following
mailx \*operations@mycompany.com

THanks !!
10 REPLIES 10
Martin P.J. Zinser
Honored Contributor

Re: escaping characters in mail addresses

Hello,

difficult to test locally, but my first try would be double quotes around the address, i.e.

"*operations@mycompany.com"

Greetings, Martin
Tim Nelson
Honored Contributor

Re: escaping characters in mail addresses

Tried that.. It does however change the error from invalid user to
%MAIL-E-NOSUCHUSR, no such user *operations@mycompany.com

Also tried
"\*operations@mycompany.com"
'*operations@mycompany.com
"'*operations@mycompany.com"

Thanks for the reply though !!
Martin P.J. Zinser
Honored Contributor

Re: escaping characters in mail addresses

Hello,

as I wrote testing is difficult in this case.
One more thing to try is to define a logical name for the address and then use this in the
mail, i.e.

$ define my_op "*operations@mycompany.com"
$ mail
send
TO: my_op


Just a guess...

Greetings, Martin
Lokesh_2
Esteemed Contributor

Re: escaping characters in mail addresses

Hi,

another guess..
try to put double or triple quotes, and see if it works..for example:

""*operations@mycompany.com""
"""*operations@mycompany.com"""

best wishes,
Lokesh Jain
What would you do with your life if you knew you could not fail?
Tim Nelson
Honored Contributor

Re: escaping characters in mail addresses

No luck on the double or triple quotes. Will try the logical next.

Thank keep the ideas coming.. Thanks for all so far.

Tim Nelson
Honored Contributor

Re: escaping characters in mail addresses

No luck on the logical define either.
To: oper_email
%MAIL-E-USERSPEC, invalid user specification
Willem Grooters
Honored Contributor

Re: escaping characters in mail addresses

Since "^" is the escape character for RMS, you could try that (no guarantee it will work).Just tried it, didn't get an error:

MAIL> send
to: "^*Me@mysystem"

I have no such user (I got that mesaage) but it might work if you have.

HTH

Willem
Willem Grooters
OpenVMS Developer & System Manager
Tim Nelson
Honored Contributor

Re: escaping characters in mail addresses

No luck on the "^".
It does seem like the system is trying to find the user locally instead of seeing the @ . I.e. using " or ^ or \ or whatever changes the error from invalid user spec to no such user. We are getting close.

thanks thanks thanks. It is the little things that we know we can do that drive us nutz.
Ian Miller.
Honored Contributor
Solution

Re: escaping characters in mail addresses

What version of VMS? Try putting in the mail transport explictly e.g.
SMTP%"*operations@mycompany.com"

____________________
Purely Personal Opinion
Tim Nelson
Honored Contributor

Re: escaping characters in mail addresses

That was it..

THanks Ian !!!!!!!!!!!!!!!!

SMTP%"*operations@mycompany.com"