Lines Matching refs:line
386 mailerr("421", "Users should not be specified in command line if LMTP required");
783 bool eline; /* previous line was empty */
784 bool fullline = true; /* current line is terminated */
785 bool prevfl; /* previous line was terminated */
786 char line[2048];
820 line[0] = '\0';
822 while (fgets(line, sizeof(line), stdin) != (char *) NULL)
827 prevfl = fullline; /* preserve state of previous line */
828 while (line[line_len] != '\n' && line_len < sizeof(line) - 2)
833 if (prevfl && LMTPMode && line[0] == '.')
835 if (line[1] == '\n' ||
836 (line[1] == '\r' && line[2] == '\n'))
838 memcpy(line, line + 1, line_len);
842 /* Check to see if we have the full line from fgets() */
846 if (line[line_len - 1] == '\n')
849 line[line_len - 2] == '\r')
851 line[line_len - 2] = '\n';
852 line[line_len - 1] = '\0';
857 else if (line[line_len - 1] == '\r')
863 line[line_len - 1] = '\n';
874 if (prevfl && line[0] == '\n' && HeaderLength == 0)
890 if (prevfl && line[0] == '\n')
895 if (eline && line[0] == 'F' &&
897 !memcmp(line, "From ", 5))
903 (line[0] == 'C' || line[0] == 'c') &&
904 sm_strncasecmp(line, ContentHdr, 15) == 0)
907 ** be paranoid: clear the line
910 line[0] = '\0';
918 (void) fwrite(line, sizeof(char), line_len, fp);
941 if (fp != NULL && strchr(line, '\n') == NULL)
959 (void) sm_snprintf(line, sizeof line, "%lld\n",
961 (void) sm_strlcpy(&ContentHdr[16], line,