The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
line length Sreejith_VK Shell Programming and Scripting 4 03-10-2008 10:46 AM
Find the length of the longest line panknil Shell Programming and Scripting 1 11-03-2007 05:43 AM
AWK - Line length validation en7smb Shell Programming and Scripting 3 05-09-2007 12:04 PM
grep line length limit hnhegde Shell Programming and Scripting 3 10-02-2006 12:47 PM
Fixing line length in a file dbessell UNIX for Advanced & Expert Users 2 08-04-2003 07:40 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-05-2003
brown_b brown_b is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 3
Question Mail attatchment line length

Hello,

I run a shell script to send an email with an attatchment by using metasend:

STAGEDIR=/live/data
MAILTO=brown_b@matalan.co.uk
MAILCC=brown_b@matalan.co.uk
#--------------------------------------------
SUBJECT='Matalan - Intrastat Report File'
TXTFILE=IntrastatReportEmailBody.txt
ATTFILE=$STAGEDIR/IntrastatReport.csv
echo 'Please find attached the Intrastat Report File from Pennine' > IntrastatReportEmailBody.txt
echo 'Please save the attached file with a .csv extension' >> IntrastatReportEmailBody.txt
echo 'Any problems please log a HEAT call and assign to Application Management' >> IntrastatReportEmailBody.txt
metasend -b -s "$SUBJECT" -f $TXTFILE -m text/plain -e none -n \
-f $ATTFILE -m text/plain -e none -t $MAILTO -c $MAILCC -S 1000000

Unfortunately my attatched file is altered in transit - each line exceeding 74 characters is rolled onto the next line. An = sign indicates this.

Any ideas about how I can prevent this?

Brendan
 

Bookmarks

Tags
sendmail

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 02:16 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