head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.44 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.42 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.40 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.38 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.36 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.34 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.32 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.30 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.28 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.26 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.24 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.22 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.20 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.18 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.16 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.14 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.12 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.10 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.8 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.6 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.4 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.2 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.5.0.72 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.68 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.48 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.70 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.66 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.64 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.62 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.60 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.58 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.56 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.54 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.52 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.50 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.46 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.44 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.42 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.40 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.38 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.36 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.34 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.32 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.30 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.28 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.26 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.24 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.22 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.20 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.18 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.16 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.14 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.12 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.10 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.8 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.6 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.4 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.2 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.4.0.2 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.3.0.4 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.2 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.2.0.2 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.1.1.1.0.68 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.66 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.64 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.62 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.60 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.58 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.56 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.54 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.52 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.50 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.48 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.46 pkgsrc-2008Q1:1.1.1.1.0.44 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.42 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.40 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.38 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-2007Q1:1.1.1.1.0.36 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.34 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.32 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.30 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-2006Q1:1.1.1.1.0.28 pkgsrc-2006Q1-base:1.1.1.1 pkgsrc-2005Q4:1.1.1.1.0.26 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.24 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.22 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.20 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.18 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.16 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.14 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 netbsd-1-4-PATCH002:1.1.1.1 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2020.12.20.12.50.44; author spz; state Exp; branches; next 1.5; commitid zKiasExpBACxStAC; 1.5 date 2011.10.28.06.16.12; author spz; state Exp; branches; next 1.4; 1.4 date 2011.08.27.15.47.43; author schnoebe; state Exp; branches 1.4.2.1; next 1.3; 1.3 date 2011.01.29.17.16.33; author spz; state Exp; branches; next 1.2; 1.2 date 2010.11.09.07.09.59; author spz; state Exp; branches; next 1.1; 1.1 date 99.06.08.17.51.26; author bad; state Exp; branches 1.1.1.1; next ; 1.4.2.1 date 2011.11.02.22.55.24; author tron; state Exp; branches; next ; 1.1.1.1 date 99.06.08.17.51.26; author bad; state Exp; branches; next ; desc @@ 1.6 log @majordomo: make the List-Id header RFC2919 compliant @ text @$NetBSD: patch-ai,v 1.5 2011/10/28 06:16:12 spz Exp $ Quiet messages from perl 5.14.1, this is very old code. Be RFC2919 compliant (List-Id) Add Mail-Reply-To and Mail-Followup-To headers --- resend.orig 2000-01-07 15:32:39.000000000 +0000 +++ resend @@@@ -71,15 +71,15 @@@@ if ($ARGV[0] =~ /^\@@/) { # getopts.pl was place where it's supposed to be. This changes previous # behavior which allowed getopts.pl to be in the same place as # majordomo.cf. -require "getopts.pl"; -&Getopts("C:c:Aa:df:h:I:l:M:p:Rr:s") || die("resend: Getopts() failed: $!"); +use Getopt::Std; +getopts("C:c:Aa:df:h:I:l:M:p:Rr:s") || die("resend: Getopts() failed: $!"); if (! defined($opt_l)) { die("resend: must specify '-l list'"); } -# Read and execute the .cf file -$cf = $opt_C || $opt_c || $ENV{"MAJORDOMO_CF"} || "/etc/majordomo.cf"; +# Read and execute the .cf file. For security reasons, let the environment win +$cf = $ENV{"MAJORDOMO_CF"} || $opt_C || $opt_c || "/etc/majordomo.cf"; # Despite not having a place to send the remains of the body, # it would be nice to send a message to root or postmaster, at least... @@@@ -92,8 +92,8 @@@@ require "$cf"; chdir($homedir) || die("Can't chdir(\"$homedir\"): $!"); +unshift(@@INC, $bindir); unshift(@@INC, $homedir); -require "ctime.pl"; # For logging purposes require "majordomo.pl"; require "majordomo_version.pl"; require "config_parse.pl"; @@@@ -316,7 +316,7 @@@@ $is_admin_header .= "\$taboo = \"\";\n}; if (! defined($admin_body)) { &bitch("resend: \$admin_body not defined in $cf !!\n" . "Majordomo will only catch \"subscribe\" and \"unsubscribe\" in\n" . - "the body.\nLook at $homedir/sample.cf for a good definition."); + "the body.\nLook at $bindir/sample.cf for a good definition."); @@admin_body = ('/^subject:\s*subscribe\b/i' , '/^subject:\s*unsubscribe\b/i'); } else { @@@@ -747,12 +747,20 @@@@ sub parse_header { # add new header fields print OUT "Sender: $sender\n"; + print OUT "List-Id: <".$opt_l.".".$whereami.">\n"; + if (defined($opt_p)) { print OUT "Precedence: $opt_p\n"; } if (defined($opt_r)) { print OUT "Reply-To: ", &config'substitute_values($opt_r), "\n"; #'; + if (defined $reply_to) { + print OUT "Mail-Reply-To: $reply_to\n"; #'; + } else { + print OUT "Mail-Reply-To: $from\n"; #'; + } + print OUT "Mail-Followup-To: ", &config'substitute_values($opt_r), "\n"; #'; } # print out per-list additonal headers @ 1.5 log @perl 5.14 adjustment: drop using ctime.pl just for a list of months @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.4 2011/08/27 15:47:43 schnoebe Exp $ d3 3 a5 1 Quite messages from perl 5.14.1, this is very old code. d52 1 a52 1 + print OUT "List-Id: ".$opt_l.".".$whereami."\n"; @ 1.4 log @Remove the uses of ctime.pl and getopts.pl, since those are going away soon. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.3 2011/01/29 17:16:33 spz Exp $ d27 1 a27 1 @@@@ -92,6 +92,7 @@@@ require "$cf"; d33 1 a33 1 require "ctime.pl"; # For logging purposes d35 3 a37 1 @@@@ -316,7 +317,7 @@@@ $is_admin_header .= "\$taboo = \"\";\n}; d46 1 a46 1 @@@@ -747,12 +748,20 @@@@ sub parse_header { @ 1.4.2.1 log @Pullup ticket #3590 - requested by spz mail/majordomo: fix compatibility with "lang/perl5" Revisions pulled up: - mail/majordomo/Makefile 1.44 - mail/majordomo/distinfo 1.16 - mail/majordomo/patches/patch-ad 1.3 - mail/majordomo/patches/patch-ai 1.5 - mail/majordomo/patches/patch-aj 1.3 - mail/majordomo/patches/patch-an 1.3 --- Module Name: pkgsrc Committed By: spz Date: Fri Oct 28 06:16:12 UTC 2011 Modified Files: pkgsrc/mail/majordomo: Makefile distinfo pkgsrc/mail/majordomo/patches: patch-ad patch-ai patch-aj patch-an Log Message: perl 5.14 adjustment: drop using ctime.pl just for a list of months @ text @d1 1 a1 1 $NetBSD$ d27 1 a27 1 @@@@ -92,8 +92,8 @@@@ require "$cf"; d33 1 a33 1 -require "ctime.pl"; # For logging purposes d35 1 a35 3 require "majordomo_version.pl"; require "config_parse.pl"; @@@@ -316,7 +316,7 @@@@ $is_admin_header .= "\$taboo = \"\";\n}; d44 1 a44 1 @@@@ -747,12 +747,20 @@@@ sub parse_header { @ 1.3 log @stop majordomo from chowning /var/tmp to user majordom due to a superannuated default in mk/defaults/mk.conf remove the non-shared defaults and put in the setting that actually gets used by more than one package (namely, MAJORDOMO_HOMEDIR) don't make the majordom user own more than it actually needs to make resend, archive, request-answer and medit honor the MAJORDOMO_CF environment variable over the command line option, so that someone calling these via the wrapper (which sets the environment variable) can't make the majordom user execute random perl code by specifying it as config file. Thanks to salo for finding this issue. @ text @d1 3 a3 1 $NetBSD$ d7 10 a16 1 @@@@ -78,8 +78,8 @@@@ if (! defined($opt_l)) { @ 1.2 log @add List-Id:, Mail-Reply-To: and Mail-Followup-To: headers fix copying of majordomo.cf bump pkgrev @ text @d5 11 @ 1.1 log @Initial revision @ text @d3 4 a6 3 --- ./resend.orig Wed Aug 27 08:59:24 1997 +++ ./resend Tue Jun 8 10:55:13 1999 @@@@ -93,4 +93,5 @@@@ d12 3 a14 1 @@@@ -316,5 +317,5 @@@@ d21 22 @ 1.1.1.1 log @Initial import of pkg for majordomo-1.94.4, the popular mailing list manager. Packaged by Brook Milligan brook@@trillium.NMSU.Edu. @ text @@