I have file.out logfile which contain plain text and formated as
1abcdefghijklmnopqrstuvwxyz
2abcdefghijklmnopqrstuvwxyz
3abcdefghijklmnopqrstuvwxyz
<--------------------
4abcdefghijklmnopqrstuvwxyz
5abcdefghijklmnopqrstuvwxyz
6abcdefghijklmnopqrstuvwxyz
My problem is when I received it in my mail box the format is changed
OUTPUT in MAILBOX
1abcdefghijklmnopqrstuvwxyz 2abcdefghijklmnopqrstuvwxyz 3abcdefghijklmnopqrstuvwxyz
<---------------
4abcdefghijklmnopqrstuvwxyz
5abcdefghijklmnopqrstuvwxyz
6abcdefghijklmnopqrstuvwxyz
the first 1,2,3 is not supposed to be in a single line. while the 4,5,6 stays formated as is.
the file was originally sent by perl script using Mail:Sendmail module, but I also tried sending through mail command to test also.
cat file.out | mail -s reportfile email@email.com
cat file.out | mail -s reportfile email@email.com
got the same result. I've also check the file and there is no extra spaces or characters.
MS Outlook 2007 issue. resolve it with this: go to Tools > Preferences > Email > Email-Options >Message handling > "Remove extra line breaks in plain text messages".
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.