tools: Call sendmail directly from the wks tools.
authorWerner Koch <wk@gnupg.org>
Sat, 2 Jul 2016 22:41:30 +0000 (00:41 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 2 Jul 2016 22:41:30 +0000 (00:41 +0200)
commit7705f310f1406fe49b45e16c371b09863313f24f
tree1b49d277ef1b6dd05a4c03f9cc73a0a35eea7cdb
parentc619035d9cd0c9cef62facf5365321289051f9a0
tools: Call sendmail directly from the wks tools.

* tools/send-mail.c, tools/send-mail.h: New.
* tools/wks-util.c: New.
* tools/Makefile.am (gpg_wks_server_SOURCES): Add them.
(gpg_wks_client_SOURCES): Ditto.
* tools/gpg-wks.h (opt): Add fields use_sendmail and output.
* tools/gpg-wks-client.c: Add options --send and --output.  Rename
command --send to --create.
(command_send, send_confirmation_response): Output via wks_send_mime.
* tools/gpg-wks-server.c:  Add options --send and --output.
(send_confirmation_request): Output via wks_send_mime.
(check_and_publish): Add hack for name-value bug.
--

With this code, a dedicated user on the server along with a procmail
script, it was possible to run a basic test.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/Makefile.am
tools/gpg-wks-client.c
tools/gpg-wks-server.c
tools/gpg-wks.h
tools/send-mail.c [new file with mode: 0644]
tools/send-mail.h [new file with mode: 0644]
tools/wks-util.c [new file with mode: 0644]