Great Circle Associates Majordomo-Users
(April 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Finding the reply-to address
From: debbie @ qsun . att . com (Deborah A Hamilton +1 908 949 9459)
Date: 27 Apr 94 14:26:00 GMT
To: majordomo-users @ greatcircle . com
Cc: jayb @ qsun . att . com
Original-cc: qsun!jayb
Original-from: qsun!debbie (Deborah A Hamilton +1 908 949 9459)

I'm in the process of installing majordomo ver 1.62 and have run
into the following problem.  Forgive me if this is a FAQ, but I
haven't had a chance to scan through all the list archives yet.

On our servers, when a mail message is sent to majordomo from a 
user on the same server, the message is formatted as in the 
following test message:

> From debbie Wed Apr 27 09:03:53 EDT 1994
> To: majordomo
> Subject: Test
> Status: R
>  
> help

It is bounced by majordomo with the following message:

> Majordomo@dstest.internic.net:  is not a valid return address.

In checking majordomo's header processing to build the $reply-to
address, the ParseMailHeaders subroutine in majordomo.pl only
checks for keywords that end in ":" which means it ignores the
"From xxxxxx" line.

For a quick and dirty fix, I patched majordomo.pl as follows:

> sub main'ParseMailHeader  ## Public
> {
>     local($save1, $save2) = ($*, $/);
>     local($FH, *array) =  @_;
>     local ($keyw, $val);
>  
>     %array = ();
>  
>     # force unqualified filehandles into callers' package
>     local($package) = caller;
>     $FH =~ s/^[^']+$/$package'$&/;
>  
>     ($*, $/) = (1, '');
>    $array = $_ = <$FH>;
>    s/\n\s+/ /g;
>  
>     @array = split('\n');
>     foreach $_ (@array)
>     {
>     #
>     # start patch to check for "From xxxx" in the mail header
>         if( m/^From\s*(\S*)\s*.*$/g )
>         {
>                 ($keyw, $val) = ("From", $1);
>         }
>         else
>         {
>                 ($keyw, $val) = m/^([^:]+):\s*(.*\S)\s*$/g;
>  
>         }
>     #  end patch
>     #
>  
>         $keyw =~ y/A-Z/a-z/;
> 

For security reasons, we've replaced sendmail with an internally
developed mail transport system which interacts with /bin/mail.

I was wondering if anyone else had experienced this problem and
why the "From " line is being ignored.  I need this patch since our
administrators will be interfacing with majordomo on the same
server.

Thanks,
Debbie Hamilton
InterNIC Directory and Database Services Support
AT&T Bell Laboratories
908-949-9459
debbie@qsun.att.com


Follow-Ups:
Indexed By Date Previous: sysvr4?
From: Craig Silva <craig@union3.su.swin.edu.au>
Next: Re: Finding the reply-to address
From: "Roger B.A. Klorese" <rogerk@unpc.queernet.org>
Indexed By Thread Previous: sysvr4?
From: Craig Silva <craig@union3.su.swin.edu.au>
Next: Re: Finding the reply-to address
From: "Roger B.A. Klorese" <rogerk@unpc.queernet.org>

Google
 
Search Internet Search www.greatcircle.com