Re: [Exim] Multiline SMTP error messages

Top Page
Delete this message
Reply to this message
Author: Jerry Jorgenson
Date:  
To: exim-users
Subject: Re: [Exim] Multiline SMTP error messages
> > How can I get Exim to stick the entire error on a single
> > line instead of breaking it up?


> Hmm. Looking at the code, all I can see is logic for splitting the
> message at embedded newlines, and this doesn't seem to have changed
> between 4.10 and 4.14. I can't see any code for splitting at
> non-newlines. What is your configuration that generates this message?


The code in question is in acl.c

  1621  /* Before giving an error response, take a look at the length of any user
  1622  message, and split it up into multiple lines if possible. */
  1623
  1624  if (rc != OK && *user_msgptr != NULL && Ustrlen(*user_msgptr) > 75)
  1625    {
  1626    uschar *s = *user_msgptr = string_copy(*user_msgptr);
  1627    uschar *ss = s;
  1628
  1629    for (;;)
  1630      {
  1631      int i = 0;
  1632      while (i < 75 && *ss != 0 && *ss != '\n') ss++, i++;
  1633      if (*ss == 0) break;
  1634      if (*ss == '\n')
  1635        s = ++ss;
  1636      else
  1637        {
  1638        uschar *t = ss + 1;
  1639        uschar *tt = NULL;
  1640        while (--t > s + 40)
  1641          {
  1642          if (*t == ' ')
  1643            {
  1644            if (t[-1] == ':') { tt = t; break; }
  1645            if (tt == NULL) tt = t;
  1646            }
  1647          }
  1648        if (tt == NULL) break;   /* Can't find anywhere to split */
  1649        *tt = '\n';
  1650        s = ss = tt+1;
  1651        }
  1652      }
  1653    }
  1654
  1655  return rc;
  1656  }
  1657
  1658  /* End of acl.c */



Note that it's only the windows version of Outlook that has the problem. It's
fine on Mac.

Jerry

Jerry Jorgenson
jerry@???
http://www.j3iss.com/