Re: Maildrop and Utf-8

Sam Varshavchik <[email protected]> Wed, 02 Mar 2022 06:32:04 -0500
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--===============4013517285146761056==
Content-Type: multipart/signed;
    boundary="=_monster.email-scan.com-69598-1646220724-0001";
    micalg=pgp-sha1; protocol="application/pgp-signature"

This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_monster.email-scan.com-69598-1646220724-0001
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

andrew writes:

> Hi,
>
> I am running maildrop 3.0.7 and courier-unicode 2.2.3 under Slackware
> 64bit 15.0. My sequence of use is:
>
> getmail --> maildrop --> mailfilter --> mutt --> msmtp
>
> All works well but I have noticed that some characters are appearing
> incorrectly in the mailfilter log. For example I have sent myself an
> email with the following as Subject:
>
> =CE=BC=E1=BF=86=CE=BD=CE=B9=CE=BD =E1=BC=84=CE=B5=CE=B9=CE=B4=CE=B5 =CE=
=B8=CE=B5=E1=BD=B0 =CE=A0=CE=B7=CE=BB=CE=B7=CF=8A=CE=AC=CE=B4=CE=B5=CF=89 =
=E1=BC=88=CF=87=CE=B9=CE=BB=E1=BF=86=CE=BF=CF=82
>
> In the mailfilter log I see the following:
>
> Date: Wed Mar  2 17:09:44 2022
> From: andrew <[email protected]>
> Subj: =3D?utf-8?B?zrzhv4bOvc65zr0g4byEzrXOuc60zrUg?=3D
> File: /var/spool/mail/andrew                                            =20
> (1067)
>
> I maintain the build scripts for maildrop for Slackware and I am keen
> so know what I am doing incorrectly here.

You are not doing anything incorrectly. This is the actual subject line i=
n =20
the original message. It is whatever email client that you're using to re=
ad =20
your mail that's showing you this subject line in UTF-8. This is how non-=20
ASCII characters are encoded in Subject headers.

It was only a few years ago before there was any kind of a specification =
for =20
allowing native Unicode text in mail headers. It'll take a long time, but =
at =20
some point it will become common not to use this encoding scheme, and jus=
t =20
dump UTF-8 directly, in there.

Maildrop does the necessary decoding when pattern-matching, so patterns =20
should be specified in UTF-8, the only thing that it doesn't bother to do =
is =20
decode the subject line when logging it.

--=_monster.email-scan.com-69598-1646220724-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEMWrVnbBKLOeG9ifkazpiviedvyUFAmIfVbQACgkQazpivied
vyU4bQ/+Ku0sXeXo1u/pTDgOZbpVsvWv5IsM2O8+g7OPH9tjVS2JI+JWqeH0Es+B
tcEMMA0sJTgjvyfac8w73IpGu3MH4zfCcnPqiCf1NCe6gQWeSTYrWntYL+fBnUB7
IaunwP4jb3JU02IDPFjWDtMZ1nbGOhZLghiKr8IAoDzYBx2iigh0qZCUCV/esVz6
Os3CEQjHct/joX6BgyBO3yRfEelwlxkBUG6/Cy1VV68cB5CBCuIN1Tic6hlJf9Nb
uxGE44XQ66o97svNoiTU4MDY7gY7QD5dLq+KQ4MGp3nXENwMrCAA6z8lQphCRP+3
nMG1H/YCLWPOdcH78Hy7Z4mzNJFMwwEPmL72MddfHBD8ubaDiVrmYkdw7vF/2JX+
9gT5XNCvlkBCG4VfjmVh6Py+JEEi/cs9tFfALzI+O2f2h3mI21DFCOikbAW4/k/o
KhLq8kAcmTUZiq0ymcdgQXlM+l4pnx6oN4tq7oQ7syZ0R/9X2zoCXCRPB+P1JRus
/Ciy53qGCkmH45ELSUjDl0IfDLpkYJ5PSQwIdOD8P0+qn3nCPb0lbQiTRCPQumYn
3fzsPbJ87MHTX7kXzec52o2tiQLyegx9HngXvppIR8gSBJ7YOq/+aQqv1mvD5r9v
HOPBR57J0Sjg8knoVtbXit2wCkOBtBbC0gKeq9Mjbo65+/cteOU=
=4Ino
-----END PGP SIGNATURE-----

--=_monster.email-scan.com-69598-1646220724-0001--


--===============4013517285146761056==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4013517285146761056==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

--===============4013517285146761056==--