From patchwork Sun Dec 11 11:39:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 704820 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tc3t505zmz9t0G for ; Sun, 11 Dec 2016 22:39:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=6wind-com.20150623.gappssmtp.com header.i=@6wind-com.20150623.gappssmtp.com header.b="KXJQxNKV"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tc3t34bl6zDw0g for ; Sun, 11 Dec 2016 22:39:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=6wind-com.20150623.gappssmtp.com header.i=@6wind-com.20150623.gappssmtp.com header.b="KXJQxNKV"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tc3sv5syqzDvym for ; Sun, 11 Dec 2016 22:39:46 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=6wind-com.20150623.gappssmtp.com header.i=@6wind-com.20150623.gappssmtp.com header.b="KXJQxNKV"; dkim-atps=neutral Received: by mail-wm0-x22a.google.com with SMTP id f82so27610872wmf.1 for ; Sun, 11 Dec 2016 03:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=N6g4DSaAscplonJIX66eISGE8rsfHLQLYTO0avPE6/k=; b=KXJQxNKVZ47w1Q+0uW2w5w2MmmBSVIpmoOQpjcGXmES7t7tWkiiDLMvxkfJH3PEaYx 3SFyNShTKukVB7zySziEJT5ZYU6T2bSUJ35cAJV/tG+lpxOE+Su1wWc7um0AC0/T8z3i ozzUUDm9RtNMPrCoeFZ/aAIU9bUYy0UaSZrUS3iFwhOoPp1yB/Ze/82WgPyQaXc47fMF QrxPKpCj0UAtmFca+B2iMP6uAlD9blqKCtqnrHRDryFTFUcZ0yeAuoFvJFMWC//5qo1H 2KUpQk9FxxCGvqgaxvMpzFd6TXw6C+A6pSz4rcngDK0x4AmK+LzxcaGlkz+UOdIlx/yq QcFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=N6g4DSaAscplonJIX66eISGE8rsfHLQLYTO0avPE6/k=; b=GdNvFA/n9eK2+vKZfXGhmsUllRlMzGcGmPGggrc+8yqCwK43DsdKCnVcxTvaLF+6Hw bdPrTS7vKWjW+tQK51qbX7wYz6Eg2gDTotQiNFAwBJnm/pMvgrXV1sygq0SxNRDTK+fl xuydI+PnXw0KvK7O4D5cv+aivdoaaNlKv5fGixJfy3deKCNNRJX8Fk9BXGzw5v/I/gpK uZnlBF0SIzmDI4msAXKBVZ8otLrgfbyafk0f5xtEMtp1PoIhFv2/OJrxQDZ71LCBb4HZ +4eg2ySixObgwcxUzsrJDXhIiFRYXFxJjpU8t3dZTvh4EDqAha81wWv8vOkgTFOEg96Y CPQA== X-Gm-Message-State: AKaTC00iUspuEiemjHXso7haPxNiBvfuQkL9GaIwan2BKVd7sBd04ifjp7FG1wMVDqA3Uu5V X-Received: by 10.28.224.5 with SMTP id x5mr4989584wmg.70.1481456380485; Sun, 11 Dec 2016 03:39:40 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id gk6sm51760868wjc.46.2016.12.11.03.39.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Dec 2016 03:39:39 -0800 (PST) From: Thomas Monjalon To: patchwork@lists.ozlabs.org Subject: [PATCH] views: Add List-Id to mbox Date: Sun, 11 Dec 2016 12:39:33 +0100 Message-Id: <1481456373-7488-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" The List-Id header is retrieved from the Project object. Fixes #53 Signed-off-by: Thomas Monjalon Reviewed-by: Andrew Donnellan --- patchwork/views/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patchwork/views/__init__.py b/patchwork/views/__init__.py index 58fb29f..db11e03 100644 --- a/patchwork/views/__init__.py +++ b/patchwork/views/__init__.py @@ -389,6 +389,7 @@ def patch_to_mbox(patch): if patch.delegate: mail['X-Patchwork-Delegate'] = str(patch.delegate.email) mail['Message-Id'] = patch.msgid + mail['List-Id'] = patch.project.listid mail.set_unixfrom('From patchwork ' + patch.date.ctime()) copied_headers = ['To', 'Cc', 'Date']