4 messages in net.sourceforge.lists.courier-sqwebmail[sqwebmail] sv-make_timezonelist.pl n...
FromSent OnAttachments
Timothy Lee RodenNov 28, 2006 11:47 am 
Timothy Lee RodenNov 28, 2006 11:51 am 
Sam VarshavchikNov 28, 2006 3:17 pm 
Timothy Lee RodenNov 28, 2006 3:50 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] sv-make_timezonelist.pl now with NetBSD support!Actions...
From:Timothy Lee Roden (di@nixsys.bz)
Date:Nov 28, 2006 11:47:08 am
List:net.sourceforge.lists.courier-sqwebmail

Hello again,

I'm far from fluent in PERL; however, this seems to work:

diro@asche% diff sv-make_timezonelist.pl new_sv-make_timezonelist.pl 57a58,61

elsif ( $^O eq "netbsd" ) { $iso3166tab = "/usr/share/misc/domains" }

93,94c97,107 < open(ZONES, $zonetab) || < die "Could not open '$zonetab' for reading ($!)\n";

---

if ( open(ZONES, $zonetab) == 0 ) { if ( $^O eq "netbsd" ) { die "Could not open '$zonetab' for reading ($!). Currently, NetBSD does not install zone.tab by default. You must manually fetch sharesrc.tgz from the source of your version and extract zone.tab into /usr/share/zoneinfo\n"; } else { die "Could not open '$zonetab' for reading ($!)\n"; } }

Clean it up as you like.

The output is attached. Does this seem to be correct format for a whole list of zones? Toward the end, i saw some entries with a colon and description and i wasn't sure if that was valid.

Enjoy,

!tr