<?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 uuencode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374809#M730387</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have an application that creates a file in a MS Word format on an HPUX 11.x server. The file is mailed by mailx to users on several mail systems. All users except those running Microsoft Exchange are able to receive the file as an attachment and open it succesfully. The Excange users open the attachment but get garbled text. &lt;BR /&gt;The command we use to mail the file is:&lt;BR /&gt;uuencode file.doc file2.doc | mailx -s"subject" mail.group &lt;BR /&gt;&lt;BR /&gt;Has anyone else seen this problem? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 08 Sep 2004 11:27:39 GMT</pubDate>
    <dc:creator>roger_101</dc:creator>
    <dc:date>2004-09-08T11:27:39Z</dc:date>
    <item>
      <title>uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374809#M730387</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have an application that creates a file in a MS Word format on an HPUX 11.x server. The file is mailed by mailx to users on several mail systems. All users except those running Microsoft Exchange are able to receive the file as an attachment and open it succesfully. The Excange users open the attachment but get garbled text. &lt;BR /&gt;The command we use to mail the file is:&lt;BR /&gt;uuencode file.doc file2.doc | mailx -s"subject" mail.group &lt;BR /&gt;&lt;BR /&gt;Has anyone else seen this problem? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 08 Sep 2004 11:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374809#M730387</guid>
      <dc:creator>roger_101</dc:creator>
      <dc:date>2004-09-08T11:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374810#M730388</link>
      <description>Hi,&lt;BR /&gt;Have you tried with a .mailrc file containing:&lt;BR /&gt;set crt=21&lt;BR /&gt;set encoding=8bit&lt;BR /&gt;set charset=iso-8859-1&lt;BR /&gt;# set mimeheader=yes&lt;BR /&gt;&lt;BR /&gt;Just thoughts&lt;BR /&gt;all the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 08 Sep 2004 11:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374810#M730388</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-08T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374811#M730389</link>
      <description>Tried the .mailrc syntax - did not work.</description>
      <pubDate>Wed, 08 Sep 2004 12:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374811#M730389</guid>
      <dc:creator>roger_101</dc:creator>
      <dc:date>2004-09-08T12:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374812#M730390</link>
      <description>Have you tried to ux2dos the file before the uuecode?&lt;BR /&gt;&lt;BR /&gt;Just thoughts...&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 08 Sep 2004 12:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374812#M730390</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-08T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374813#M730391</link>
      <description>Have you tried with the sendmail -t option?&lt;BR /&gt;&lt;BR /&gt;I found this DOC...&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;BR /&gt;&lt;BR /&gt;Command-line mailing with subject, body text and attachments DocId: KBAN00000679   Updated: 20010420 &lt;BR /&gt;&lt;BR /&gt;DOCUMENT&lt;BR /&gt;PROBLEM:&lt;BR /&gt;&lt;BR /&gt;Customer wants to be able to create a script to email a binary file to a&lt;BR /&gt;distribution list, with a subject line so recipients can readily identify it,&lt;BR /&gt;and body text explaining what the attachment is and what to do with it.  To do&lt;BR /&gt;that, they need a method of creating and sending such a message.&lt;BR /&gt;&lt;BR /&gt;RESOLUTION:&lt;BR /&gt;&lt;BR /&gt;The method involves assembling a message from two separate parts, consisting of&lt;BR /&gt;a header which contains the body text and of a uuencoded attachment, then&lt;BR /&gt;sending it using the "-t" sendmail flag, which causes sendmail to scan the&lt;BR /&gt;message body for such things as addresses and the subject.&lt;BR /&gt;&lt;BR /&gt;The first part of the message is a header, which looks like this:&lt;BR /&gt;&lt;BR /&gt;To: &lt;ADDRESS or="" alias=""&gt;&lt;BR /&gt;Cc: &lt;ADDRESS or="" alias=""&gt;&lt;BR /&gt;Bcc: &lt;ADDRESS or="" alias=""&gt;&lt;BR /&gt;Subject: &lt;SUBJECT&gt;&lt;BR /&gt;&lt;BLANK line=""&gt;&lt;BR /&gt;Then beginning on this line, you write the body text you want to include.&lt;BR /&gt;&lt;ANOTHER blank="" line=""&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see, the customer could easily put together a template header file&lt;BR /&gt;with variables in key positions, so a script to create and send the messages&lt;BR /&gt;could just grab the template and substitute the necessary values for the&lt;BR /&gt;variables.  It's not necessary to include bcc or cc lines if they're not going&lt;BR /&gt;to be used.&lt;BR /&gt;&lt;BR /&gt;Creating the message, then, is a matter of appropriately modifying a copy of&lt;BR /&gt;the header, and writing it to a temporary file.  Then uuencode the attachment&lt;BR /&gt;file and "&amp;gt;&amp;gt;" redirect it to the same temporary file.  Now send the contents of&lt;BR /&gt;that temporary file to sendmail, using the "-t" flag.&lt;BR /&gt;&lt;BR /&gt;For example, let's say you have a report that you always send to the same&lt;BR /&gt;people, always using the same body text and subject line.  For that you could&lt;BR /&gt;create a fixed header file, called "header" in this example.  To distribute the&lt;BR /&gt;report:&lt;BR /&gt;&lt;BR /&gt;# cp header &amp;gt; /var/tmp/mailtemp&lt;BR /&gt;# uuencode /path/datafile datafile &amp;gt;&amp;gt; /var/tmp/mailtemp&lt;BR /&gt;# cat /var/tmp/mailtemp | sendmail -t&lt;BR /&gt;# rm /var/tmp/mailtemp&lt;BR /&gt;&lt;BR /&gt;That's all.  Because of the "-t" flag, sendmail will read the header for&lt;BR /&gt;addressing and subject information.  Uuencoded files with a ".csv" suffix sent&lt;BR /&gt;in testing arrived at an Outlook client as attachments which called up Excel&lt;BR /&gt;just as they should, while the body text part of the header file arrived as&lt;BR /&gt;body text.&lt;BR /&gt;&lt;BR /&gt;Aliases were mentioned above in the description of the header.  This is part of&lt;BR /&gt;sendmail, and works whether you're sending mail using sendmail alone, or with&lt;BR /&gt;ELM or mail or mailx or any client using sendmail as a transport vehicle.&lt;BR /&gt;In /etc/mail there's a file called "aliases," and in it you can define both&lt;BR /&gt;individual aliases and mailing lists.  The basic format can be seen by just&lt;BR /&gt;looking at the file or consulting the man page for aliases(5).  To define a&lt;BR /&gt;list, you start the line with the alias for the list, then after a ":"&lt;BR /&gt;delimiter, list the addressees (full address or alias) separated by commas.&lt;BR /&gt;It's okay to add a space after the comma for clarity.  All addresses have to be&lt;BR /&gt;on the same line as the alias for the list;  a new line is taken as the end of&lt;BR /&gt;the list.  Sendmail doesn't usually use the aliases file itself, though, but&lt;BR /&gt;rather "aliases.db," so after you're done editing the aliases file you have to&lt;BR /&gt;issue the command "newaliases" to re-read the aliases file and re-write the&lt;BR /&gt;aliases.db file.&lt;/ANOTHER&gt;&lt;/BLANK&gt;&lt;/SUBJECT&gt;&lt;/ADDRESS&gt;&lt;/ADDRESS&gt;&lt;/ADDRESS&gt;</description>
      <pubDate>Wed, 08 Sep 2004 12:28:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374813#M730391</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-08T12:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374814#M730392</link>
      <description>Add the "-m" flag to mailx&lt;BR /&gt;&lt;BR /&gt;change to:&lt;BR /&gt;&lt;BR /&gt;uuencode file.doc file2.doc | mailx -m -s "subject" mail.group &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 08 Sep 2004 13:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374814#M730392</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-09-08T13:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374815#M730393</link>
      <description>Harry, when I use that syntax, it just hangs until I send a ctrl-d via the keyboard, and the file I recieved is garbage.&lt;BR /&gt;&lt;BR /&gt;What could I be missing?</description>
      <pubDate>Mon, 01 Oct 2007 15:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374815#M730393</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-10-01T15:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374816#M730394</link>
      <description>Disregard previous.</description>
      <pubDate>Mon, 01 Oct 2007 15:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374816#M730394</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-10-01T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374817#M730395</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Here is a guide with an internal link that will permit you to do one of two things:&lt;BR /&gt;&lt;BR /&gt;1) Use our working script (sendmail sorry)&lt;BR /&gt;2) Fix your code.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/?p=7" target="_blank"&gt;http://www.hpux.ws/?p=7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 01 Oct 2007 15:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374817#M730395</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-10-01T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374818#M730396</link>
      <description>Roger-&lt;BR /&gt;Attached is an in house doc we use for attachments plus using mailx. I believe Harry's suggestion should have worked, and the -m is an important key as is ux2dos.&lt;BR /&gt;&lt;BR /&gt;Best of luck on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-dl</description>
      <pubDate>Fri, 02 Nov 2007 15:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374818#M730396</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2007-11-02T15:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: uuencode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374819#M730397</link>
      <description>I don't actually do this stuff, so I know&lt;BR /&gt;nothing, but if I _were_ doing it, I'd almost&lt;BR /&gt;certainly be trying to use a MIME program&lt;BR /&gt;like mpack (which has been around for a dozen&lt;BR /&gt;years) instead of uuencode.  I would assume&lt;BR /&gt;that modern e-mail software expected MIME&lt;BR /&gt;encapsulation, and might easily have stopped&lt;BR /&gt;caring whether uuencode encapsulation still&lt;BR /&gt;worked, even if it were done correctly.</description>
      <pubDate>Fri, 02 Nov 2007 22:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uuencode/m-p/3374819#M730397</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-02T22:13:59Z</dc:date>
    </item>
  </channel>
</rss>

