[exim-dev] [Bug 638] New: rfc2047 encoding doesn't work corr…

Góra strony
Delete this message
Reply to this message
Autor: Dmitriy Kirhlarov
Data:  
Dla: exim-dev
Nowe tematy: [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly, [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly, [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly, [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly, [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly, [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly, [exim-dev] [Bug 638] rfc2047 encoding doesn't work correctly
Temat: [exim-dev] [Bug 638] New: rfc2047 encoding doesn't work correctly
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=638
           Summary: rfc2047 encoding doesn't work correctly
           Product: Exim
           Version: 4.68
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: bug
          Priority: medium
         Component: String expansion
        AssignedTo: nigel@???
        ReportedBy: dimma@???
                CC: exim-dev@???



RFC2047:
While there is no limit to the length of a multiple-line header
field, each line of a header field that contains one or more
'encoded-word's is limited to 76 characters.

I'm using exim for simple mail-lists system and want to add list name to
Subject with this rules:
headers_remove = Subject
headers_add = Subject: ${rfc2047:${sg \
{$h_subject:}{^(([^[]*\\[[^[]*\\] *)*)(.*)\$}{[${tr{$local_part}{_}{-}}] \$3}}}

It's work for short subjects, but with long I get one-line subject like:
Subject:
=?UTF-8?Q?=5Binfra=5D_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0?=
=?UTF-8?Q?=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1?=
=?UTF-8?Q?=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0?=
=?UTF-8?Q?=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C?=
=?UTF-8?Q?=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD?=
=?UTF-8?Q?=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5?=
=?UTF-8?Q?=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87?=
=?UTF-8?Q?=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE?=
=?UTF-8?Q?=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E?=
=?UTF-8?Q?_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1?=
=?UTF-8?Q?=8C=2E_=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=2E_=D0=BE=D1=87=D0=B5=D0?=
=?UTF-8?Q?=BD=D1=8C=2E_=D0=9E=D1=87=D0=B5=D0=BD=D1=8C_=D0=B4=D0=BB=D0=B8?=
=?UTF-8?Q?=D0=BD=D0=BD=D1=8B=D0=B9_subject_=D0=BF=D0=BE-=D1=80=D1=83=D1?=
=?UTF-8?Q?=81=D1=81=D0=BA=D0=B8?=

I test mutt, thunderbird, outlook, outlook express. No one can't show this
subject correctly, because, it's ONE line.

This bug was discussed in:
http://exim.org/mail-archives/exim-dev/2006-January/msg00015.html
http://exim.org/mail-archives/exim-dev/2006-January/msg00017.html


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email