Isn't that sweet!  Thanks James

Highest Regards,

Rodney
www.rcrnet.net
918-358-1111
----- Original Message -----
From: "James Wright" <[EMAIL PROTECTED]>
To: "sambar List Member" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 1:39 PM
Subject: [sambar] Mailing List of Users {02}


> Not at present, but here's a little perl script to make a list of all your
> mailboxes and write it to a userlist.  Not certain but I'm sure it
requires
> the full Perl distribution.  Test it - then add it to your cron.
>
> make-list.pl
> #!/sambar/perl/bin/perl
>
>   $| = 1;
>
> # mail list directory
> $listdir = "c:/sambar/mail/maillist/siteusers";
> # user file
> $filename = "userlist1.txt";
> # path to mailboxes
> $path = "/sambar/mail/mbox2";
>
> $mlist = "$listdir/$filename";
>
> # if the userlist exists, we'll delete it first. otherwise it appends to
the
> bottom.
> if (-e $mlist) {
>  unlink ($mlist);
>  }
>
>   # read the directory
>   opendir (DIR, "$path");
>   @reports = grep(//,readdir(DIR));
>   closedir (DIR);
>
> open (FILE, ">>$mlist");
>  foreach $report(@reports) {
> # skip dot directories and the filter files  Add any additionals
> if ($report eq "." || $report eq ".." || $report =~ ".flt" || $report =~
> ".txt") {
>  } else {
>  print FILE "$report\n";
>   }
> }
>  close (FILE);
>
>  exit;
>
>
>
>
> ----- Original Message -----
> From: "Sambar Laerte" <[EMAIL PROTECTED]>
> To: "sambar List Member" <[EMAIL PROTECTED]>
> Sent: Thursday, January 02, 2003 10:44 AM
> Subject: [sambar] Mailing List of Users {01}
>
>
> > Hi all and Happy New Year. I've just read about the new b4 and later
i'll
> > upgrade!
> >
> > I want to know if exist a way to send an email to all users of my Sambar
> > system, just to send news. Ther's a way to use a mailing list without
> enter
> > manually the emails?
> > Thanks a lot!
> >
> > Giovanni Franchi
> > Laerte srl
> > www.laerte.it
> > Application Service Provider
> > -------------------------------------------------------
> > To unsubscribe please go to http://www.sambar.ch/list/
> >
> >
> >
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
>
>
>
-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/

Reply via email to