[prev in list] [next in list] [prev in thread] [next in thread] 

List:       majordomo-users
Subject:    Re: MajorCool truncating restrict_post values
From:       Daniel Liston <dliston () sonny ! org>
Date:       2003-05-23 17:04:03
[Download RAW message or body]


Oooh!  Free Beer!?!  The "@" prefix to a variable name in perl indicates
a list.  This can be many lines or paragraphs or even pages long.  I will
sometimes read an entire file into an @variable.  Manipulate it in memory,
then spit the whole thing back out to disk with a print command.

Dan Liston

deb wrote:
> end
> Thanks, Dan!
> 
> No, I didn't miss the point. :-) 
> 
> I want to fix this particular problem.  We've made a design decision not to
> use a side file for restricted posts.  The problem (ie, the line truncation)
> only occurs went attempting to write a new $list.config file via MajorCool,
> it works fine with pnewconfig sent in email.  
> 
> Another thing I don't understand about the code in MC is @lines.  This may be
> a question for perl junkies, but I'll put out there anyway.  @lines contains
> all the configuration key_word=values, space delimited (I think.  When I print
> @lines, it looks space delimited).  I wish I understood how passing this to
> majordomo works correctly:
> 
> open(MAJORDOMO, "|$engine");
> 	select((select(MAJORDOMO), $|=1)[$[]);		# unbuffered
> 	print MAJORDOMO "From: $identity\n";
> 	print MAJORDOMO "To: $whoami\n\n";
> 	print MAJORDOMO @lines;
> 	close MAJORDOMO;
> 
> I"m probably missiing something somewhere else in the code, but if anyone is
> familiar with this and can explain it to me, I'll send you a beer.  :-)
> 
> deb
> 
> 
> Daniel Liston <dliston@sonny.org> had this to say,
> 
>> end
>> 
>> I think you missed Joe's point about that patch not being intended to be
>> used for more than a handful of local domains.  I will have to look at
>> the patch again myself, but it may allow @domain to be provided in the
>> listname-post file, then that file would be defined in the restrict_post
>> variable of the listname.config file.  listname-post does not need its
>> own special set of aliases, but the file will have to exist in the lists
>> directory before trying to modifiy it with majordomo subscribe and unsub
>> commands.
>> 
>> Dan Liston
>> 
>> Deb wrote:
>> >Hi Dan,
>> >
>> >I've posted this message 3X to the list, and I haven't seen it yet.  I 
>> >haven't
>> >been able to figure out what's wrong with it.  This last try, I put an 
>> >"end"
>> >at the beginning, in case administrivia is catching something, still no-go.
>> >
>> >Have you seen this post?  If not, would you mind posting it for me?  I've
>> >noticed that when my posts do reach the list, they take around 20 
>> >minutes...
>> >
>> >I know you're not the list-owner, but when I've sent a message to them, 
>> >I've
>> >gotten no response in the past.
>> >
>> >Thanks for your help.
>> >
>> >deb
>> >
>> >>From deb@tickleme.llnl.gov Fri May 23 05:44:24 2003
>> >Date: Fri, 23 May 2003 05:44:24 -0700
>> >From: deb <deb@tickleme.llnl.gov>
>> >To: Majordomo Users <majordomo-users@greatcircle.com>
>> >Subject: Re: MajorCool truncating restrict_post values
>> >Message-ID: <20030523124424.GA17356@tickleme.llnl.gov>
>> >Reply-To: deb@tickleme.llnl.gov
>> >User-Agent: Mutt/1.4i
>> >
>> >end
>> >
>> >Thanks, Joe.  Close, but no cigar.
>> >
>> >Already went down this path.  I set MAXLENGTH to 200, no change.  As I said
>> >in my earlier post, I've proved to myself that the entire path (included in
>> >@lines array and displayed to confirm when using the debug code) is 
>> >actually
>> >being sent to majordomo in the majordomo_command() subroutine.
>> >
>> >I didn't mention this before because I didn't want to muddy the waters, but
>> >I know this doesn't have anything to do with the restrict2domain patch,
>> >because we are also using multiple owners per some lists, and the number of
>> >characters gets truncated at the same length.
>> >
>> >Punt...
>> >
>> >deb
>> >
>> >
>> >Joe R. Jah <jjah@cloud.ccsf.cc.ca.us> had this to say,
>> >>
>> >>It is not 72 characters limitation in MajorCool, but 128 and that is set
>> >>on line 4412 of majorcool.pl:
>> >>
>> >>        elsif ($type eq "restrict_post") {
>> >>                $str .= "<INPUT TYPE=\"text\" NAME=\"cf_$key\"";
>> >>                $str .= " onFocus=\"cf_$key.select()\""
>> >>                        if $prefs{GenJavaScript};
>> >>                $str .= " VALUE=\"$value\" SIZE=64 MAXLENGTH=128>";
>> >>
>> >>You can increase MAXLENGTH value to your heart's content, but remember
>> >>that restrict2domain.1 patch is meant to allow a few domains and/or email
>> >>addresses, not a long list.  For a long list of email addresses you should
>> >>use Dan's idea and create a ListName-post list for every list you have.
>> >>
>> >>Regards,
>> >>
>> >>Joe
>> >
>> >
>> >
>> 
>> 
>> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic