View Issue Details

IDProjectCategoryView StatusLast Update
0000146WackoWikiemailpublic2009-08-19 09:39
ReporterFreeman Assigned ToTann San  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version4.2 
Target Version4.3.rcFixed in Version4.3.rc 
Summary0000146: fixed headers encoding of WackoWiki mail messages
Descriptionfix is important because your WackoWiki sends me an abracadabra like this:
Комментарий к странице 'HomePage'
TagsNo tags attached.
Attached Files
goodmail.diff (1,170 bytes)   
--- classes/wacko.php.old	2005-08-26 23:03:19.000000000 +0400
+++ classes/wacko.php	2005-09-13 12:17:42.000000000 +0400
@@ -670,9 +670,10 @@ class Wacko
  function TagSearch($phrase) { return $this->LoadAll("select ".$this->pages_meta." from ".$this->config["table_prefix"]."pages where latest = 'Y' and lower(tag) like binary lower('%".quote($phrase)."%') order by supertag"); }
 
  function SendMail($email,$subject, $message) {
-   $headers = "From: \"".$this->GetConfigValue("wakka_name")."\"<".$this->GetConfigValue("admin_email").">\r\n";
+   $headers = "From: =?". $this->GetCharset() ."?B?". base64_encode($this->GetConfigValue("wakka_name")) ."?= <".$this->GetConfigValue("admin_email").">\r\n";
    $headers .= "X-Mailer: PHP/".phpversion()."\r\n"; //mailer
    $headers .= "X-Priority: 3\r\n"; //1 UrgentMessage, 3 Normal
+   $headers .= "X-Wacko: ".$this->GetConfigValue("base_url")."\r\n";
    $headers .= "Content-Type: text/html; charset=".$this->GetCharset()."\r\n";
    $subject =  "=?".$this->GetCharset()."?B?" . base64_encode($subject) . "?=";
    @mail($email, $subject, "<html><head></head><body>".$message."</body></html>", $headers);
goodmail.diff (1,170 bytes)   

Activities

Tann San

2008-04-18 13:36

manager   ~0000315

Merged in Freemans diff file, thank you Freeman :¬)

Issue History

Date Modified Username Field Change
2008-01-10 11:34 administrator New Issue
2008-01-10 11:34 administrator Legacy => NEW
2008-01-10 11:35 administrator Reporter administrator => Freeman
2008-01-10 11:35 administrator Assigned To => Tann San
2008-01-10 11:35 administrator Status new => assigned
2008-01-10 11:35 administrator Description Updated
2008-01-10 11:35 administrator File Added: goodmail.diff
2008-01-10 11:40 administrator Product Version => 4.2
2008-01-10 11:40 administrator Target Version => 5.0.0
2008-04-18 13:36 Tann San Status assigned => resolved
2008-04-18 13:36 Tann San Fixed in Version => 5.0.0
2008-04-18 13:36 Tann San Resolution open => fixed
2008-04-18 13:36 Tann San Note Added: 0000315
2009-08-19 09:22 administrator Fixed in Version 5.0.0 => 4.3.rc
2009-08-19 09:39 administrator Target Version 5.0.0 => 4.3.rc
2010-03-08 10:13 administrator Category Email => email