The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

double spaced emails

Discussion in 'E-mail Discussions' started by AlaskanWolf, Sep 12, 2003.

  1. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    It seems within the last 10 days since i been gone, something went aray with MySQL/php.

    More then 1 server, all systems we use with PHP/MYSQL seem to be sending us emails in double spaced

    like this line 1

    like this line 2

    instead of

    line1
    line2

    anyone know what changed recently?? I know our code hasnt changed

    cPanel.net Support Ticket Number:
     
  2. sara

    sara Member

    Joined:
    Sep 11, 2002
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Exim 4.22 did it for us.

    To go back to Exim 4.20 we changed cpanel from Edge to Release and ran /scripts/exim4 ... and the double spacing vanished.

    cPanel.net Support Ticket Number:
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    From src/receive.c:

    There is at least one MUA (dtmail) that sends CRLF via this interface, and
    other programs are known to do this as well. Exim used to have a option for
    dealing with this: in July 2003, after much discussion, the code has been
    changed to default to treat any of LF, CRLF, and bare CR as line terminators.

    However, for the case when a dot on a line by itself terminates a message, the
    only recognized terminating sequences before and after the dot are LF and CRLF.
    Otherwise, having read EOL . CR, you don't know whether to read another
    character or not.

    Internally, in messages stored in Exim's spool files, LF is used as the line
    terminator. Under the new regime, bare CRs will no longer appear in these
    files.

    ===
    Basiclly exim now treats \r s as new lines.


    \r\n = two new lines instead of one. You shouldn't have a \r in a smtp transaction though. Generally it got there from a windows textbox.
     
  4. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    we got exim (exim-4.20-350_cpanel_stmpcontrol_antivirus_rewrite_mailman2)

    and its still happening to us

    cPanel.net Support Ticket Number:
     
  5. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    You really need to fix the php scripts to strip out lone carriage returns

    cPanel.net Support Ticket Number:
     
  6. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    Theres nothing to "fix" Nick. I told you time and time again, something changed in Cpanel in the last 10 days that is causing this

    I have numerious scripts and systems that have been affected by something cpanel did. I went hunting for 10 days and bam, every email sent by my scripts are sending double

    INCLUDING my helpdesk (DeskPro) and even YOUR helpdesk.

    The emails that are being sent out have not changed, they are taken straight from the sql db which i confirmed is "FINE", looking directly at the db, all lines are standard lines

    whatever changed in exim or something else screwed up these emails being sent.

    I will state again, theres nothing to fix and if there is, your talking TONS of CODE TO FIX

    cPanel.net Support Ticket Number:
     
  7. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    Nick

    The emails im talking about (namely my billing) comes directly from a table in mysql, theres no /rs or /ns anywhere to be found, the text is not hardcoded into the scripts, to that still doesnt fix the problm, how can i fix lines that dont have /r or /n ?????

    If i add /r or whatnot to my template emails, they simply show in the email being /r

    example

    Web Hosting Network/r

    Billing Department/r

    (I want to STRESS) its pulling directly from a MYSQL / PHP file, so its not hardcoded! so i cant add any /XXX
     
    #7 AlaskanWolf, Sep 13, 2003
    Last edited: Sep 13, 2003
  8. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    str_replace("\r\n", "\n", $text) fixes it. Annoying, yup.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page