LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-05-2007, 06:17 AM   #1
augustosup
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
Problems during the generation of email messages to Outlook


Hi all,
I'm using the echo command to generate a log file (text file) with messages produced by a script. This file is then sent to the Outlook via the linux mail command. When I open the Outlook message, I see that after a number of lines, the next lines are writen without the new line caracter (\n).
Below is an example of what happens. After the message "... acervo19_b_domingo.tgz (home/bvssp/lildb-ht-dol-files-arouca.txt) - ok" , everything goes wrong. I've tried printf "\n ...", but the same thing happens. Is it a problem betwen the linux mail command and Outlook ?

... acervo17_b_domingo.tgz (home/bvssp/htdocs) - ok
... acervo18_b_domingo.tgz (home/bvssp/install) - ok
... acervo19_b_domingo.tgz (home/bvssp/lildb-ht-dol-files-arouca.txt) - ok ... acervo20_b_domingo.tgz (home/bvssp/lildb-ht-dol-files-bvssp.txt) - ok ... acervo21_b_domingo.tgz (home/bvssp/lildbi-dol-arouca.seq) - ok

Regards,
Augusto
 
Old 02-05-2007, 07:12 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try sending your output to a temporary file, replacing EOL chars and then sending it:
"output > tmpfile; unix2dos tmpfile && cat tmpfile | mail -s subject recipient-at-addr.ess && rm -f tmpfile"
 
Old 02-05-2007, 07:21 AM   #3
augustosup
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn
Try sending your output to a temporary file, replacing EOL chars and then sending it:
"output > tmpfile; unix2dos tmpfile && cat tmpfile | mail -s subject recipient-at-addr.ess && rm -f tmpfile"
I'm already doing it, but it's not working. After some tests, I realized that the problem is related to the line size - with short lines everything works well.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring Email from Outlook to Linux Email Client dbindel Linux - Software 5 07-24-2006 08:48 AM
How to open saved Outlook messages? foxy123 Linux - Software 2 01-30-2006 09:35 AM
Import Messages from Outlook Express 6 into Thunderbird Snump Linux - Software 1 12-31-2005 04:04 PM
How to Import Microsft outlook Email in any Red hat 9 Email mobassir Linux - Software 2 07-28-2003 10:42 AM
How to Import Microsft outlook Email in any Red hat 9 Email Software mobassir Linux - Software 0 07-26-2003 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration