[887] in Moira

home help back first fref pref prev next nref lref last post

bug in pobox.gen

daemon@ATHENA.MIT.EDU (dkk@MIT.EDU)
Thu May 18 10:17:16 1995

From: dkk@MIT.EDU
Date: Thu, 18 May 95 10:16:58 -0400
To: moiradev@MIT.EDU
Cc: moira-admin@MIT.EDU, wade@MIT.EDU

Four addresses (probe, bavicchi-lives, gaia and ciamac_mail) are
output by pobox.gen without the "@mit.edu" at the end.  (They foward
mail from_user->to_local_list: basch->probe, bavicchi->bavicchi-lives,
douzzer->gaia, ciamac->ciamac_mail.)  Here's a patch to remedy the
situation.  If I don't get any negative comments soon, I'll apply the
patch (to pobox.dc) in moiradev and opssrc, and install the new
version of pobox.gen on moira.

*** /mit/moiradev/src/gen/pobox.dc   Fri Nov 26 15:44:56 1993
--- /tmp/pobox.dc       Thu May 18 09:46:15 1995
***************
*** 14,19 ****
--- 14,20 ----
  #include <sys/stat.h>
  #include <sys/time.h>
  #include <ctype.h>
+ #include <string.h>
  EXEC SQL INCLUDE sqlca;
  
  extern int errno;
***************
*** 99,104 ****
--- 100,107 ----
                !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);
        }


-- 
David Krikorian, dkk@mit.edu, KA1NAP; MIT/IS/DCNS/Ops, APO, LSC, SIPB

home help back first fref pref prev next nref lref last post