[PATCH] views: Add List-Id to mbox

Andrew Donnellan andrew.donnellan at au1.ibm.com
Mon Dec 12 13:44:06 AEDT 2016


On 11/12/16 22:39, Thomas Monjalon wrote:
> The List-Id header is retrieved from the Project object.
>
> Fixes #53
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>

Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

> ---
>  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']
>

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the Patchwork mailing list