Lines Matching defs:line
374 mailerr("421", "Users should not be specified in command line if LMTP required");
771 bool eline; /* previous line was empty */
772 bool fullline = true; /* current line is terminated */
773 bool prevfl; /* previous line was terminated */
774 char line[2048];
808 line[0] = '\0';
810 while (fgets(line, sizeof(line), stdin) != (char *) NULL)
815 prevfl = fullline; /* preserve state of previous line */
816 while (line[line_len] != '\n' && line_len < sizeof(line) - 2)
821 if (prevfl && LMTPMode && line[0] == '.')
823 if (line[1] == '\n' ||
824 (line[1] == '\r' && line[2] == '\n'))
826 memcpy(line, line + 1, line_len);
830 /* Check to see if we have the full line from fgets() */
834 if (line[line_len - 1] == '\n')
837 line[line_len - 2] == '\r')
839 line[line_len - 2] = '\n';
840 line[line_len - 1] = '\0';
845 else if (line[line_len - 1] == '\r')
851 line[line_len - 1] = '\n';
862 if (prevfl && line[0] == '\n' && HeaderLength == 0)
878 if (prevfl && line[0] == '\n')
883 if (eline && line[0] == 'F' &&
885 !memcmp(line, "From ", 5))
891 (line[0] == 'C' || line[0] == 'c') &&
892 sm_strncasecmp(line, ContentHdr, 15) == 0)
895 ** be paranoid: clear the line
898 line[0] = '\0';
906 (void) fwrite(line, sizeof(char), line_len, fp);
929 if (fp != NULL && strchr(line, '\n') == NULL)
947 (void) sm_snprintf(line, sizeof line, "%lld\n",
949 (void) sm_strlcpy(&ContentHdr[16], line,