create_tables.pgsql
changeset 15 1607f7b2dba9
parent 13 1d9bf63a86f7
child 20 55146c78b3fb
--- a/create_tables.pgsql	Sun Apr 06 21:36:00 2008 +0000
+++ b/create_tables.pgsql	Thu Apr 10 03:24:12 2008 +0000
@@ -90,9 +90,11 @@
 
 CREATE OR REPLACE VIEW dovecot_user AS
     SELECT local_part || '@' || domains.domainname AS userid,
-           domains.domaindir || '/' || uid AS home, uid, gid
+           uid, gid, domains.domaindir || '/' || uid AS home,
+           '~/' || maillocation.maillocation AS mail
       FROM users
-           LEFT JOIN domains USING (gid);
+           LEFT JOIN domains USING (gid)
+           LEFT JOIN maillocation USING (mid);
 
 CREATE OR REPLACE VIEW postfix_gid AS
     SELECT gid, domainname