From majordomo-workers-owner@greatcircle.com Tue Oct 29 08:31:56 2002 Received: from imail.ricis.com (imail.ricis.com [64.244.234.16]) by mycroft.greatcircle.com (Postfix) with ESMTP id DBE2F1959F4 for ; Tue, 29 Oct 2002 08:31:54 -0800 (PST) Received: from zadio.ricis.com [10.16.0.22] by imail.ricis.com (SMTPD32-7.13) id A95E1CB0128; Tue, 29 Oct 2002 10:37:50 -0600 Date: Tue, 29 Oct 2002 10:31:53 -0600 From: Lee Leahu To: majordomo-workers@greatcircle.com Subject: Majordomo: help with sendmail sub Message-Id: <20021029103153.615a2dba.lee@ricis.com> Organization: RICIS, Inc. X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Note: Send abuse reports to abuse@[(Private IP)]. X-Archive-Number: 200210/1 X-Sequence-Number: 7 I have been looking at the main'sendmail subroutines in the majordomo.pl file. local($MAIL) = shift; local($to) = shift; local($subject) = shift; local($from) = $mail_from; local($sender) = $mail_sender; # The following eval expands embedded variables like $sender local($mail_cmd) = eval qq/"$mail_prog"/; local($isParent); if ($#_ >= $[) { $from = shift; } if ($#_ >= $[) { $sender = shift; } If i print out the contents of $MAIL, it shows either as 'AUTH' or as 'REPLY' when a confirmation message is send to a user. What I want to do is be able to print out the actual message that is sent to the user. Can anyone explain how to do this? -- +----------------------------------+---------------------------------+ | Lee Leahu | voice -> 708-444-2690 | | Internet Technology Specialist | fax -> 708-444-2697 | | RICIS, Inc. | email -> lee@ricis.com | +----------------------------------+---------------------------------+ | I cannot conceive that anybody will require multiplications at the | | rate of 40,000 or even 4,000 per hour ... | | -- F. H. Wales (1936) | +--------------------------------------------------------------------+ From majordomo-workers-owner@greatcircle.com Tue Oct 29 08:40:43 2002 Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by mycroft.greatcircle.com (Postfix) with ESMTP id BC434195F33 for ; Tue, 29 Oct 2002 08:40:41 -0800 (PST) Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id g9TGeaE04935; Tue, 29 Oct 2002 10:40:36 -0600 To: Lee Leahu Cc: majordomo-workers@greatcircle.com Subject: Re: Majordomo: help with sendmail sub References: <20021029103153.615a2dba.lee@ricis.com> From: Jason L Tibbitts III Date: 29 Oct 2002 10:40:36 -0600 In-Reply-To: Lee Leahu's message of "Tue, 29 Oct 2002 10:31:53 -0600" Message-ID: Lines: 10 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200210/2 X-Sequence-Number: 8 >>>>> "LL" == Lee Leahu writes: LL> What I want to do is be able to print out the actual message that LL> is sent to the user. Can anyone explain how to do this? The routine you're looking at only opens a filehandle connected to the mailer program; the actual message will be printed to that filehandle somewhere after the place in the code where the routine is called. - J< From majordomo-workers-owner@greatcircle.com Tue Oct 29 09:07:10 2002 Received: from imail.ricis.com (imail.ricis.com [64.244.234.16]) by mycroft.greatcircle.com (Postfix) with ESMTP id 6C992195F47 for ; Tue, 29 Oct 2002 09:07:09 -0800 (PST) Received: from zadio.ricis.com [10.16.0.22] by imail.ricis.com (SMTPD32-7.13) id A1A110BE0152; Tue, 29 Oct 2002 11:13:05 -0600 Date: Tue, 29 Oct 2002 11:07:07 -0600 From: Lee Leahu To: Jason L Tibbitts III , majordomo-workers@greatcircle.com Subject: Re: Majordomo: help with sendmail sub Message-Id: <20021029110707.729466fb.lee@ricis.com> In-Reply-To: References: <20021029103153.615a2dba.lee@ricis.com> Organization: RICIS, Inc. X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Note: Send abuse reports to abuse@[(Private IP)]. X-Archive-Number: 200210/3 X-Sequence-Number: 9 Another idea I am thinking about would something likes this: -copy the contents of <> into a variable -search that variable for a confirm command maybe by -a pattern match if ($var =~ /confirm/) or something similar to that -copy the loop that does the parsing and have it run and check only for the confirm command before sendthing the control to the real loop -if it finds a confirm either -process the confirm requests first -dont create any replys at all Jason L Tibbitts III scribbled something about Re: Majordomo: help with sendmail sub: > >>>>> "LL" == Lee Leahu writes: > > LL> What I want to do is be able to print out the actual message that > LL> is sent to the user. Can anyone explain how to do this? > > The routine you're looking at only opens a filehandle connected to the > mailer program; the actual message will be printed to that filehandle > somewhere after the place in the code where the routine is called. > > - J< > -- +----------------------------------+---------------------------------+ | Lee Leahu | voice -> 708-444-2690 | | Internet Technology Specialist | fax -> 708-444-2697 | | RICIS, Inc. | email -> lee@ricis.com | +----------------------------------+---------------------------------+ | I cannot conceive that anybody will require multiplications at the | | rate of 40,000 or even 4,000 per hour ... | | -- F. H. Wales (1936) | +--------------------------------------------------------------------+ From majordomo-workers-owner@greatcircle.com Tue Oct 29 16:36:42 2002 Received: from calypso.bi.lt (calypso.bi.lt [213.226.153.10]) by mycroft.greatcircle.com (Postfix) with ESMTP id 4D254195A80 for ; Tue, 29 Oct 2002 16:36:41 -0800 (PST) Received: from dariaus (unknown [213.226.141.134]) by calypso.bi.lt (Postfix) with SMTP id 491421B37E0 for ; Wed, 30 Oct 2002 02:36:38 +0200 (GMT-2) From: "Dariusz" To: Subject: messages quantity limiting Date: Wed, 30 Oct 2002 02:36:34 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200210/4 X-Sequence-Number: 10 Hello, it seems that Majordomo does not have subj. function. In lists with "hot" themes such function may be very useful. Some people like writing but not reading. In my believe subj. can be power that could make polemic more constructive. If I have such list managing tool, my life would be much easier. I know perl a litle bit, so here how I imagine script doing such thing. Treat it just like an idea: ########## # $email -- email of subscriber # $path -- path to directory that holds current list data # $limit -- quantity limit (value can be retrieved from config file of the current list) @time = localtime; $file = $path.$time[5].sprintf("%.02u", $time[4]+1).sprintf("%.02u", $time[3]).'.txt'; open (FILE,$file); foreach $m () { if ($m eq $email) { $count += 1; } } close FILE; if ($count >= $limit) { do bounce; # calls bounce script } else { open (FILE,">>$file"); flock (FILE, 2); print FILE "$email\n"; flock (FILE, 8); close FILE; } From majordomo-workers-owner@greatcircle.com Tue Oct 29 19:52:36 2002 Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by mycroft.greatcircle.com (Postfix) with ESMTP id 52B3C195B42 for ; Tue, 29 Oct 2002 19:52:35 -0800 (PST) Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id g9U3qO408122; Tue, 29 Oct 2002 21:52:24 -0600 To: "Dariusz" Cc: Subject: Re: messages quantity limiting References: From: Jason L Tibbitts III Date: 29 Oct 2002 21:52:24 -0600 In-Reply-To: "Dariusz"'s message of "Wed, 30 Oct 2002 02:36:34 +0200" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200210/5 X-Sequence-Number: 11 >>>>> "v" == visatos writes: v> it seems that Majordomo does not have subj. function. What is "subj. function"? v> In my believe subj. can be power that could make polemic more v> constructive. But what is "subj"? v> I know perl a litle bit, so here how I imagine script doing such v> thing. Treat it just like an idea: It looks like you're trying to restrict the number of times a user can post. If so, Majordomo2 already does this via the "post_limits" configuration setting, and by providing you with various metrics relating to posting frequency in the access control language so that you can impose fine-grained access control. Instructions on checking Majordomo2 sources out of our CVS tree is available here: . - J<