John Locke <mail <at> freelock.com> writes: > > Hello, all, > > I've been using the Highlighting option to quickly see which of my > business clients has sent a mail. It's great for that... > > However, I would like to be able to quickly identify messages that got > routed through my backup mail server. To do this, I need to match on a > Received: header. Here's an example: > > Received: from smtp.easydns.com (smtp.easydns.com [205.210.42.30]) > > I found the place to add Received to the Highlight Options page (in > src/options_highlight.php), and I also found where it does the match (in > functions/mailbox_display.php, right after * AAAAH! Make my eyes stop > bleeding! Who wrote this?!). I'm an experienced PHP coder, but not > familiar with the Squirrelmail architecture. > > I see that it's using strstr() to match the value you store against a > value in the $msg[] array. Two quick questions: > > * why is "^^" prepended to the header? > * Are the received headers available in this array (or loaded anywhere > else, if not)? > > I added the received header to the options_highlight.php page, and added a > highlighting rule to use it, but it's not working. Can anyone point me to > the relevant file? > > I also updated the CreateNewHighlight page in the wiki to give more hints > in creating a match pattern. > > Cheers, >
Hi, I'd like to use message highlighting to highlight based on header state. For example, if x-spam: **** shows up in the header, I could add support for catching x-spam as a header field to match against. I'm looking for the same insight that Mr. Locke was pursuing earlier. Can anyone suggest the structure of changes required? I think I have options_highlight.php prepared and I'm looking for the other bits. Perhaps changes to mailbox_display.php? I'm not sure of all the data structures and where their genesis takes place. ($msgs with index definitions). thank for some pointers. John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
