View Issue Details

IDProjectCategoryView StatusLast Update
0010253mantisbtemailpublic2012-08-26 16:17
Reportertk Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version1.2.0a3 
Summary0010253: Duplicate newline in mantis mails (1.2.0a3)
Description

Since upgrade from 1.1.1. to 1.2.0a3 I see (in my outlook client)


Reproducibility: N/A

Severity: minor

Priority: normal

Status: confirmed

TagsNo tags attached.

Relationships

related to 0010200 closedsiebrand \n not replaced in registration e-mail 

Activities

tk

tk

2009-03-25 05:34

reporter   ~0021187

bad category -- should be "email"

jreese

jreese

2009-03-26 08:56

reporter   ~0021210

Perhaps related to 0010200

tk

tk

2009-04-02 07:34

reporter   ~0021372

Maybe the difference in the mail headers gives a hint:
In my 1.2.0a3 installation I see


X-Priority: 3

X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3]

keywords: ...

MIME-Version: 1.0

Content-Transfer-Encoding: 8bit

Content-Type: text/plain; charset="utf-8"

In my old 1.0.6 installation I have


X-Priority: 3

X-Mailer: PHPMailer [version 1.72]

MIME-Version: 1.0

Content-Transfer-Encoding: 8bit

Content-Type: text/plain; charset="windows-1252"

I assume that the charset my have impact.
What also bothers me a little is the difference in the phpmailer version (both mantis installations are operated on the same apache)

tk

tk

2009-04-02 08:26

reporter   ~0021373

Changing core/email_api.php L816 as

$mail->CharSet = $t_email_data->metadata['charset'];

$mail->CharSet = "windows-1252";


did not make any difference

tk

tk

2009-04-03 02:29

reporter   ~0021377

Now another experiment:

changin core/email_api.php L901:


function make_lf_crlf( $p_string ) {

$t_string = str_replace( "\n", "\r\n", $p_string );

return str_replace( "\r\r\n", "\r\n", $t_string );

#
$t_string = str_replace( "\n", "", $p_string );
return str_replace( "\r", "", $t_string );
}

gives


Project: Remote GraphicsIssue ID:

2245Category: BasissoftwareReproducibility:

N/ASeverity: minorPriority: normalStatus:

siebrand

siebrand

2009-04-03 03:12

developer   ~0021380

I cannot reproduce this. A recent notification from this MantisBT instance:

======================================================================
Project: mantisbt
Meldingsnummer: 10284
Categorie: localization
Reproduceerbaarheid: altijd
Impact: klein
Prioriteit: normaal
Status: nieuw
======================================================================

Header information:

From: Mantis Bug Tracker noreply@mantisbt.org
Subject: [mantisbt 0010284]: Language auto-detection error
Message-ID: 62dcaa641d56646d05fc1460657fabd2@www.mantisbt.org
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3]
keywords: [mantisbt] localization
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

tk

tk

2009-04-06 04:05

reporter   ~0021402

Now I tried my fortune with


/**

  • select the method to mail by:
  • PHPMAILER_METHOD_MAIL - mail()
  • PHPMAILER_METHOD_SENDMAIL - sendmail
  • PHPMAILER_METHOD_SMTP - SMTP
  • @global int $g_phpMailer_method
    */
    $g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL;

In this configuration, I do not see the duplicate newlines.
grangeway

grangeway

2009-04-14 12:55

reporter   ~0021529

tk: which mailer method was you using ?

tk

tk

2009-04-20 01:54

reporter   ~0021600

I was using the default (i.e., PHPMAILER_METHOD_MAIL accrding to config_defaults_inc.php)

dregad

dregad

2012-08-17 06:24

developer   ~0032598

Resolving as no update for > 3 years and considering PHPMailer has been through several updates now, most likely no longer an issue.