<?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: corrupted attachments in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819370#M773353</link>
    <description>Renarios,&lt;BR /&gt;&lt;BR /&gt;You may want to run the file through 'ux2dos' before attaching it so that LF's get translated to CR's &amp;amp; LF's.  If you don't have 'ux2dos', 'awk' also works:&lt;BR /&gt;&lt;BR /&gt;awk '{print $0"\r"}' &amp;lt; file_unix &amp;gt; file_dos&lt;BR /&gt;&lt;BR /&gt;PCS</description>
    <pubDate>Fri, 07 Jul 2006 07:53:45 GMT</pubDate>
    <dc:creator>spex</dc:creator>
    <dc:date>2006-07-07T07:53:45Z</dc:date>
    <item>
      <title>corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819363#M773346</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Every Friday automatically emails with attachments are sent from on of our HP-UX machines using mailx from a shell script. Some of these mails go directly to our internal our exchange server and some of them are sent cross-domain over the internet. Internally sent emails are received successfully, but one of our customers receives the email with a corrupted attachment. I have tested by sending the mail to my private mail server and the attachment is OK. Has anyone met the same issue? Can I change a parameter with mailx or should the customer change setting on their exchange server?&lt;BR /&gt;Here is a code fragment:&lt;BR /&gt;## Begin code&lt;BR /&gt;&lt;BR /&gt; file="HUBBA.DAT"&lt;BR /&gt; filealias="HUBBA_$(date '+%m%d').DAT"&lt;BR /&gt; purpose="leerlingen-administratie"&lt;BR /&gt;&lt;BR /&gt; filepath="/tmp"&lt;BR /&gt; DATFILE="${filepath}/${file}"&lt;BR /&gt; EXTENSION="${file#*.}"&lt;BR /&gt; BASE_NAME="${file%.${EXTENSION}}"&lt;BR /&gt; subject="blah blah"&lt;BR /&gt; message="blah blah"&lt;BR /&gt;&lt;BR /&gt;  # Check if datfile exists&lt;BR /&gt;  f_check_datfile&lt;BR /&gt;  f_retval&lt;BR /&gt;&lt;BR /&gt; # Send the E-mail message...&lt;BR /&gt; mailx -r ${RETURN_ADDRESS} -s "${subject}" ${target_address} &amp;lt;&lt;EOF&gt;&lt;/EOF&gt; $(ux2dos ${DATFILE} | uuencode ${filealias})&lt;BR /&gt; ${notification}&lt;BR /&gt; Hallo ${firstname}. ${sirname},&lt;BR /&gt; &lt;BR /&gt; ${message}&lt;BR /&gt; ${notification}&lt;BR /&gt; Bij dit bericht is het bestand ${filealias} als bijlage toegevoegd.&lt;BR /&gt;&lt;BR /&gt; ===================================================&lt;BR /&gt; Dit is een automatisch gegenereerde email.&lt;BR /&gt; Als u deze email ten onrechte heeft ontvangen,&lt;BR /&gt; meldt u dit a.u.b. aan ${RETURN_ADDRESS}&lt;BR /&gt; ===================================================&lt;BR /&gt;EOF&lt;BR /&gt;## End code&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jul 2006 04:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819363#M773346</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-07T04:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819364#M773347</link>
      <description>change this line:&lt;BR /&gt;&lt;BR /&gt;mailx -r ${RETURN_ADDRESS} -s "${subject}" ${target_address} &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;BR /&gt;TO&lt;BR /&gt;&lt;BR /&gt;mailx -m -r ${RETURN_ADDRESS} -s "${subject}" ${target_address} &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;BR /&gt;The "-m" tells mailx that the message contains mime encoded items.&lt;BR /&gt;&lt;BR /&gt;I tested your original code sniplet and I ALSO received a "garbled" message:&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;begin 666 =dah.txt&lt;BR /&gt;M:&amp;amp;]S=&amp;amp;YA;65A#0I(4B!D979E;&amp;amp;]P;65N="P@1&amp;amp;%T82!297!O&lt;VET&gt;&lt;/VET&gt;M=F5L;W!M96YT+"!C&lt;F&gt;2!S='5F9BP@;6]R92!C&lt;F&gt;2!S='5F9@T*&lt;W1U&gt;&lt;/W1U&gt;,&amp;lt;&amp;amp;ED('-T=69F#0H:&lt;BR /&gt;`&lt;BR /&gt;end&lt;BR /&gt;notification&lt;BR /&gt;Hallo firstname. sirname,&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;&lt;BR /&gt;But once I added the "-m" option the item came in as an attachment.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;/F&gt;&lt;/F&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819364#M773347</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2006-07-07T06:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819365#M773348</link>
      <description>renarios,&lt;BR /&gt;&lt;BR /&gt;If you continue to have problems, you might want to give SEP's famous mailfile attachment script a shot:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/mailfile2" target="_blank"&gt;http://www.hpux.ws/mailfile2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 07 Jul 2006 07:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819365#M773348</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-07T07:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819366#M773349</link>
      <description>Hi Harry,&lt;BR /&gt;&lt;BR /&gt;You are right! In the original code I do use the -m option. With -m the email text is OK, but in the attachment some line feeds just dissapear. &lt;BR /&gt;If I don't use the "-m" even the text in the email looks Russian to me.&lt;BR /&gt;I personally think that it hat to do with setting on the customers' Exchange settings, but I'm not sure. &lt;BR /&gt;&lt;BR /&gt;All suggestions are welcome!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Fri, 07 Jul 2006 07:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819366#M773349</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-07T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819367#M773350</link>
      <description>Hi spex,&lt;BR /&gt;&lt;BR /&gt;Thanks for the hint. I will give it a go!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Fri, 07 Jul 2006 07:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819367#M773350</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-07T07:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819368#M773351</link>
      <description>What is EXTENSION equal to? Is it ".dat" ? If so, then the user might have a different "default" application attempting to open the attachment. I don't have any default application assigned to open ".dat" files, thus I'm prompted to choose an application to open the attachment.&lt;BR /&gt;&lt;BR /&gt;if this is just a text file, then try changing the EXTENSION to ".txt"&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Fri, 07 Jul 2006 07:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819368#M773351</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2006-07-07T07:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819369#M773352</link>
      <description>Hi Harry,&lt;BR /&gt;&lt;BR /&gt;Originally the extension is (excuse me) .cum (for cumulative file). Because of all firewalls and proxies I alias it to .DAT instead ;^)&lt;BR /&gt;We tested by mailing from UNIX to customer;&lt;BR /&gt; customer forwards mail including attachment;&lt;BR /&gt;They try to load file into forms application (I think it uses SQL*loader on background), which failes.&lt;BR /&gt;When I open the attachment with Ultraedit, some line feeds and spaces (just four or five times in fourhudred lines) are dissapeared. It beats me what causes it. &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Fri, 07 Jul 2006 07:42:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819369#M773352</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-07T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819370#M773353</link>
      <description>Renarios,&lt;BR /&gt;&lt;BR /&gt;You may want to run the file through 'ux2dos' before attaching it so that LF's get translated to CR's &amp;amp; LF's.  If you don't have 'ux2dos', 'awk' also works:&lt;BR /&gt;&lt;BR /&gt;awk '{print $0"\r"}' &amp;lt; file_unix &amp;gt; file_dos&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 07 Jul 2006 07:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819370#M773353</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-07T07:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819371#M773354</link>
      <description>Hi spex,&lt;BR /&gt;&lt;BR /&gt;I do use ux2dos :&lt;BR /&gt;$(ux2dos ${DATFILE} | uuencode ${filealias})&lt;BR /&gt;, but thanx for the hint.&lt;BR /&gt;&lt;BR /&gt;More and more I begin to think are to be found in exchange. Is anyone feeling exchange goeroe today?</description>
      <pubDate>Fri, 07 Jul 2006 08:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819371#M773354</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-07T08:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819372#M773355</link>
      <description>Renarios,&lt;BR /&gt;&lt;BR /&gt;I guess I missed that ;-).&lt;BR /&gt;&lt;BR /&gt;I wonder if sending the file as a binary will make a difference.  Try compressing or gziping it before you attach it.  Of course, the danger here is if the message gets alterted en route, the archive will be corrupt.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 07 Jul 2006 08:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819372#M773355</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-07T08:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819373#M773356</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Hey my script!&lt;BR /&gt;&lt;BR /&gt;One thing I usually post with that script is this:&lt;BR /&gt;&lt;BR /&gt;It might be your SMTP server eating the attachment.&lt;BR /&gt;&lt;BR /&gt;I developed that script in a lab at my home in Chicago and it worked great. I took it to work and the attachments were not working. The SMPT gateway needed a patch.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 07 Jul 2006 08:45:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819373#M773356</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-07T08:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819374#M773357</link>
      <description>Shalom Steven,&lt;BR /&gt;&lt;BR /&gt;So you noticed your own handwriting ;^). &lt;BR /&gt;I altered the code to compress the attachment before mailing it. Have to wait till Tuesday to get a response though. &lt;BR /&gt;Our HP-UX servers are updated on regular base, but I don't know about the smart_relay. I will ask some administrators to check it out. &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Fri, 07 Jul 2006 09:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819374#M773357</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-07T09:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819375#M773358</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Our email gateway is a Fedora system.&lt;BR /&gt;Can you tell me what your email gateway was and which patch you needed to install?&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Tue, 11 Jul 2006 02:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819375#M773358</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-07-11T02:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819376#M773359</link>
      <description>Has anoyone discovered the patch that was needed to stop the attachments from being garbled?  &lt;BR /&gt;&lt;BR /&gt;We are having this problem when a message is sent in .txt format.  If the e-mail is received by a pop3 user the e-mail attachment goes through fine, but when received by an Exchange user, the e-mail attachment is messed up.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help and suggestions so far.  It is greatly appreciated.</description>
      <pubDate>Tue, 26 Sep 2006 06:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819376#M773359</guid>
      <dc:creator>davedunn77</dc:creator>
      <dc:date>2006-09-26T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: corrupted attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819377#M773360</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;I still have the problem. Because I have to (read must) give it a lower priority, it is still active. &lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Tue, 26 Sep 2006 07:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corrupted-attachments/m-p/3819377#M773360</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-09-26T07:20:24Z</dc:date>
    </item>
  </channel>
</rss>

