Ticket #4178

「X-Mailer:」ヘッダが複数する
Date d'ouverture: 2004-04-14 16:55 Dernière mise à jour: 2004-06-03 01:50

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

XoopsMailerにより送信されるメールのヘッダーにおいて、「X-
Mailer」が重複する事による不具合が発生します。

問題点は2つあります。

・以下の様に、X-Mailerが複数表示されてしまう。
 X-Mailer: phpmailer [version 1.65]
 X-Mailer: PHP/4.3.4
これにより、メール受信時に、セキュリティーソフト等でSPAM扱
いされてしまうケースがあるようです。

/class/xoopsmailer.php 250行目あたり
 $this->headers[] = "X-Mailer: PHP/".phpversion();
または、
/class/mail/phpmailer/class.phpmailer.php 980行目あたり
 $header[] = sprintf("X-Mailer: phpmailer [version %
s]%s", $this->Version, $this->LE);
が、該当個所かと思われます。


・複数の宛先にメールを送った場合、「X-Mailer:PHP/x.x.x」
が複製されてしまう。
 X-Mailer: PHP/4.3.4
 X-Mailer: PHP/4.3.4
  :
  :
こんな感じに、最後の送信者には、送信件数分の「X-
Mailer:PHP/x.x.x」が付いてしまいます。

/class/xoopsmailer.phpのsendMail()内にある、以下の部分が
送信者分の回数繰り返される事になりますので・・・、
foreach ($this->headers as $header) {
 $this->multimailer->AddCustomHeader($header);
}

/class/mail/class.phpmail.phpのAddCustomHeader
($custom_header) では、
その度に、$this->CustomHeader[] に「X-Mailer:PHP/x.x.x」
が蓄積されるように思います。


関連記事:
http://jp.xoops.org/modules/newbb/viewtopic.php?
viewmode=flat&topic_id=3501&forum=12

Ticket History (3/3 Histories)

2004-04-16 01:29 Updated by: tom_g3x
Commentaire
Logged In: YES
user_id=6745

こういう案がでております。

「/class/xoopsmailer.php」のsendMail()内にて、

$this->multimailer->ClearCustomHeaders(); <=追加
foreach ($this->headers as $header) {
$this->multimailer->AddCustomHeader($header);
}


参照元 :
http://jp.xoops.org/modules/newbb/viewtopic.php?
viewmode=thread&topic_id=3501&forum=12&post_id=19222#19222
2004-05-27 22:48 Updated by: tom_g3x
Commentaire
Logged In: YES
user_id=6745

sf.netに転載済みです。

http://sourceforge.net/tracker/index.php?
func=detail&aid=961313&group_id=41586&atid=430840
2004-06-03 01:50 Updated by: tom_g3x
  • Ticket Close date is changed to 2004-06-03 01:50
  • État Update from Ouvert to Atteints

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion