- Don't auto-expunge in SM. If they really need to use Lookout like that, let them learn how to use the expunge button.
Hehe, Lookout, good call :)
I've disabled auto-expunge. And since the users don't want to loose these messages, they'll never use the expunge button, which leaves back at square one.
Yeah, you'd really have to hack the source to implement hiding those messages IIRC. Don't think it can be done as a plugin, but if it could....
If you need help coding, you might also ask on the plugins list.
Aw, heck. Here is a start:
functions/mailbox_display.php
Mine is slightly modified, so line number may be wrong, but... around line 69 is where you need to insert some code. The function "printMessageInfo()" starts like this:
$color_string = $color[4];
if ($GLOBALS['alt_index_colors']) {
if (!isset($row_count)) {
$row_count = 0;
}
$row_count++;
if ($row_count % 2) {
if (!isset($color[12])) {
$color[12] = '#EAEAEA';
}
$color_string = $color[12];
}
}
$msg = $msgs[$key];After that, I put this:
if (isset($msg['FLAG_DELETED']) && $msg['FLAG_DELETED']) return;
And it successfully hid deleted messages. You'll probably want to create a preference so you can turn that on/off, but that's not hard - I'll leave it up to you.
Cheers,
Paul
- Paul
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
