# # # rename "contrib/monotone-mail-notify-standalone.lua" # to "contrib/monotone-mail-notify.lua" # # rename "contrib/monotone-mail-notify-standalone.sh" # to "contrib/monotone-mail-notify.sh" # # patch "contrib/README" # from [a5a965b9b3fed717621b8c216ec226756a95e568] # to [b4cc0db3bdd3eea67bd29e0fc6b57c0eeae104de] # # patch "contrib/monotone-mail-notify.lua" # from [b451b8b6da1a0f92dcb9d372fe1935972f9eafaa] # to [f7912c79e41bff48c12b54e25bad92a03d5bc031] # ============================================================ --- contrib/README a5a965b9b3fed717621b8c216ec226756a95e568 +++ contrib/README b4cc0db3bdd3eea67bd29e0fc6b57c0eeae104de @@ -63,8 +63,11 @@ See individual files for licenses. command sequences. The lua code should be copied to a monotonerc file for use. - -- monotone-mail-notify-standalone.lua: a mail notification script which - runs without any other external dependencies than /usr/bin/mail and - offers an individual per-branch recipient configuration with a syntax - similar to the one found in ~/.monotone/read-permissions + -- monotone-mail-notify.lua: a mail notification script which offers an + individual per-branch recipient configuration with a syntax similar + to the one found in ~/.monotone/read-permissions. + It writes out details of each revision received to files which are then + picked up by the monotone-mail-notify.sh script which requires shell, + source-highlight and mime-construct to build nicely structured emails + with summaries of the revision and its diffs. ============================================================ --- contrib/monotone-mail-notify-standalone.lua b451b8b6da1a0f92dcb9d372fe1935972f9eafaa +++ contrib/monotone-mail-notify.lua f7912c79e41bff48c12b54e25bad92a03d5bc031 @@ -133,9 +133,11 @@ do if j < # (rev_data["certs"]["author"]) then reply_to = reply_to .. ", " end end - local outputFileRev = io.open(_base .. rev_data["revision"] .. os.time() .. ".rev.txt", "w+") - local outputFileHdr = io.open(_base .. rev_data["revision"] .. os.time() .. ".hdr.txt", "w+") + local now = os.time() + local outputFileRev = io.open(_base .. rev_data["revision"] .. now .. ".rev.txt", "w+") + local outputFileHdr = io.open(_base .. rev_data["revision"] .. now .. ".hdr.txt", "w+") + local to = "" for j,addr in pairs(rev_data["recipients"]) do to = to .. addr