[Popcon-developers] Bug#319273: marked as done (popularity-contest: should be able to send copies to From address)

Debian Bug Tracking System owner at bugs.debian.org
Thu Jul 28 23:48:08 UTC 2005


Your message dated Fri, 29 Jul 2005 01:43:14 +0200
with message-id <E1DyI1y-0003za-B0 at saruman.uio.no>
and subject line popularity-contest: should be able to send copies to From address
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Jul 2005 20:41:11 +0000
>From metaur at telia.com Wed Jul 20 13:41:11 2005
Return-path: <metaur at telia.com>
Received: from pne-smtpout1-sn2.hy.skanova.net [81.228.8.83] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1DvLNO-0002Zn-00; Wed, 20 Jul 2005 13:41:11 -0700
Received: from 81-224-175-215-o1123.tbon.telia.com (81.224.175.215) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1)
        id 42BFBBD2003DFE9A; Wed, 20 Jul 2005 22:40:39 +0200
Received: from metaur by 81-224-175-215-o1123.tbon.telia.com with local (Exim 4.52)
	id 1DvLMk-0007U4-EO; Wed, 20 Jul 2005 22:40:30 +0200
Date: Wed, 20 Jul 2005 22:40:30 +0200
From: Ulf Harnhammar <metaur at telia.com>
To: submit at bugs.debian.org
Subject: popularity-contest: should be able to send copies to From address
Message-ID: <20050720204030.GA28754 at localhost.localdomain>
Reply-To: metaur at telia.com
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="vkogqOf2sHV7VnPd"
Content-Disposition: inline
X-Blog-URL: http://www.advogato.org/person/metaur/
User-Agent: Mutt/1.5.9i
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02


--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Subject: popularity-contest: should be able to send copies to From address
Package: popularity-contest
Version: 1.30
Severity: wishlist
Tags: patch

Hello,

I want to see what popularity-contest does and what information is included in the
mails that it sends. Therefore, I wrote this simple patch that sends a copy of
the e-mails to the From address, if COPYTOFROMADDRESS is set to "yes".

Please consider including this patch in the program.

// Ulf Harnhammar

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages popularity-contest depends on:
ii  debconf [debconf-2.0]         1.4.52     Debian configuration management sy

Versions of packages popularity-contest recommends:
ii  cron                          3.0pl1-87  management of regular background p
ii  exim4                         4.52-1     metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.52-1     lightweight exim MTA (v4) daemon
pn  mime-construct                <none>     (no description available)

-- debconf information:
  popularity-contest/hostid-failed:
* popularity-contest/participate: true
  popularity-contest/use-http: true
                     ^^^^^^^^^^^^^^  (huh? a bug??)


--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="popcon.copytofromaddress.patch"

--- etc/cron.weekly/popularity-contest.old	2005-07-07 20:15:03.000000000 +0200
+++ etc/cron.weekly/popularity-contest	2005-07-20 20:16:31.088265344 +0200
@@ -11,6 +11,7 @@
 unset PARTICIPATE
 unset SUBMITURLS
 unset USEHTTP
+unset COPYTOFROMADDRESS
 
 # get configuration information
 . /usr/share/popularity-contest/default.conf
@@ -36,10 +37,15 @@
 
 do_sendmail()
 {
+	REALMAILTO="$MAILTO"
+	if [ "yes" = "$COPYTOFROMADDRESS" ]; then
+		REALMAILTO="$MAILTO, $MAILFROM"
+	fi
+
 	if [ -n "$MAILFROM" ]; then
-		sendmail -oi -f "$MAILFROM" "$MAILTO"
+		sendmail -oi -f "$MAILFROM" "$REALMAILTO"
 	else
-		sendmail -oi "$MAILTO"
+		sendmail -oi "$REALMAILTO"
 	fi
 }
 

--vkogqOf2sHV7VnPd--

---------------------------------------
Received: (at 319273-done) by bugs.debian.org; 28 Jul 2005 23:43:22 +0000
>From pre at saruman.uio.no Thu Jul 28 16:43:22 2005
Return-path: <pre at saruman.uio.no>
Received: from pat.uio.no [129.240.130.16] (7411)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1DyI25-0005jD-00; Thu, 28 Jul 2005 16:43:22 -0700
Received: from mail-mx4.uio.no ([129.240.10.45])
	by pat.uio.no with esmtp (Exim 4.43)
	id 1DyI21-0004iJ-28
	for 319273-done at bugs.debian.org; Fri, 29 Jul 2005 01:43:17 +0200
Received: from saruman.uio.no ([129.240.201.202])
	by mail-mx4.uio.no with esmtp (Exim 4.43)
	id 1DyI1y-0007dM-RD; Fri, 29 Jul 2005 01:43:14 +0200
Received: from pre by saruman.uio.no with local (Exim 4.44)
	id 1DyI1y-0003za-B0; Fri, 29 Jul 2005 01:43:14 +0200
To: 319273-done at bugs.debian.org
Subject: Re: popularity-contest: should be able to send copies to From address
From: Petter Reinholdtsen <pere at hungry.com>
Message-Id: <E1DyI1y-0003za-B0 at saruman.uio.no>
Sender: Petter Reinholdtsen <petter.reinholdtsen at usit.uio.no>
Date: Fri, 29 Jul 2005 01:43:14 +0200
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.691, required 12,
	autolearn=disabled, ALL_TRUSTED -2.82, AWL 2.13,
	UIO_MAIL_IS_INTERNAL -5.00)
Delivered-To: 319273-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02


[Ulf Harnhammar]
> Then my patch isn't really necessary.

OK.  I'm closing this bug as it is only a misunderstanding.



More information about the Popcon-developers mailing list