Skip to content

Instantly share code, notes, and snippets.

@jrom
Created December 9, 2009 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrom/252923 to your computer and use it in GitHub Desktop.
Save jrom/252923 to your computer and use it in GitHub Desktop.
--- courier-0.47/maildrop/main.C.orig 2004-11-22 12:23:09.000000000 +0100
+++ courier-0.47/maildrop/main.C 2004-11-22 12:23:19.000000000 +0100
@@ -718,38 +718,6 @@
++i;
}
-#if HAVE_COURIER
- if (deliverymode && orig_uid == getuid())
- {
- const char *p;
-
- if ((p=getenv("HOME")) && *p)
- maildrop.init_home=p;
-
- if ((p=getenv("LOGNAME")) && *p)
- maildrop.init_logname=p;
-
- if ((p=getenv("SHELL")) && *p)
- maildrop.init_shell=p;
-
- p=getenv("MAILDROPDEFAULT");
-
- if (!p || !*p)
- {
- p=getenv("LOCAL");
-
- if (p && *p)
- p=GetDefaultMailbox(p);
- else
- p="./Maildir";
- }
- maildrop.init_default=p;
-
- if ((p=getenv("MAILDIRQUOTA")) && *p)
- maildrop.init_quota=p;
- }
-#endif
-
if (deliverymode)
{
struct stat buf;
--- courier-0.47/debian/rules.orig 2004-11-22 12:22:44.000000000 +0100
+++ courier-0.47/debian/rules 2004-11-18 14:20:42.000000000 +0100
@@ -66,6 +66,10 @@
--with-cachedir=/var/cache/sqwebmail
--with-calendardir=/var/run/courier/calendar
--with-webadmindir=/usr/share/courier/webadmin
+ --enable-maildropmysql
+ --with-mysqlconfig=/etc/courier/maildropmysql.config
+ --enable-maildrop-gid=vmail
+ --enable-trusted-users="vmail postfix"
--enable-userdb
--enable-syslog=1
--enable-unicode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment