[1957] in Moira

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

Re: calendar.gen

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Wed May 15 19:19:14 2002

Message-Id: <200205152319.TAA17944@vorpal-blade.mit.edu>
From: Jonathon Weiss <jweiss@MIT.EDU>
To: Garry Zacheiss <zacheiss@MIT.EDU>
cc: Mark Silis <mark@MIT.EDU>, moiradev@MIT.EDU
In-reply-to: Your message of "Wed, 15 May 2002 17:24:30 EDT."
             <200205152124.RAA02013@brad-majors.mit.edu> 
Date: Wed, 15 May 2002 19:19:11 -0400

> >> +    if (length($office_phone) == 5) {
> >> +	$office_phone = "617-25" . substr($office_phone, 0, 1) . "-" .
> >> +	    substr($office_phone, 1, 4);
> 
>    You need to be more careful here; some people have office phones
> listed as being in the 225 exchange, and this will do the wrong thing
> for them.  You might consider explicity checking for a leading 2, 3, or
> 8 in addition to checking that office_phone is length 5.

I didn't think there were '225' office phones, but more imporatantly
there are '452' office phones that use the 5 digit extention 2-XXXX.
See http://mit.edu/is/tel/numbers.html for the gory details.

	Jonathon


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