]> git.openstreetmap.org Git - chef.git/commitdiff
RFC-formatted complainant address for easy copy/paste
authorpolarbearing <polarbearing@users.noreply.github.com>
Wed, 29 Apr 2020 16:22:26 +0000 (18:22 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Apr 2020 16:22:26 +0000 (18:22 +0200)
Add fully formatted complainant address to mail body for easy copy/pasting in responses
as discussed in the dwg.
( $reply_address can potentially be used for a Reply-To header )

cookbooks/dmca/files/default/html/index.php

index 33c28006e1fb1423dd2ca318e83ba59aa5888749..d81deb70ac3913087141caa51b60065b485dbdcf 100644 (file)
@@ -10,6 +10,8 @@ function process_data ($values) {
         $email_body = 'OpenStreetMap - Claim of Copyright Infringement form:'."\n\n";
         $email_body .= 'Automated Email - Form Posted.'."\n\n";
         $email_body .= print_r($values, true);
+        $reply_address = $values['name_first'].' '.$values['name_last'].' <'.$values['email'].'>';
+        $email_body .= 'Formatted address: '.$reply_address."\n\n";
         mail('dmca@osmfoundation.org','OSM Claim of Copyright Infringement', $email_body, 'From: OSMF Copyright Form <dmca@osmfoundation.org>', '-fdmca@osmfoundation.org');
 }
 ?>