- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- uuencode not sending attachments in right format a...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 03:55 AM
10-05-2006 03:55 AM
We have been using uuencode to send attachments for reports to person's email boxes in Exchange/Outlook from HP-UX 11.11 OS for years.
Suddenly within the last week this started to not work properly. The recipients get the email and attachment, but the attachment is illegible and has control characters and incorrect format strings. Any ideas?
Our original syntax is:
uuencode report.txt report.txt|mailx -m -s "report.txt "
I've also tried: (Per another forum thread's recommendation)
ux2dos report.txt | uuencode report.txt report.txt|mailx -m -s "report.txt "
Would anyone have any other ideas on what could be suddenly causing this?????
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 04:12 AM
10-05-2006 04:12 AM
Re: uuencode not sending attachments in right format anymore
looking at man uudecode:
"If an encoded file has the same name as the destination name specified in it, uudecode starts overwriting the encoded file before decoding is completed."
Start with changing the filenames. [Unlikely]
Ask the receiever to 'stitch' the attachments together and then do a uudecode.
[Proof format problem, not mailreader application]
Has anything changed in the transmission path ? Additional mail gateways/firewalls ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:17 AM
10-05-2006 05:17 AM
Re: uuencode not sending attachments in right format anymore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:26 AM
10-05-2006 05:26 AM
Re: uuencode not sending attachments in right format anymore
Can you post email header here (attachment related info but not those relay address)? so we can understand more on how exchange treat the attachment sent from your Unix server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:29 AM
10-05-2006 05:29 AM
Re: uuencode not sending attachments in right format anymore
Please indicate what you mean by email header?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:40 AM
10-05-2006 05:40 AM
Re: uuencode not sending attachments in right format anymore
I realize this may not suit your requirements, but if report.txt is ASCII data, you can simply make it the body of your message:
# mailx -m -s "report.txt appears in body" your@email.addr < report.txt
I suspect something has changed on your relay. Has new software (e.g. anti-virus, anti-spyware, firewall) been installed on the Windows server? Has the OS been updated recently?
Has anything changed on the client PCs?
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:43 AM
10-05-2006 05:43 AM
Re: uuencode not sending attachments in right format anymore
(Realizing this is the more difficult road to take)
I talked to our Exchange folks and they're saying they have not done any changes since August. This issue started only a week or so ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:46 AM
10-05-2006 05:46 AM
Re: uuencode not sending attachments in right format anymore
.............
Message-Id: <451a1835.86@happydays.be>
From: XXXX
To: xxxxxx
Subject: xxxxxxx
Date: Wed, 27 Sep 2006 08:20:37 +0200
Reply-To: No Reply
X-MA-Reference: 5v7y12hn55Y5FI0_anz555W
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NexPart_000"
X-UIDL: 00000000001f871d.0000075f
X-MSP-STORE: Wed, 27 Sep 2006 08:20:50 +0200
Status:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:52 AM
10-05-2006 05:52 AM
Re: uuencode not sending attachments in right format anymore
If it was working and you changed nothing and suddenly it does not work:
Its probably a change somewehre else. smtp gateway upgrades or changes can introduce bugs that make file attachments fail.
You script may not however be adequate to the new situation.
Here is a production script that works well. Do change the default email addresses in it if any are still hard coded.
http://www.hpux.ws/mailfile2
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:53 AM
10-05-2006 05:53 AM
Re: uuencode not sending attachments in right format anymore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 07:50 AM
10-05-2006 07:50 AM
SolutionI did a test from my Unix server to exchange and the MIME header shows:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
And the attachment looks OK with Wordpad but with Notepad, there is no line break
With
ux2dos report.txt | uuencode report.txt|mailx -m -s "report.txt "
The attachment can be read with Notepad without problem.
Because with ux2dos you used "ux2dos report.txt |uuencode report.txt report.txt|.." uuencode didn't take the output from ux2dos instead it read from the file report.txt. So, it make no difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 09:19 PM
10-05-2006 09:19 PM
Re: uuencode not sending attachments in right format anymore
I got some problem in teh past. It was due to the chnage in outlook server by Microsoft.
You can fix this in 2 ways:
1. add -m to each of your mail command line
2. create a .mailrc file in the home directory of teh user used to send mail and put 'set mimeheader=no'
$ cat .mailrc
set mimeheader=no
The seond way it's better because avoid you to chnage all your scripts.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2006 12:33 AM
10-06-2006 12:33 AM
Re: uuencode not sending attachments in right format anymore
As far as option #2 goes, I have tried creating a .mailrc file and setting:
set mimeheader=no
Even with this set, I'm still seeing the same symptom of the attachment being illegible and in the incorrect format unfortunately.
Thanks everyone for your ideas and suggestions. I'm going back to the SMTP and Exchange folks with this issue as I believe this is where something has changed to affect this process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2006 01:15 AM
10-06-2006 01:15 AM
Re: uuencode not sending attachments in right format anymore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 11:17 AM
11-13-2006 11:17 AM
Re: uuencode not sending attachments in right format anymore
We are having exactly the same problem like yours recently. All HP servers cannot send as attachment but servers running solaris can. No one changed any script, strange, isn't it? I wonder if you have your problem resolved?
Cheers
Davis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2006 03:05 AM
11-14-2006 03:05 AM
Re: uuencode not sending attachments in right format anymore
We had to build a ruleset on the SMTP server to allow the client to forward the mail directly to it. We never really figured out what actually caused this, but we suspect this was a Service Pack on the MS Exchange side. Since it's now working, we didn't spin wheels to further troubleshoot. Hope this helps...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2006 03:06 AM
11-14-2006 03:06 AM