Add a context menu item or VBE to Outlook 2002?

  • Thread starter Thread starter LuckyStrike
  • Start date Start date
L

LuckyStrike

Hi,

Previously I added to Outlook 2002 (by using VBE) a Toolbutton for AVG AV so
as to be able to start my AV program with one click. Success.

Now I've been trying to add a command to Outlook 2002 and have had only
partial success. What I would like to do is have it run either a shell
extension of AVG (avgse.exe) so as to scan only the inbox of Outlook, or
only a single message that may or may not have an attachment.

The preferred approach (and simpler) would be a right click menu context
item that would have the already existing possibility of "scan with Avg".
The second approach would be to have a second tool button -which I have
already created with success- Scan with Avgse.exe to scan a single email or
inbox only.

I have done the latter, but the result is doubtful. After initiating the
scan, the shell extension box appears on the taskbar only. When I restore it
to view, the message box states "Test Finished- no suspicious files or virus
detected..." BUT, there is no file name in the field for "last file tested".
This makes me doubt that it has actually scanned anything. This is the
command I created:

Sub ScanItemAVG()
Shell ("C:\Program Files\Grisoft\AVG6\\AVGSE.exe""%1\")
End Sub
-----------------------------------

I even did an "Eicar virus" test with it, and the scan found nothing!!!
Something is not right with that, this is for certain.

Short version is: Can I add a R-Click Item, or can I find and add the
"filename to the command" by VBE to make this work?

Thanks,
 
Try saving the message as a file to the system first (MailItem.SaveAs), then scanning the resulting file.

Outlook does not expose the right-click context menu in its CommandBars collection. AFAIK, the only time you'll see a new right-click command is when the item is using a custom form with one or more custom actions.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Hi Sue,

Thanks for the reply. I am presently doing that which you have suggested as
the first option. Inbox>open message>save as>Items to scan for virus>scan.

It probably sounds picayune, but it is such a "lengthy" process. Sure, I
realize the "small" effort entailed in this is definitely worth it, and to
not be so lazy about this in light of the consequences and even "lengthier"
recovery time if something should go awry.

Now, regarding the second "custom form", and "custom actions"; would you be
so kind as to elucidate on the what you mean by this? How one may (if
possible) go about obtaining/implementing/enabling such an item?

I appreciate the links BTW. Naturally, the information will be of great
value and has been added to my burgeoning reference folders.

Thanks again,
--
LuckyStrike
(e-mail address removed)
----------------------------------------------------------------------------
-
Try saving the message as a file to the system first (MailItem.SaveAs), then
scanning the resulting file.

Outlook does not expose the right-click context menu in its CommandBars
collection. AFAIK, the only time you'll see a new right-click command is
when the item is using a custom form with one or more custom actions.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top