Bug 26801 - cyrus port should add periodic file to prune deliverdb
Summary: cyrus port should add periodic file to prune deliverdb
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-23 19:20 UTC by Nick Sayer
Modified: 2003-04-06 01:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sayer 2001-04-23 19:20:00 UTC
The cyrus port takes no steps to insure the deliver databases are
properly pruned. This can be quite easily accomplished on a daily basis
by adding a periodic file to take care of this. This should be a model
for other ports that require daily/weekly/monthly actions. Why else did
we bother to break up the cron jobs into the /etc/periodic* structure?

Fix: 

The port/package should add this as /etc/periodic/daily/600.cyrus:

#!/bin/sh
#
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
	. /etc/defaults/periodic.conf
	source_periodic_confs
fi

if [ -x /usr/local/cyrus/bin/deliver ] ; then
	echo /usr/local/cyrus/bin/deliver -E 3 | su -m cyrus && rc=0 || rc=3
	rc=0
else
	echo "deliver isn't executable"
	rc=2
fi

exit $rc
Comment 1 Tetsurou Okazaki freebsd_committer freebsd_triage 2002-09-07 17:52:03 UTC
Responsible Changed
From-To: freebsd-ports->ume

Over to the maintainer of `mail/cyrus-imapd' and `mail/cyrus-imapd2'.
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2002-09-07 18:12:37 UTC
Responsible Changed
From-To: ume->freebsd-ports

This is not mine.  Though this PR mentions -E option of deliver, 
Cyrus IMAPd 2.X doesn't support it anymore.  It seems this PR 
is for mail/cyrus.
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2003-04-06 01:08:23 UTC
State Changed
From-To: open->closed

Commited, thanks! 
Bumped port-revision with one.