<?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: sendmail / editing inboxes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247367#M615503</link>
    <description>I should have mentioned that this is HP-UX v11.11 sendmail.</description>
    <pubDate>Mon, 12 Jul 2010 13:22:47 GMT</pubDate>
    <dc:creator>Fred Martin_1</dc:creator>
    <dc:date>2010-07-12T13:22:47Z</dc:date>
    <item>
      <title>sendmail / editing inboxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247365#M615501</link>
      <description>Occasionally I have a need to 'vi' a user's email inbox in /var/mail.&lt;BR /&gt;&lt;BR /&gt;The way I have always done this is to make a copy of the inbox, edit the copy, then look in the original inbox for new email that may have come in (or out, w/pop3) while I worked.&lt;BR /&gt;&lt;BR /&gt;If any differences I resolve them manually to my work copy and then put the copy back over the orginal.&lt;BR /&gt;&lt;BR /&gt;Is there a better way, i.e. lock out the file so that sendmail/pop3 must wait?&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jul 2010 11:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247365#M615501</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2010-07-12T11:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail / editing inboxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247366#M615502</link>
      <description>Yes. The trick is in knowing which locking method is used on any given system: there are several that might apply.&lt;BR /&gt;&lt;BR /&gt;The traditional mechanism for Unix-style mailbox locking is to create a /var/mail/&lt;USERNAME&gt;.lock file. If this file exists, the mailbox is locked. However, some programs will assume that if the lock file is older than 5 minutes, it is a stale lock file and will replace it with their own.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/USERNAME&gt;</description>
      <pubDate>Mon, 12 Jul 2010 13:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247366#M615502</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-07-12T13:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail / editing inboxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247367#M615503</link>
      <description>I should have mentioned that this is HP-UX v11.11 sendmail.</description>
      <pubDate>Mon, 12 Jul 2010 13:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247367#M615503</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2010-07-12T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail / editing inboxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247368#M615504</link>
      <description>Just use mailx(1).  This will automatically follow the correct locking protocol.&lt;BR /&gt;&lt;BR /&gt;I don't think you can use "-f /var/mail/user-name", nor "-u user-name"?&lt;BR /&gt;&lt;BR /&gt;You may have to just use:&lt;BR /&gt;MAIL=/var/mail/user-name mailx&lt;BR /&gt;&lt;BR /&gt;You can use "h" to get a list of messages and then "e message-number" to edit.  "z+" or "h number" to move forward.&lt;BR /&gt;The "q" to quit.  "x" to abandon all changes.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jul 2010 05:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247368#M615504</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-13T05:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail / editing inboxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247369#M615505</link>
      <description>Excellent, thanks folks.</description>
      <pubDate>Tue, 13 Jul 2010 12:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-editing-inboxes/m-p/5247369#M615505</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2010-07-13T12:23:00Z</dc:date>
    </item>
  </channel>
</rss>

