Skip to content
Snippets Groups Projects
Commit 5690b61d authored by rswindell's avatar rswindell
Browse files

Patch for v3.14a and earlier compatibilty (SMB Recipient header field is now

represented as the string/property "To" instead of "Recipient").
parent 1a2a300b
No related branches found
No related tags found
No related merge requests found
......@@ -131,20 +131,24 @@ if(this.recipient_list_filename!=undefined) {
/* contribution to mailing list? */
for(r=0;r<rcpt_list.length;r++) {
var l;
var recipient;
for(l=0;l<list_array.length;l++) {
var list = list_array[l];
/** DEBUG
for(var p in list)
log("list_array["+l+"]."+p+" = "+list[p]);
**/
if(rcpt_list[r].To.toLowerCase()==list.address.toLowerCase()
recipient=rcpt_list[r].To;
if(!recipient) // for pre v3.15 compatibility
recipient=rcpt_list[r].Recipient;
if(recipient.toLowerCase()==list.address.toLowerCase()
&& !list.disabled
&& !list.readonly)
break;
}
if(l<list_array.length) { /* match found */
log(LOG_INFO,format("Contribution message from %s to %s: %s"
,header.from, rcpt_list[r].To, header.subject));
,header.from, recipient, header.subject));
handled=true;
if(!process_contribution(header, body, list))
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment