Reports changes in Zimbra calendars by mail. Each run compares the appointments of the configured calendars with the previous run and sends an HTML mail listing new, changed and deleted appointments.
./bootstrap # only in a git checkout
./configure
makeconfigure needs perl 5.26 or newer, a C compiler and the OpenSSL headers.
make installs the Perl modules from cpanfile into thirdparty/.
zimdiff runs from this directory: bin/zimdiff uses etc/ and var/ of
the tree. Skip make install; an installed copy keeps its state in a
directory owned by whoever ran the install, and a user timer cannot write
there.
cp etc/zimdiff.conf.dist etc/zimdiff.conf
chmod 600 etc/zimdiff.conf
$EDITOR etc/zimdiff.conf
bin/zimdiff # first run stores the current statezimdiff reads the calendars through CalDAV, logged in as zimbra.user. The
calendars of other accounts must be shared with that account.
An account with two factor authentication needs an application passcode; its regular password with an OTP does not work for zimdiff.
- In the Zimbra web client, open Preferences, Accounts.
- Under Two-step authentication, next to Applications, choose Add Application Code.
- Enter a name, for example
zimdiff, and choose Next. - Copy the passcode; Zimbra shows it only once.
- Put it in
etc/zimdiff.confaszimbra.password.
Zimbra accepts application passcodes for CalDAV, but not for its web client, SOAP or REST interfaces. To revoke the passcode, remove it from the same list.
To run it daily at 07:00 from a systemd user timer:
bin/zimdiff --install-service
loginctl enable-linger # also run while you are logged out
The timer runs this copy of bin/zimdiff, so keep the directory and its
thirdparty/ in place. --install-service=18:30 picks another time,
--uninstall-service removes the timer again.
bin/zimdiff --man documents the options and config keys.
The initial code was written by Tobi Oetiker tobi@oetiker.ch.
