Commit 280fa288 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Now handles the case when a recipient to a text has been deleted.

parent e7583efa
......@@ -75,17 +75,24 @@ garb_text(void)
switch ( misc->type )
{
case recpt:
limit = 24 * 3600 * cached_get_garb_nice( misc->datum.recipient );
if ( cached_conf_exists( misc->datum.recipient ) )
{
limit = (24 * 3600 *
cached_get_garb_nice( misc->datum.recipient ));
if ( age < limit )
return FALSE;
}
break;
case cc_recpt:
if ( cached_conf_exists( misc->datum.cc_recipient ))
{
limit = ( 24 * 3600
* cached_get_garb_nice( misc->datum.cc_recipient ));
if ( age < limit )
return FALSE;
}
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