Télécharger
Développer
Compte
Télécharger
Développer
Connexion
Mot de passe oublié ?
Créer un compte
Langue
Aide
Langue
Aide
×
Connexion
Nom du compte
Mot de passe
×
Mot de passe oublié ?
Traduction statut du Français
Catégorie :
Logiciel
Peuple
PersonalForge
Magazine
Wiki
Recherche
OSDN
>
Trouver un logiciel
>
Internet
>
WWW/HTTP
>
Dynamic Content
>
XOOPS
>
Ticket List/Search
>
Ticket #4178
XOOPS
Description
Résumé du projet
Dashboard - Développeur
Page Web
Développeurs
Galerie d'images
Liste des flux RSS
Activité
Statistiques
Historique
Téléchargements
List of Releases
Stats
Code Source
Liste des dépôts de code
CVS
Voir le référentiel
Ticket
Liste des tickets
Liste des Jalons
Liste des types
Liste des composants
Liste des tickets/RSS fréquemment utilisés
Soumettre un nouveau ticket
Documents
Communication
Forums
Liste des forums
Forum d’aide (1)
Discussion-Ouverte (1)
Listes de diffusion
Liste de ML
xoops-cvslog
Nouvelles
Ticket #4178
Liste des tickets
Soumettre un nouveau ticket
RSS
「X-Mailer:」ヘッダが複数する
Date d'ouverture:
2004-04-14 16:55
Dernière mise à jour:
2004-06-03 01:50
monitor
ON
OFF
Rapporteur:
tom_g3x
Propriétaire:
(Aucun)
Type:
Bogues
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun
Détails
Répondre
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
Répondre
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
Répondre
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 (
0
)
Attachment File List
No attachments
Modifier
Ajouter un commentaire
You are not logged in.
I you are not logged in, your comment will be treated as an anonymous post. »
Connexion
Ajouter un commentaire
Aperçu
Soumettre
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