Commit 330e6fbc authored by Per Cederqvist's avatar Per Cederqvist

(is_member_in_recpt): Added patch by Joel Rosdahl so that bcc-recpt

	are really skipped over instead of producing false negatives -- a
	later cc-recpt or recpt can now produce a positive answer.
parent d4d90afd
/*
* $Id: text.c,v 0.82 2001/09/22 15:04:39 ceder Exp $
* $Id: text.c,v 0.83 2001/09/23 20:30:32 ceder Exp $
* Copyright (C) 1991-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: text.c,v 0.82 2001/09/22 15:04:39 ceder Exp $";
rcsid = "$Id: text.c,v 0.83 2001/09/23 20:30:32 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -447,8 +447,9 @@ do_add_cc_recpt(Text_no new_text,
/*
* Check if person is a member in any of the recipients or cc_recipients
* of text_s
* Check if person is a member in any of the recipients,
* cc_recipients or bcc_recipients of text_s. If skip_passive is
* true, ignore passive memberships.
*/
static Bool
is_member_in_recpt(const Person *person,
......@@ -466,7 +467,8 @@ is_member_in_recpt(const Person *person,
if ((mship = locate_membership(
text_s->misc_items[i].datum.recipient, person)) != NULL)
{
return !(mship->type.passive && skip_passive);
if (!(mship->type.passive && skip_passive))
return TRUE;
}
break;
......@@ -474,7 +476,8 @@ is_member_in_recpt(const Person *person,
if ((mship = locate_membership(
text_s->misc_items[i].datum.cc_recipient, person)) != NULL)
{
return !(mship->type.passive && skip_passive);
if (!(mship->type.passive && skip_passive))
return TRUE;
}
break;
......@@ -482,7 +485,8 @@ is_member_in_recpt(const Person *person,
if ((mship = locate_membership(
text_s->misc_items[i].datum.bcc_recipient, person)) != NULL)
{
return !(mship->type.passive && skip_passive);
if (!(mship->type.passive && skip_passive))
return TRUE;
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment