作者Filitov.bbs@bbs.twcat.edu.tw (一點平懷) 看板: plan
標題[innbbsd] ihave msgid 不檢查重複信件?
時間南女院BBS (2004/02/06 Fri 21:14:51) Updated: 2004/04/04
mm..最近有幾個板一直有重複信件進來, (站對站互轉, ihave mode)
追了channel.c, 有點訝異....似乎沒有做重複信件的檢查...
是故意不要的還是我漏了什麼?
下面程式(+)為試著把檢查加回去的寫法
: channerl.c:CMDihave()
if (data[0] != '<')
{
fprintf(out, "%d Bad Message-ID\r\n", p->errorcode);
client->ihavefail++;
}
+ else if (HISfetch(data, NULL, NULL))
+ {
+ fprintf(out, "%d Dup Message-ID\r\n", p->errorcode);
+ client->ihavefail++;
+ }
else
{
fprintf(out, "%d\r\n", p->normalcode);
client->mode = 1;
strcpy(client->in.data, "\n\n\n");
client->in.left += client->in.used - 3;
client->in.used = 3;
}
--
╔╦╮╔ ╮╔═╮╔═╮╔╦╮ Origin: 台南女子技術學院 <bbs.twcat.edu.tw>
║ ║║║║ ╠═╣ ║ Author: Filitov From: 站務群
╩ ╰╩╝╰═╯╚ ╯ ╩ ══════════════════════╯