# # # patch "contrib/monotone-mail-notify-standalone.lua" # from [be58dde21383408beaafcda9dd51a86446f0838b] # to [89e0cd79a1a44761c15a9f3556e6b62313c6e605] # ============================================================ --- contrib/monotone-mail-notify-standalone.lua be58dde21383408beaafcda9dd51a86446f0838b +++ contrib/monotone-mail-notify-standalone.lua 89e0cd79a1a44761c15a9f3556e6b62313c6e605 @@ -13,7 +13,7 @@ _errfile = "/tmp/processor-err" _outfile = "/tmp/processor-out" _errfile = "/tmp/processor-err" -_sender = "address@hidden" +_from = "address@hidden" function get_notify_recipients(branch) local emailfile = io.open(get_confdir() .. "/notify", "r") @@ -117,10 +117,14 @@ function note_netsync_end (session_id, s file:write(summarize_certs(rev_data)) file:close() local subject = make_subject_line(rev_data) - local from_header = "From: " .. rev_data["certs"]["author"][1] + local reply_to = "Reply-To: " + for j,auth in pairs(rev_data["certs"]["author"]) do + reply_to = reply_to .. auth + if j < # (rev_data["certs"]["author"]) then reply_to = reply_to .. ", " end + end for j,addr in pairs(rev_data["recipients"]) do - spawn_redirected(filename, _outfile, _errfile, "/usr/bin/mail", "-e", "-a", from_header, "-a", "Sender: " .. _sender, "-s", subject, addr) + spawn_redirected(filename, _outfile, _errfile, "/usr/bin/mail", "-e", "-a", reply_to, "-a", "From: " .. _from, "-s", subject, addr) end os.remove(filename)