Posts sent to more than one mailing list [message #28437] |
Mon, 24 October 2005 19:37 |
BobB
Messages: 165 Registered: April 2005 Location: Tucson, AZ
Karma: 0
|
Senior Member |
|
|
We have 3 forums, each tied to a different mailing list. Users sometimes post one message to all 3 mailing lists at once. The forum sees only the first posting address, so places all 3 messages in one forum rather than one to each forum.
This was commonly done on the old forum because it used the subject prefix, not the contents of the "To:" field, to sort messages into the right forums. Is there a way to make FUD forum use the subject prefix? Each mailing list has its own.
Thanks.
|
|
|
Re: Posts sent to more than one mailing list [message #28448 is a reply to message #28437] |
Tue, 25 October 2005 13:13 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The determination of where the message goes is NOT done by the forum, it is done by whatever tool you use to pipe the message into maillist.php script. Which means that is where you need to change message destination determination.
FUDforum Core Developer
|
|
|
|
|
|
Re: Posts sent to more than one mailing list [message #28494 is a reply to message #28493] |
Wed, 26 October 2005 21:25 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The forum only imports a message if there is no existing message carrying the same message identifier. I suspect that is what is preventing duplicate imports. You can disable this check inside maillist.php
FUDforum Core Developer
|
|
|
Re: Posts sent to more than one mailing list [message #28497 is a reply to message #28494] |
Wed, 26 October 2005 22:05 |
BobB
Messages: 165 Registered: April 2005 Location: Tucson, AZ
Karma: 0
|
Senior Member |
|
|
Ilia wrote on Wed, 26 October 2005 16:25 | The forum only imports a message if there is no existing message carrying the same message identifier. I suspect that is what is preventing duplicate imports. You can disable this check inside maillist.php
|
The last time I edited maillist.php I ran into serious problems. I don't want to edit it without being absolutely certain I'm doing it right.
Is this check disabled in the following section, starting with line 285:
if (isset($this->headers['message-id'])) {
$this->msg_id = substr(trim($this->headers['message-id']), 1, -1);
} else if (isset($this->headers['x-qmail-scanner-message-id'])) {
$this->msg_id = substr(trim($this->headers['x-qmail-scanner-message-id']), 1, -1);
} else {
mlist_error_log("No message id", $this->raw_msg);
If so, what needs to be changed?
|
|
|
Re: Posts sent to more than one mailing list [message #28498 is a reply to message #28497] |
Wed, 26 October 2005 22:08 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You are looking at the wrong segment of the file, you need to comment out this bit:
/* check if message was already imported */
if ($emsg->msg_id && q_singleval("SELECT id FROM ".sql_p."msg WHERE mlist_msg_id="._esc($emsg->msg_id))) {
return;
}
FUDforum Core Developer
|
|
|
|
|
|