4 # onak-mail.pl - Mail processing interface for onak, an OpenPGP Keyserver.
6 # Written by Jonathan McDowell <noodles@earth.li>
7 # Copyright 2002 Project Purple
8 # Released under the GPL.
17 # Takes an armored OpenPGP stream and submits it to the keyserver. Returns the
18 # difference between what we just added and what we had before (ie the least
19 # data need to get from what we had to what we have).
23 my (@errors, @mergedata);
25 open3(\*MERGEIN, \*MERGEOUT, \*MERGEERR, "/home/noodles/onak-0.0.3/onak", "add");
30 @mergedata = <MERGEOUT>;
32 open (LOG, ">>/home/noodles/onak-0.0.3/keyadd.log");
39 my ($inheader, %syncsites, $subject, $from, $replyto, @body, @syncmail);
46 if (/^Subject:\s*(.*)\s*$/i) {
48 } elsif (/^X-KeyServer-Sent:\s*(.*)\s*$/i) {
50 } elsif (/^From:\s*(.*)\s*$/i) {
52 } elsif (/^Reply-To:\s*(.*)\s*$/i) {
63 # HELP, ADD, INCREMENTAL, VERBOSE INDEX <keyid>, INDEX <keyid>, GET <keyid>,
66 if ($subject =~ /^INCREMENTAL$/i) {