Re: Procmail filtering question

Chris Pollock <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <[email protected]>
On Tue, 2020-05-26 at 11:36 +0100, Richard Kimber via Fetchmail-users
wrote:
> I'm running fetchmail -> procmail -> local directories read by Claws
> on
> Ubuntu 20.04
> 
> I'm having some problems filtering email messages by Subject using
> procmail
> 
> "Normal" text Subjects of the form:
> Subject: News on Coronavirus
> are no problem. But there are a lot of messages nowadays that are
> displayed in Claws as:
> 
> Subject: Update from GOV.UK – Coronavirus Statutory Sick Pay ... etc
> 
> but where the subject in the message itself is actually in the form:
> 
> Subject:
> =?UTF-8?Q?Update_from_GOV.UK_=E2=80=93_Coronavirus_Statutory_Sick_P?=
> =?UTF-8?Q?ay_Rebate_Scheme:_service_availability_and_issues?= 
> (the above is all one line)
> 
> Does anyone know if there is some generic way of ensuring that
> messages
> are passed to procmail in the "normal" format so that I may reliably
> and
> straightforwardly construct procmail matching rules (i.e. without
> having to inspect the message source each time)?
> 
> - Richard.

Are any of these helpful?


https://stackoverflow.com/questions/29715013/decode-the-utf8-to-iso-8859-1-mail-subject-to-text-in-procmailrc-file

https://www.mhonarc.org/archive/html/procmail/2015-10/msg00003.html


-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
09:37:29 up 22:36, 1 user, load average: 0.83, 0.72, 0.74
Description:	Ubuntu 18.04.4 LTS, kernel 5.3.0-53-generic

_______________________________________________
Fetchmail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fetchmail-users
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQREHXG8cn0LHOwfaznjcqfamOZwXAUCXs576QAKCRDjcqfamOZw
XLLzAJ0XnJiFA21kN+WajwL7biWJD71BCwCdHS3a6RlpbCZVpLB2EiQzk7iKmEk=
=drB6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.