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