<?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: Mails in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229727#M686891</link>
    <description>You can trim files with:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /var/mail/root&lt;BR /&gt;&amp;gt; /var/mail/oracle&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
    <pubDate>Tue, 08 Jul 2008 12:04:31 GMT</pubDate>
    <dc:creator>Ivan Krastev</dc:creator>
    <dc:date>2008-07-08T12:04:31Z</dc:date>
    <item>
      <title>Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229726#M686890</link>
      <description>I am just doing a routine cleanup on my systems and I found big mail files under var/mail directory specially for root and oracle users. I have a questios in this regard, do we need these files for reference or periodically trim them? What is the procedure to trim or delete these files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jul 2008 11:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229726#M686890</guid>
      <dc:creator>Ali Imran Abbas</dc:creator>
      <dc:date>2008-07-08T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229727#M686891</link>
      <description>You can trim files with:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /var/mail/root&lt;BR /&gt;&amp;gt; /var/mail/oracle&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Tue, 08 Jul 2008 12:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229727#M686891</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-07-08T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229728#M686892</link>
      <description>You really should be looking at those e-mail messages BEFORE you clean up the files.&lt;BR /&gt;&lt;BR /&gt;Those 2 files you mention contain the local system e-mail for those 2 users.  There could potentially be VERY important system or database related messages there.&lt;BR /&gt;&lt;BR /&gt;Ideally you should have aliases set up for those users so someone gets those messages.</description>
      <pubDate>Tue, 08 Jul 2008 12:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229728#M686892</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-07-08T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229729#M686893</link>
      <description>salam Imran&lt;BR /&gt;&lt;BR /&gt;either you can rm the files in /var/mail folder.</description>
      <pubDate>Tue, 08 Jul 2008 12:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229729#M686893</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-07-08T12:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229730#M686894</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you don't want any of the contents, as noted, you can do:&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /var/mail/oracle&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/mail/oracle&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt; &lt;BR /&gt;# rm /var/mail/oracle&lt;BR /&gt;&lt;BR /&gt;Either of the first two forms result in an empty file.&lt;BR /&gt;&lt;BR /&gt;If you believe that you might want the contents for reference, you could 'gzip' them as compressed files and move them elsewhere.&lt;BR /&gt;&lt;BR /&gt;You could also delete (e.g. with 'vi') some number or range of messages where a message stanza begins with "^From".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 08 Jul 2008 12:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229730#M686894</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-08T12:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229731#M686895</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I wonder if you don't really need to cleanup some of the processses that are *creating* the mail in the first place.&lt;BR /&gt;&lt;BR /&gt;For example, if you have 'cron' tasks that 'su -' to oracle, then the account's profile is being sourced (read) and any terminal based commands meant to be run in a terminal-associated environment are producing annoying "Not a typewriter" messages to STDERR which (by default under 'cron') get mailed to the user account.&lt;BR /&gt;&lt;BR /&gt;One solution in that case is to modify your '.profile' to be sensitive to this by conditionally adding:&lt;BR /&gt;&lt;BR /&gt;# if [ -t 0]; then #...interactive/not cron...&lt;BR /&gt;&lt;BR /&gt;to create a a conditional block around the code that does 'stty', 'tset' and 'tabs' commands in the standard profile.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 08 Jul 2008 12:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229731#M686895</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-08T12:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229732#M686896</link>
      <description>&amp;gt;JRF: You could also delete (e.g. with 'vi') some number or range of messages where a message stanza begins with "^From".&lt;BR /&gt;&lt;BR /&gt;Instead of using vi, you can use "mailx -f /var/mail/root" (or "mailx -u root") to look at these mailboxes.&lt;BR /&gt;There are simple commands to delete ranges and read the messages.</description>
      <pubDate>Wed, 09 Jul 2008 01:23:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mails/m-p/4229732#M686896</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-09T01:23:31Z</dc:date>
    </item>
  </channel>
</rss>

