Fix #3691: unixhierarchysep is now obeyed when printing the mailbox name
Fix for #3693
- Added check that causes IMAP_MAILBOX_BADNAME if virtdomains is
  disabled and the mboxname contains a '@'
config2header: Replace invalid characters

The sieve extension 'vacation-seconds' contains a dash, which is not an
allowed character for C identifiers [A-Z_a-z][0-9A-Z_a-z]*.
Replace all other characters by _ when generating IMAP_ENUMs.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Change vacation day to seconds

In preparation for RFC6131 (draft-ietf-sieve-vacation-seconds) change
the vacation time from days to seconds.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Add VACATION :seconds support

Add support for specifying the vacation time in seconds in addition to
days.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Make min/max VACACTION response configurable

Add imapoptions to change the minimum and maximum allowed time interval
between consecutive vacation responses.
The defaults are still 3 and 90 days, which are too high for the
vacation-seconds extension. Blindly lowering the limit might be
problematic for high traffic sites.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Makefile.am: build notify_zephyr.c only when libzephyr is found

-- configure.ac: add AM_CONDITIONAL(ZEPHYR, when libzephyr is found)
                 delete ZEPHYR_CPPFLAGS as they are nowhere used
Allow a result attribute to be specified with ptclient/ldap.c
Merge remote-tracking branch 'osowski/ticket/3693'

Closes #3693: virtdomains: off should return 'invalid mailbox name'
  when '@' included in mailbox name
Merge remote-tracking branch 'osowski/ticket/3691'

Closes #3691: unexpunge: output ignores unixhierarchysep setting
Makefile.am: compress COM_ERR_LIB and COM_ERR_LIBS into one variable

... COM_ERR_LIBS, which is set to something useful in ./configurue,
when external libcom_err is used, or to "" otherwise.  In Makefile.am
COM_ERR_LIBS is extended with com_err/et/libcom_err, when the bundled
libcom_err is used.
Add support for RFC6131: Sieve Vacation Extension: "Seconds" Parameter

Merge branch 'dev/sieve/vacation-seconds'

* dev/sieve/vacation-seconds:
  Make min/max VACACTION response configurable
  Add VACATION :seconds support
  Change vacation day to seconds
  config2header: Replace invalid characters
tools/jenkins-build: make maintainer-clean before build

Instead of performing "make distclean" before each rebuild, do "make
maintainer-clean".  This leads to deleting and regenerating even more
files and cleaner build.

The cause for the change is the fact, that sieve/sieve.c is for some reason
not updated when sieve/sieve.y is changed.
tools/jenkins-build.sh: ./configure with --enable-maintainer-mode

... so that imap/rfc822_header.[ch] can be rebuild at every run.
mappedfile: use off_t and ssize_t where appropriate
retry: use ssize_t
mailbox: lock the cyrus.index properly again

It means we're not duplicating the lock logic all over the place
Fix memleak in cyrusdb flat

when a db is opened but the file does not exist.  Introduced by recent
dbengine changes.
Fix mailbox leak in find_reserve_all error path.
Add %destructor for sieve commandlists

This fixes memory leaks in the sieve yacc parser, but unfortunately is
Bison-specific syntax.