Control: retitle -1 should decode From header in news before storing them Control: tag -1 + newcomer
On Sun, 13 Dec 2015, Mattia Rizzolo wrote: > Package: tracker.debian.org > > I just found this news where the From line looks like: > From: > =?utf-8?b?Sm9zw6kgTC4gUmVkcmVqbyBSb2Ryw61ndWV6?=<jredr...@debian.org> > On the main page in the news panel looks really weird. > > https://tracker.debian.org/news/147876 So we need to decode the name part of the header... we have a function for this: distro_tracker.core.utils.email_messages.decode_header() And we need to apply it possibly before storage in the database, so basically in distro_tracker.core.models.EmailNews.get_email_parameters(). Then I'll have to manually fix the old news in the database... Cheers, -- Raphaël Hertzog ◈ Debian Developer Support Debian LTS: http://www.freexian.com/services/debian-lts.html Learn to master Debian: http://debian-handbook.info/get/