@@ -212,37 +212,14 @@ protected function _logMessage($throttleId, $username, $rcptCount, $status)
212212 $ stmt ->bindParam (':rcptCount ' , $ rcptCount );
213213 $ stmt ->bindParam (':status ' , $ status );
214214 $ stmt ->bindParam (':msgid ' , $ headerArr ['x-meta-msgid ' ]);
215- $ stmt ->bindParam (':fromAddr ' , $ this -> _mimeHeaderDecode ($ headerArr ['from ' ]));
216- $ stmt ->bindParam (':toAddr ' , $ this -> _mimeHeaderDecode ($ headerArr ['to ' ]));
217- $ stmt ->bindParam (':ccAddr ' , $ this -> _mimeHeaderDecode ($ headerArr ['cc ' ]));
218- $ stmt ->bindParam (':bccAddr ' , $ this -> _mimeHeaderDecode ($ headerArr ['bcc ' ]));
219- $ stmt ->bindParam (':subject ' , $ this -> _mimeHeaderDecode ($ headerArr ['subject ' ]));
215+ $ stmt ->bindParam (':fromAddr ' , mb_decode_mimeheader ($ headerArr ['from ' ]));
216+ $ stmt ->bindParam (':toAddr ' , mb_decode_mimeheader ($ headerArr ['to ' ]));
217+ $ stmt ->bindParam (':ccAddr ' , mb_decode_mimeheader ($ headerArr ['cc ' ]));
218+ $ stmt ->bindParam (':bccAddr ' , mb_decode_mimeheader ($ headerArr ['bcc ' ]));
219+ $ stmt ->bindParam (':subject ' , mb_decode_mimeheader ($ headerArr ['subject ' ]));
220220 $ stmt ->bindParam (':site ' , $ headerArr ['x-meta-site ' ]);
221221 $ stmt ->bindParam (':client ' , $ headerArr ['x-meta-client ' ]);
222222 $ stmt ->bindParam (':script ' , $ headerArr ['x-meta-script ' ]);
223223 $ stmt ->execute ();
224224 }
225-
226- /**
227- * Decode MIME header elements
228- *
229- * @param string $header
230- * @return string
231- */
232- protected function _mimeHeaderDecode ($ header )
233- {
234- return mb_decode_mimeheader ($ header );
235- //return iconv_mime_decode($header, 0, 'UTF-8');
236-
237- /*
238- $utf8Header = imap_utf8($header);
239- $decoded = imap_mime_header_decode($utf8Header);
240- if (isset($decoded[0])) {
241- $decodedObj = $decoded[0];
242- return $decodedObj->text;
243- } else {
244- return $utf8Header;
245- }
246- */
247- }
248225}
0 commit comments