LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Problems during the generation of email messages to Outlook (https://www.linuxquestions.org/questions/red-hat-31/problems-during-the-generation-of-email-messages-to-outlook-525722/)

augustosup 02-05-2007 06:17 AM

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

unSpawn 02-05-2007 07:12 AM

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"

augustosup 02-05-2007 07:21 AM

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.


All times are GMT -5. The time now is 04:05 PM.