Koozali.org: home of the SME Server

Additional Line Feeds

Lowell F

Additional Line Feeds
« on: October 11, 2000, 10:02:22 AM »
For some reason I am experiencing additional line feeds from CGI scripts that automatically mail to my mail server.  I have checked and double checked the CGI scripts and find nothing there that is causing the problem.  I have started turning my attention to the mail program.   I am wondering if there is something in the settings of the mail server that could be adding these additional lines.
Any Ideas would be helpful.

Gordon Rowell

RE: Additional Line Feeds
« Reply #1 on: October 11, 2000, 03:40:53 PM »
Lowell F wrote:

> For some reason I am experiencing additional line feeds from
> CGI scripts that automatically mail to my mail server.  I have
> checked and double checked the CGI scripts and find nothing
> there that is causing the problem.  

Any chance that it is a CR/LF conversion issue - scripts taken
from a Windows machine and not stripped of the CR?

> I have started turning my
> attention to the mail program.   I am wondering if there is
> something in the settings of the mail server that could be
> adding these additional lines.

qmail will not modify the mail. I'd suggest changing your CGI to
write to a file and check what's written there.

Gordon

Lowell F

RE: Additional Line Feeds
« Reply #2 on: October 12, 2000, 10:34:40 AM »
Absolutely Correct!   The mail server in E-Smith was not changing things as suspected, and the CGI scripts were not at fault either.  The mail program was adding the line feeds as the files were transfered from the E-Smith server.  Deep investigation is a key to answers like this one.   The CGI scripts run wonderful.  Thanks Gordon!