<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display new Mail message using SSH in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102465#M56343</link>
    <description>Thanks for the program.  Works great.&lt;BR /&gt;Tom</description>
    <pubDate>Thu, 10 Apr 2008 15:13:50 GMT</pubDate>
    <dc:creator>Tom Hartsook</dc:creator>
    <dc:date>2008-04-10T15:13:50Z</dc:date>
    <item>
      <title>Display new Mail message using SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102462#M56340</link>
      <description>When I login to my username using SSH, the "new Mail" message fails to appear. Using TELNET, the message appears as normal.  The CheckMail parameter is set to yes. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 09 Apr 2008 23:11:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102462#M56340</guid>
      <dc:creator>Tom Hartsook</dc:creator>
      <dc:date>2008-04-09T23:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Display new Mail message using SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102463#M56341</link>
      <description>SSH also does SY$ANNOUNCEMENT differently.&lt;BR /&gt;Too bad.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you like a workaround, then you could use the following trivial code...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO&gt;&lt;BR /&gt;#include &lt;JPIDEF&gt;&lt;BR /&gt;#include &lt;MAILDEF&gt;&lt;BR /&gt;typedef struct { short len, cod; void *address; int *retlen; } item;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;int status, user_context = 0;&lt;BR /&gt;int SYS$GETJPIW(), MAIL$USER_BEGIN(), MAIL$USER_GET_INFO(), MAIL$USER_END();&lt;BR /&gt;char username[14];&lt;BR /&gt;short mess;&lt;BR /&gt;item null[] = {0,0,0,0};&lt;BR /&gt;item user[] = {12, JPI$_USERNAME, username, (int *)user, 0,0,0,0};&lt;BR /&gt;item news[] = {sizeof(mess), MAIL$_USER_NEW_MESSAGES, &amp;amp;mess, 0, 0,0,0,0};&lt;BR /&gt;&lt;BR /&gt;status = MAIL$USER_BEGIN(&amp;amp;user_context, null, null);&lt;BR /&gt;if (status &amp;amp; 1) status = SYS$GETJPIW(0,0,0,user,0,0,0);&lt;BR /&gt;user[0].cod = MAIL$_USER_USERNAME; /* watch out! Double usage user itemlist */&lt;BR /&gt;if (status &amp;amp; 1) status = MAIL$USER_GET_INFO(&amp;amp;user_context, user, news);&lt;BR /&gt;MAIL$USER_END(&amp;amp;user_context, null, null);&lt;BR /&gt;username[user[0].len] = '\0';&lt;BR /&gt;printf ("%d new message%s for %s\n", mess, (mess==1)? "": "s", username);&lt;BR /&gt;return status;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;/MAILDEF&gt;&lt;/JPIDEF&gt;&lt;/STDIO&gt;</description>
      <pubDate>Wed, 09 Apr 2008 23:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102463#M56341</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-09T23:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display new Mail message using SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102464#M56342</link>
      <description>As Hein said, SSH doesn't behave like telnet.&lt;BR /&gt;&lt;BR /&gt;Another thing that does not work with SSH is disconnectable terminals.  I.e. process using VTAxx like the following:&lt;BR /&gt;&lt;BR /&gt;$ sho term&lt;BR /&gt;Terminal: _VTA888:    Device_Type: VT400_Series  Owner: JON&lt;BR /&gt;Physical terminal: _TNA889:&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Thu, 10 Apr 2008 00:51:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102464#M56342</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-04-10T00:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display new Mail message using SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102465#M56343</link>
      <description>Thanks for the program.  Works great.&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 10 Apr 2008 15:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/display-new-mail-message-using-ssh/m-p/5102465#M56343</guid>
      <dc:creator>Tom Hartsook</dc:creator>
      <dc:date>2008-04-10T15:13:50Z</dc:date>
    </item>
  </channel>
</rss>

