Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling Outlook 2003 Events
#6
WOW!!!! Quick cultural note: in America when we think something is really cool, we say, "This is the best thing since sliced bread!!". a popular alternative is "...since canned beer!!". I don't know what was so amazing before sliced bread that they compared everything to, maybe aqueducts or bronze maybe.

This Inbox thing may very well be the coolest thing since the "Convert to function"!!

Here's what I'm doing. I get a bunch of emails in from a SQL Server monitoring process telling me if something is running. it is useful but not for me usually but if it is running a loooooong time, it is useful. the problem is that Outlook won't delete a message based on a value in the message being lower that a certain value.

So, I have QM watching the Inbox. When I get an email from 'X', it grabs the entire message and does the below to it.

Function items_ItemAdd
Code:
Copy      Help
findrx(body "has been executing for ([\d\.]+) minutes" 0 1 _s 1)

Now it takes _s and does this

Function items_ItemAdd
Code:
Copy      Help
,_i=val(_s)
,if _i<30
,,mi.Delete

so, it's not in my Inbox AND doesn't even put up a 'New Message' notification so I'm not bothered at all!!!!

Totally cooler than the new editor, or the OnScreenDisplay, or even the OnScreenDisplay with round corners. Ok, maybe not as cool as the multiple keyboard and mouse thing, I'll admit, but AT LEAST as cool as that!
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)