Browse Source

Add User-Agent header

master
Damien Goutte-Gattat 10 years ago
parent
commit
8baa680248
  1. 8
      src/fmail.c

8
src/fmail.c

@ -191,9 +191,17 @@ main(int argc, char *argv[])
}
}
/* Generate automatic headers */
sb_addf(headers, "Date: %s\r\n", rfc2822_date());
sb_addf(headers, "User-Agent: fmail %s\r\n", VERSION);
/* Read user-provided headers. */
read_headers(stdin, headers);
/* Write all headers. */
fprintf(stdout, "%s\r\n", sb_get(headers));
/* Write encoded body. */
qp_encode_stream(stdin, stdout);
return EXIT_SUCCESS;

Loading…
Cancel
Save