View Issue Details

IDProjectCategoryView StatusLast Update
0010136mantisbtemailpublic2014-01-31 08:35
ReporterKirill Assigned Tograngeway  
PrioritynormalSeverityblockReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version1.2.0rc1 
Summary0010136: wrong email charset
Description

I install new mantis and check email send. I have wrong-mail. My Thunderbird can see this mail.

Thunderbird 2.0.0.19

From - Mon Feb 16 10:47:21 2009
X-Account-Key: account3
X-UIDL: 0000b5904652f58e
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-path: robotprod@XX.XX.XX.XX
Envelope-to: kkrasnov@XX.XX.XX.XX
Delivery-date: Mon, 16 Feb 2009 10:48:32 +0200
Received: from [XX.XX.XX.XX] (port=2864 helo=XX.XX.XX.XX)
by sangria.vester.ru with esmtpa (Exim 4.69)
(envelope-from robotprod@XX.XX.XX.XX)
id 1LYz9U-0002tA-Fn
for kkrasnov@XX.XX.XX.XX; Mon, 16 Feb 2009 10:48:32 +0200
Date: Mon, 16 Feb 2009 10:48:20 +0200
To: kkrasnov@XX.XX.XX.XX
From: Mantis Bug Tracker robotprod@XX.XX.XX.XX
Subject: =?utf-8?B?W9Ci0LXRgdGCIDAwMDE0NTRdOiDQn9GA0L7QstC10YDQutCwINGB0LLRj9C3
Message-Id: E1LYz9U-0002tA-Fn@XX.XX.XX.XX
X-Spam-Score: 1.2 (+)
X-Spam-Report: pts rule name description


3.0 BAD_ENC_HEADER         Message has bad MIME encoding in the header
-2.7 ALL_TRUSTED            Passed through trusted hosts only via SMTP
0.5 LONG_OBFU_MV           BODY: Very long words
1.0 SUSP_URL_MV            URI: Suspicious URL (contains "?")
-2.3 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
[score: 0.0000]
1.7 SUBJECT_EXCESS_BASE64  Subject: base64 encoded encoded unnecessarily

?=
=?utf-8?B?0Lg=?=
Message-ID: f56896aa60b6e7e15c474c3ecea957ba@XX.XX.XX.XX
X-Priority: 1
X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3]
keywords: =?utf-8?B?W9Ci0LXRgdGCXSDQotC10YHRgg==?=
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

?????????????????? ???????????????? ????????????:
======================================================================
https://XX.XX.XX.XX/bug/view.php?id=1454
======================================================================
??????????????????: ????????
????????????????:
======================================================================
????????????: ????????
?????????? ??????????????????: 1454
??????????????????: ????????
??????????????????????????????????: ???? ??????????????????????
??????????????????????: ??????????????
??????????????????: ??????????????
??????????????????: ??????????
======================================================================
????????????: 16-02-2009 10:48 EET
??????????????: 16-02-2009 10:48 EET
======================================================================
????????: ???????????????? ??????????
??????????????????????:
???????????????? ???????????? ??????????????
======================================================================

?????????????? ??????????????????
???????? ??????????????????????????????????????????????????
????????????????
======================================================================
16-02-09 10:48 ???????? ?????????? ????????????????

Tagsemail, error, phpmailer, utf8
Attached Files
Issue10136.patch (772 bytes)   
From bd332866bffabb95ee77bc7912b5d78e476674b0 Mon Sep 17 00:00:00 2001
From: Kirill Krasnov <krasnovforum@gmail.com>
Date: Mon, 23 Feb 2009 20:49:36 +0200
Subject: [PATCH] Issue 10136

---
 core/phpmailer/class.phpmailer.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/phpmailer/class.phpmailer.php b/core/phpmailer/class.phpmailer.php
index 437cd73..f691db2 100644
--- a/core/phpmailer/class.phpmailer.php
+++ b/core/phpmailer/class.phpmailer.php
@@ -246,7 +246,7 @@ class PHPMailer {
    * Provides the ability to change the line ending
    * @var string
    */
-  public $LE              = "\r\n";
+  public $LE              = "\n";
 
   /////////////////////////////////////////////////
   // PROPERTIES, PRIVATE
-- 
1.6.1.9.g97c34

Issue10136.patch (772 bytes)   

Relationships

related to 0016909 closeddregad Email notification in Russian doesn't work properly 

Activities

Kirill

Kirill

2009-02-16 04:20

reporter   ~0020861

When I set
$g_phpMailer_method = SMTP;
I have correctly body, but subject not decoded (because Thunderbird not correctly transform more then 1 subject)

Subject: =?utf-8?B?W9Ci0LXRgdGCIDAwMDE0NTRdOiDQn9GA0L7QstC10YDQutCwINGB0LLRj9C3 ?=
=?utf-8?B?0Lg=?=

Kirill

Kirill

2009-02-16 04:51

reporter   ~0020862

I copy phpmailer from 1.1.6 and I see correct mail.
I check 2 mail, what are diferent
In 1.2.x
Received: from [XX.XX.XX.XX] (port=3349 helo=terminal)
In 1.1.6
Received: from [XX.XX.XX.XX] (port=3380 helo=terminal.full_domain.com)

This not intresting.
Next too:
Date in 1.1.6 before To, in 1.2.x Date after Subject.
From in 1.1.6 after To, in 1.2.x From after Date.

But this intresting:
One subject in different version:
1.2.x:
Subject: =?utf-8?B?W9Ci0LXRgdGCIDAwMDE0NTRdOiDQn9GA0L7QstC10YDQutCwINGB0LLRj9C3 ?=
=?utf-8?B?0Lg=?=

1.1.6
Subject: =?utf-8?B?W9Ci0LXRgdGCIDAwMDE0NTRdOiDQn9GA0L7QstC10YDQutCwINGB0LLRj9C3?=
=?utf-8?B?0Lg=?=

One space before ?= in first line of subject

Kirill

Kirill

2009-02-16 05:34

reporter   ~0020863

I found bug..
https://sourceforge.net/tracker2/?func=detail&aid=2477013&group_id=26031&atid=385707

grangeway

grangeway

2009-02-28 11:23

reporter   ~0020962

Kirill,

Commited a fix for this to trunk. Please see if it works for you.

Paul

Kirill

Kirill

2009-03-01 00:34

reporter   ~0020964

For one test issue it's work.
I will look in next two days... And write results.

Kirill

Kirill

2009-03-02 14:53

reporter   ~0020978

I recieve normal email. Thnx, Paul.

Kirill

Kirill

2009-03-03 13:10

reporter   ~0020990

Today I recive much emails. They all very well. This topic can be resolved.
Thnx, Paul.

grangeway

grangeway

2009-04-08 10:07

reporter   ~0021433

Kirill: can you test trunk now it's on phpmailer5.0 ?

Kirill

Kirill

2009-04-08 11:17

reporter   ~0021443

one day please.. I download trunk, but not merge with my changes.

Kirill

Kirill

2009-04-09 08:32

reporter   ~0021452

????

Kirill

Kirill

2009-04-09 09:43

reporter   ~0021454

In my mantisbt I recieve email correct. Russian at default.
From this mantisbt I recieve this email http://easycaptures.com/4522804843

grangeway

grangeway

2009-04-13 14:31

reporter   ~0021495

Kirill, marking as resolved.

Paul

Related Changesets

MantisBT: master 2f3156bc

2009-02-28 11:21

Paul Richards


Details Diff
0010136: wrong email charset

Mailed upstream
Affected Issues
0010136
mod - core/phpmailer/class.phpmailer.php Diff File