[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#424001: marked as done (Use RFC 2369 header for PTS subscription mails)



Your message dated Tue, 15 May 2007 14:24:19 +0200
with message-id <20070515122419.GB12645@ouaza.com>
and subject line Bug#424001: Use RFC 2369 List-Unsubscribe header for PTS subscription mails
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)

--- Begin Message ---
Package: qa.debian.org
Severity: minor
Tags: patch
User: debian-qa@lists.debian.org
Usertags: pts

Hi,

The mails that the PTS forwards when you're subscribed to a certain package 
currently include a "X-Unsubscribe" header:

> X-PTS-Package: squirrelmail
> X-PTS-Keyword: upload-source
> X-Unsubscribe: echo 'unsubscribe squirrelmail' | mail pts@qa.debian.org

The good news is that there's a RFC-defined header just for this: 
List-Unsubscribe, which some MUA's will handle automatically and conveys the 
same information.

Attached patch uses the List-Unsubscribe header.


Thijs
Index: dispatch.pl
===================================================================
--- dispatch.pl	(revision 1535)
+++ dispatch.pl	(working copy)
@@ -181,8 +181,8 @@
 $mail->head()->add("X-Loop", "$package\@packages.qa.debian.org");
 $mail->head()->add("X-PTS-Package", $package);
 $mail->head()->add("X-PTS-Keyword", $keyword);
-$mail->head()->add("X-Unsubscribe", 
-	"echo 'unsubscribe $package' | mail pts\@qa.debian.org");
+$mail->head()->add("List-Unsubscribe",
+	"<mailto:pts\@qa.debian.org?body=unsubscribe+$package>");
 
 # Forward the mail ... with a VERP header
 my $date = strftime('%Y%m%d', gmtime());

--- End Message ---
--- Begin Message ---
On Tue, 15 May 2007, Thijs Kinkhorst wrote:
> The good news is that there's a RFC-defined header just for this: 
> List-Unsubscribe, which some MUA's will handle automatically and conveys the 
> same information.
> 
> Attached patch uses the List-Unsubscribe header.

Applied. Thanks for the patch!

-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/

--- End Message ---

Reply to: