Paul, Thanks for the tip! That little line works great!
Like you said, it would be nice to enable/disable this (mis)feature. Also, the "Viewing Messages: 1 to xx (xx total) now appears incorrect, because it is still counting the hidden messages. If I only knew the first thing about programming, I would get right on this! :) However, looks like I'll be stopping by Borders on the way home. I assume I'll just need a book on PHP, please correct me if I will need more. Thanks for such a quick response! If I could get the same support for the commercial products I use, life would be grand! Doug > -----Original Message----- > From: p dont think [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 14, 2004 5:03 PM > To: Doug Koobs > Cc: [EMAIL PROTECTED] > Subject: Re: [SM-USERS] Auto Expunge and By default, move to Trash > > > >>- 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 > Confidential: This electronic message and all contents contain information from Financial Credit Services which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender and destroy the original message and all copies. ------------------------------------------------------- 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_id70&alloc_id638&op=click -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
