Lines Matching full:gt
24 #include <sys/types.h>
25 #include <sys/stat.h>
26 #include <errno.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include <sysexits.h>
31 #include <unistd.h>
82 if ((priv->mlfi_connectfrom = strdup(ident)) == NULL)
114 if (priv->mlfi_helofrom != NULL)
115 free(priv->mlfi_helofrom);
116 priv->mlfi_helofrom = buf;
133 if ((priv->mlfi_fname = strdup("/tmp/msg.XXXXXX")) == NULL)
139 if ((fd = mkstemp(priv->mlfi_fname)) == -1)
145 if ((priv->mlfi_fp = fdopen(fd, "w+")) == NULL)
157 if (fprintf(priv->mlfi_fp, "Connect from %s (%s)\n\n",
158 priv->mlfi_helofrom, priv->mlfi_connectfrom) == EOF)
164 if (fprintf(priv->mlfi_fp, "FROM %s (%d argument%s)\n",
193 if (fprintf(priv->mlfi_fp, "RCPT %s -- REJECTED\n",
201 if (fprintf(priv->mlfi_fp, "RCPT %s (%d argument%s)\n",
220 if (fprintf(MLFIPRIV->mlfi_fp, "%s: %s\n", headerf, headerv) == EOF)
235 if (fprintf(MLFIPRIV->mlfi_fp, "\n") == EOF)
254 if (fwrite(bodyp, bodylen, 1, priv->mlfi_fp) != 1)
258 priv->mlfi_fname, strerror(errno));
301 if (priv->mlfi_fp != NULL && fclose(priv->mlfi_fp) == EOF)
305 priv->mlfi_fname, strerror(errno));
307 (void) unlink(priv->mlfi_fname);
314 p = strrchr(priv->mlfi_fname, '/');
316 p = priv->mlfi_fname;
328 (void) unlink(priv->mlfi_fname);
335 priv->mlfi_fname);
337 (void) unlink(priv->mlfi_fname);
341 if (priv->mlfi_fname != NULL)
342 free(priv->mlfi_fname);
356 if (priv->mlfi_connectfrom != NULL)
357 free(priv->mlfi_connectfrom);
358 if (priv->mlfi_helofrom != NULL)
359 free(priv->mlfi_helofrom);