]> andersk Git - moira.git/blobdiff - gen/pobox.dc
applied the patch from [887] in moira, to fix addresses that appeared
[moira.git] / gen / pobox.dc
index f0fd135a6d338dc6edfa6e8936af5ead6ce820d1..bba1e2ec09693416046349554070ed95db284da5 100644 (file)
@@ -14,6 +14,7 @@
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <ctype.h>
+#include <string.h>
 EXEC SQL INCLUDE sqlca;
 
 extern int errno;
@@ -99,6 +100,8 @@ char **argv;
                !strcasecmp(".local", string + i - 6)) {
                string[i-6] = 0;
                fprintf(out, "%s %s.mit.edu\n", id, string);
+           } else if ( !strchr(string, '@') ) {
+             fprintf(out, "%s %s@mit.edu\n", id, string);
            } else
              fprintf(out, "%s %s\n", id, string);
        }
This page took 0.061242 seconds and 4 git commands to generate.