[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Update to notification script
From: |
Matthew Sackman |
Subject: |
[Monotone-devel] Update to notification script |
Date: |
Sun, 30 Sep 2007 17:07:06 +0100 |
User-agent: |
Mutt/1.5.16 (2007-06-11) |
Hi,
Right, well, due to the continuously locked mtn db for servers, it makes
notification scripts a bit more complex. The patch attached does roughly
the following:
1) The normal netsync hooks are used to construct files in _base. These
specify where emails should be sent which has not changed (notify
file in the confdir with the same structure as read_permissions).
2) Use cron or similar to call the .sh script. Make sure _base == $BASE
3) The .sh script reads the file and pulls from the server to a local
db. This should be unused by everyone else. It then does mtn parents,
mtn diff and uses source-highlight and mime-construct to build up one
email per new revision which is properly mime structured. The
resulting mime formatted mails have been testing in mutt,
thunderbird/icedove and gnus. Finally, it sends the mail.
Can someone have a look over this and commit it in please?
It's obviously *nix only. Hopefully, it's not bash only, but it may well
be (does sh have arrays?). Meh, if you care, you probably know how to
fix it ;-)
This is a patch against the existing
contrib/monotone-mail-notify-standalone.lua script as it's adding a load
of new features (diffs and proper structuring of the mail).
Matthew
--
Matthew Sackman
http://www.wellquite.org/
patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-devel] Update to notification script,
Matthew Sackman <=