Ensure that Reply-To isn't missing domain - we already do the same for the From heade...
[squirrelmail.git] / src / compose.php
index e7ed28e..3ba329b 100644 (file)
@@ -1627,6 +1627,8 @@ function deliverMessage(&$composeMessage, $draft=false) {
 
     $reply_to = '';
     $reply_to  = $idents[$identity]['reply_to'];
+    if (strpos($reply_to, '@') === FALSE)
+        $reply_to .= '@' . $domain;
     
     $from_addr = build_from_header($identity);
     $rfc822_header->from = $rfc822_header->parseAddress($from_addr,true);