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.2/keymerge");
30 @mergedata = <MERGEOUT>;
37 my ($inheader, %syncsites, $subject, $from, $replyto, @body, @syncmail);
44 if (/^Subject:\s*(.*)\s*$/i) {
46 } elsif (/^X-KeyServer-Sent:\s*(.*)\s*$/i) {
48 } elsif (/^From:\s*(.*)\s*$/i) {
50 } elsif (/^Reply-To:\s*(.*)\s*$/i) {
61 # HELP, ADD, INCREMENTAL, VERBOSE INDEX <keyid>, INDEX <keyid>, GET <keyid>,
64 if ($subject =~ /^INCREMENTAL$/i) {