]> andersk Git - moira.git/commitdiff
If someone has an exchange pobox, check if their imap filesystem exists
authorzacheiss <zacheiss>
Fri, 29 Aug 2008 16:54:04 +0000 (16:54 +0000)
committerzacheiss <zacheiss>
Fri, 29 Aug 2008 16:54:04 +0000 (16:54 +0000)
and put that server in hesiod.

gen/hesiod.pc

index 3b9955813b637dde1b4d16e7b86e27069dd676e9..317b0a264c43b0688d887137c8e0016e35b47949 100644 (file)
@@ -270,7 +270,15 @@ int do_passwd(void)
        }
 
       if (eid != 0)
-       pid = eid;
+       {
+         /* Check for IMAP.  Can't use iid because it should be zero. */
+         EXEC SQL SELECT mach_id INTO :mid FROM filesys
+           WHERE label = :login || '.po' AND type = 'IMAP';
+         if (sqlca.sqlcode == 0)
+           pid = mid;
+         else
+           pid = eid;
+       }
 
       if (iid != 0)
        {
This page took 0.699764 seconds and 5 git commands to generate.