François Boisson wrote:
D'après la doc de l'API
(http://www.signal-spam.fr/index.php/frontend/extensions/api_de_signalement),
400 désigne une erreur dans le formulaire envoyé "Il y a un problème
avec le format du POST (par exemple le Content TransferEncoding n'est
pas base64 ou le POST manque un message à signaler)." Pas clair.
Je soupçonne que getspam n'a envoyé que le corps du message.
Que faut-il envoyer à ton script?
Un message complet, avec From, Subject et tout.
Ce message devrait convenir:
$ getspam q1Htfoh-0000D0
Received: from mail2000-6.so-net.net.tw ([61.64.127.22])
by alf94-3-82-66-248-156.fbx.proxad.net with smtp (Exim 3.36 #1
(Debian))
id 1HtfoU-0003OL-00
for <[EMAIL PROTECTED]>; Thu, 31 May 2007 10:15:19 +0200
X-M2KID: 465E83D6.0004EB9B
Received: from 10.1.9.25
by mail2000-6.so-net.net.tw with Mail2000 ESMTP Server
V3.20S(57608:5:AUTH_RELAY)
(envelope-from <[EMAIL PROTECTED]>); Thu, 31 May 2007 16:14:15 +0800
(CST)
X-M2KID: 465E7F37.0001260C
Received: from 61.64.189.230
by mail2000-3.so-net.net.tw with Mail2000 ESMTP Server
V3.20S(49063:0:AUTH_RELAY)
(envelope-from <[EMAIL PROTECTED]>); Thu, 31 May 2007 15:54:11 +0800
(CST)
Message-ID: <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Bcc: [EMAIL PROTECTED]
Subject: =?windows-1251?B?3ubt7uUq4ufs7vD85Swq5+Dq4PI=?=
Date: Thu, 31 May 2007 11:55:59 +0400
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="windows-1251"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced by Microsoft MimeOLE 6.00.2900.2180
X-Scanner: exiscan *1HtfoU-0003OL-00*IRGZEZLtIXI*
7zkhe
$ getspam q1Htfoh-0000D0 | signalspam
Error 400 while reporting the spam
$
Je ne vois pas où le message que je fournis n'est pas «aux normes». Mon serveur
est sous sarge mais je ne crois pas que ça vienne de là.
je ne vois pas de "Return-Path:". http://www.ietf.org/rfc/rfc2821.txt dit:
When the delivery SMTP server makes the "final delivery" of a
message, it inserts a return-path line at the beginning of the mail
data. This use of return-path is required; mail systems MUST support
it. The return-path line preserves the information in the <reverse-
path> from the MAIL command. Here, final delivery means the message
has left the SMTP environment. Normally, this would mean it had been
delivered to the destination user or an associated mail drop, but in
some cases it may be further processed and transmitted by another
mail system.
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]