Tags:
archive_me1Add my vote for this tag create new tag
, view all tags
Would it be possible to change wiki::getEmailNotifyList to generate an RFC822 compliant TO: header? Currently multiple addresses are delimited by a space. The RFC requires a ','. Programs other than sendmail do not parse the current field correctly. Here is my temp hack to make it work.

my $x = 0;
foreach $line (@list){
if( $1 ){
	if ($x){
	  $list = "$list, $1";
	 }
	else{
		$list = "$list $1";
	}
	$x += 1;
 }
}

-- MikeThomas - 16 Nov 2000

Thanks for pointing out this bug. Change has been done as follows:

  foreach $line ( @list ) {
	 $line =~ s/\-\s+([A-Za-z0-9\-_\.\+]+\@[A-Za-z0-9\-_\.\+]+)/$1/go;
	 if( $1 ) {
		$list = "$list, $1";
	 }
  }
  $list =~ s/^[\s\,]*//go;
  $list =~ s/[\s\,]*$//go;

Commited to TWikiAlphaRelease, version 02 Dec 2000.

-- PeterThoeny - 25 Nov 2000

Topic revision: r2 - 2000-11-26 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.