The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
uuencode for attachment giving problem manojram UNIX Desktop for Dummies Questions & Answers 3 11-19-2008 08:20 PM
Binary txt file received when i use uuencode to send txt file as attachment ash22 UNIX for Dummies Questions & Answers 2 04-24-2008 08:03 PM
mailx commannd - Mail and Attachment in same mail sharif UNIX for Advanced & Expert Users 6 03-19-2008 04:25 PM
send attachment without uuencode panchpan UNIX for Advanced & Expert Users 3 03-14-2008 09:08 AM
uuencode: command not found when sending mail in LINUX bsandeep_80 UNIX for Advanced & Expert Users 2 10-02-2007 08:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-15-2006
mvalonso mvalonso is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 17
Uuencode problem in mail attachment

I have a unix script that compresses a .txt file using gzip command and then sends it by mail using uuencode.
This has been working fine for some time, but lately I've been experiencing some problems, as when I open the mail generated, I don't see the attachment, but instead I get a large amount of characters such as "begin 644 test.dat.gz
M'XL(".XO%T0 V-I<V9I0C$W,#%S+F1A= #LG<MZVSB6Q_?]%%A6?9VH<"7!
M)431,MT4J2(E5<4[5^+N]GR)79/+8MZAGVC>:!:SFA>8<P!2HBU1@M*JBASC
M+!R&^HL"0! _'EP.+B?9.%]49)+760K_9B5)EUFY,&1LRM34N2%/K;Y]^_#Q" parsed in the body of the mail.
Any ideas?
  #2 (permalink)  
Old 03-15-2006
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
Yes I have an idea... but first put your script here so I can see what's going on.
  #3 (permalink)  
Old 03-15-2006
mvalonso mvalonso is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 17
It goes something like this...

gzip test.dat
uuencode test.dat.gz test.dat.gz | mailx -s "Uuencode Test file" mymail@hotmail.com

coderetour=$?

if [ $coderetour -ne 0 ]
....
  #4 (permalink)  
Old 03-15-2006
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
Your script looks fine to me and works on my side. What is your mail server? A Windows box or your Unix box? Try to send that mail to another Unix account to see if it has something to do with mail going out?
  #5 (permalink)  
Old 03-15-2006
mvalonso mvalonso is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 17
As I said before, the same script has been working fine for quite some time.
The only evident difference I can think of is that it's growing in size. Nowadays it's measuring more than 3MB.
Can this have something to do? Should this be a problem?
  #6 (permalink)  
Old 03-15-2006
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
That is why I am asking what your mail server is. It may not be your script if that script hasn’t changed. But it could be something to do with your mail sever not accepting mail with attachment bigger that 2 MB. Check your mail server too. Are you positive that they were no change to your mail server?
  #7 (permalink)  
Old 03-15-2006
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
You can test your SMTP server by telneting to port 25 and entering the EHLO command.
Code:
 $ telnet yourSMTPhost 25
Trying...
Connected to yourSMTPhost.yourdomain.com.
Escape character is '^]'.
220 message showing your mail service and version 
ehlo somedomain <== You type this in 
250-yourSMTPhost.yourdomain.com Hello [IP ADDRESS]
... some parameters ...
250-SIZE 2097152 <== This is what you are looking for (2 MB limit)
... some more parameters ...
250 OK
QUIT <== Don't forget to quit
Size is your limit.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0