user default number of messages
Posted: Fri Jun 18, 2004 1:38 am
There's been talk of allowing users to set the default number of messages when an address is used without the number:
coyote.spamcowboy@spamgourmet.com
it's currently set to 3.
Here's an idea that wouldn't require changing the database:
try *that* with a bitmap (yes, we'd have to swap out the number 2 for it )
coyote.spamcowboy@spamgourmet.com
it's currently set to 3.
Here's an idea that wouldn't require changing the database:
- Code: Select all
$FEATURES{'DEFAULTNUMMESSAGES'} = 2;
sub getDefaultNumberOfMessages {
my $features = shift;
my $num = 0;
while ($features % $FEATURES{'DEFAULTNUMMESSAGES'} == 0) {
$features = $features / $FEATURES{'DEFAULTNUMMESSAGES'};
$num ++;
}
$num = 3 if !$num
return $num;
}
try *that* with a bitmap (yes, we'd have to swap out the number 2 for it )