RE: New Whitelist/Blacklist Outlook Plugin
|
Logged in as: Guest
|
|
Users viewing this topic:
none
|
|
Login | |
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 9:24:46 AM
|
|
|
Charlie IT
Posts: 191
Joined: 1.Mar.2005
Status: offline
|
I have been looking for this for a long time. Thank you all. Is there a way this can be rolled out to users that have no computer skills? Preferably thru Group Policy. Thanks Again Charlie
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 9:52:35 AM
|
|
|
RSP
Posts: 1270
Joined: 31.Oct.2006
From: The East Riding of Yorkshire, UK
Status: offline
|
According to this, you would need to create a COM addin to distribute via GPO. Take a look at these threads, here, here and here.
_____________________________
Disclaimer: I don't work for GFI, I just use their products.
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 9:59:08 AM
|
|
|
Charlie IT
Posts: 191
Joined: 1.Mar.2005
Status: offline
|
Thank you
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 10:03:00 AM
|
|
|
Charlie IT
Posts: 191
Joined: 1.Mar.2005
Status: offline
|
I will give it a try and will post the results if successful
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 10:38:42 AM
|
|
|
Charlie IT
Posts: 191
Joined: 1.Mar.2005
Status: offline
|
Would it be possible to add confirmation popup to the blacklist button?
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 10:55:05 AM
|
|
|
RSP
Posts: 1270
Joined: 31.Oct.2006
From: The East Riding of Yorkshire, UK
Status: offline
|
Try this - Buttons Yes and No appear. A result of 6 means the Yes button was pressed and thus the action taken: Attribute VB_Name = "GFI"
Public objItem As Object
Public dstFolder As Object
Public Dele As Boolean
Public YesNo As Byte
Public myFolder As MAPIFolder
Public myInbox As MAPIFolder
Public myNameSpace As NameSpace
Public Sub SetVars()
Set myNameSpace = Application.GetNamespace("MAPI")
Set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public Folders").Folders("GFI AntiSpam Folders")
Set myInbox = myNamespace.GetDefaultFolder(6)
End Sub
Sub AddBlacklist()
SetVars
YesNo = MsgBox("Are you sure?", vbYesNo)
If YesNo = 6 Then
Dele = True
Set dstFolder = myFolder.Folders("Add to blacklist")
PublicMove
End If
End Sub
Sub AddWhitelist()
SetVars
Dele = False
Set dstFolder = myFolder.Folders("Add to whitelist")
PublicMove
Dele = True
Set dstFolder = myInbox
PublicMove
End Sub
Sub DiscussLst()
SetVars
Dele = False
Set dstFolder = myFolder.Folders("I want this Discussion list")
PublicMove
Dele = True
Set dstFolder = myInbox
PublicMove
End Sub
Sub isLegit()
SetVars
Dele = False
Set dstFolder = myFolder.Folders("This is legitimate email")
PublicMove
Dele = True
Set dstFolder = myInbox
PublicMove
End Sub
Sub isSpam()
SetVars
YesNo = MsgBox("Are you sure?", vbYesNo)
If YesNo = 6 Then
Dele = True
Set dstFolder = myFolder.Folders("This is spam email")
PublicMove
End If
End Sub
Sub AddGFIBar()
Dim cbGFI As CommandBar
Dim ctlCBarButton As CommandBarButton
Dim ctlCBarCombo As CommandBarComboBox
Dim ctlCBarPopup As CommandBarPopup
On Error Resume Next
Set cbGFI = Application.ActiveExplorer.CommandBars("GFI Commands")
If Err = 0 Then
cbGFI.Delete
End If
Set cbGFI = Application.ActiveExplorer.CommandBars _
.Add(Name:="GFI Commands", Position:=msoBarTop)
Set ctlCBarButton = cbGFI.Controls.Add(Type:=msoControlButton)
With ctlCBarButton
.Caption = "Blacklist"
.FaceId = 3734
.Style = msoButtonIconAndCaption
.Visible = True
.TooltipText = "Add to GFI Blacklist"
.OnAction = "AddBlacklist"
End With
Set ctlCBarButton = cbGFI.Controls.Add(Type:=msoControlButton)
With ctlCBarButton
.Caption = "Whitelist"
.FaceId = 3733
.Style = msoButtonIconAndCaption
.Visible = True
.TooltipText = "Add to GFI Whitelist"
.OnAction = "AddWhitelist"
End With
Set ctlCBarButton = cbGFI.Controls.Add(Type:=msoControlButton)
With ctlCBarButton
.Caption = "Discussion List"
.FaceId = 3735
.Style = msoButtonIconAndCaption
.Visible = True
.TooltipText = "I want this Discussion list"
.OnAction = "DiscussLst"
End With
Set ctlCBarButton = cbGFI.Controls.Add(Type:=msoControlButton)
With ctlCBarButton
.Caption = "Legitimate Email"
.FaceId = 1087
.Style = msoButtonIconAndCaption
.Visible = True
.TooltipText = "This is legitimate email"
.OnAction = "isLegit"
End With
Set ctlCBarButton = cbGFI.Controls.Add(Type:=msoControlButton)
With ctlCBarButton
.Caption = "Spam"
.FaceId = 1088
.Style = msoButtonIconAndCaption
.Visible = True
.TooltipText = "This is spam email"
.OnAction = "isSpam"
End With
cbGFI.Visible = True
End Sub
Sub PublicMove()
'Dim myFolder As MAPIFolder
'Dim myNameSpace As NameSpace
Dim newCopy As Object
'Set myNameSpace = Application.GetNamespace("MAPI")
'Set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public Folders")
Dim myItem As Object
Dim eaddr As String
Dim newItem As MailItem
Set mySelection = Application.ActiveExplorer.Selection
For i = 1 To mySelection.Count
Set myItem = mySelection.Item(i)
Dim objItem As MailItem
Set objItem = myItem
Set newCopy = objItem.Copy
newCopy.Move dstFolder
If Dele = True Then
objItem.Delete
End If
Next
End Sub
_____________________________
Disclaimer: I don't work for GFI, I just use their products.
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 3:26:23 PM
|
|
|
sputnam
Posts: 28
Joined: 10.Jan.2007
Status: offline
|
Wow, RSS! This is getting very close to perfect. I personally don't have a need for the Legitamate or Discussion so I Customize and then drag those buttons off the toolbar, no big deal. The biggest improvement I could ask for would be for the SPAM button to just move it to the GFI SPAM folder and not the user's Deleted Items folder. Actually I'm getting two items in the Deleted Items folder. This is no big deal either and I'm quite happy with all that you guys are doing regarding this.
_____________________________
Regards, Steven
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 14.Sep.2009 7:10:11 PM
|
|
|
RSP
Posts: 1270
Joined: 31.Oct.2006
From: The East Riding of Yorkshire, UK
Status: offline
|
quote:
ORIGINAL: sputnam The biggest improvement I could ask for would be for the SPAM button to just move it to the GFI SPAM folder and not the user's Deleted Items folder. Replace the PublicMove subroutine with this one (not tested).
Sub PublicMove()
Dim newCopy As Object
Dim myItem As Object
Dim eaddr As String
Dim newItem As MailItem
Dim strUniqueSubject As String
Dim Msg as MailItem
Dim Dumpster As MAPIFolder
Set mySelection = Application.ActiveExplorer.Selection
For i = 1 To mySelection.Count
Set myItem = mySelection.Item(i)
Dim objItem As MailItem
Set objItem = myItem
Set newCopy = objItem.Copy
newCopy.Move dstFolder
If Dele = True Then
strUniqueSubject = "MsgToBeDeletedRightNow"
ObjItem.Subject = strUniqueSubject
ObjItem.Save
ObjItem.Delete
Set Dumpster = Application.Session.GetDefaultFolder(olFolderDeletedItems)
Set Msg = Dumpster.Items.Find("[Subject] = '" & strUniqueSubject & "'")
if not (Msg Is Nothing) Then
Msg.Delete
End If
End If
Next
End Sub quote:
Actually I'm getting two items in the Deleted Items folder. No idea, I'm not a programmer!
_____________________________
Disclaimer: I don't work for GFI, I just use their products.
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 15.Sep.2009 6:48:44 AM
|
|
|
sputnam
Posts: 28
Joined: 10.Jan.2007
Status: offline
|
You're doing pretty good for not being a programmer RSP! Really appreciate you helping me out. When in Inbox and clicking SPAM email is moved to GFI SPAM and not copyied to Deleted Items. But, when in Junk E-mail, it no longer moves to Inbox when clicking Whitelist. It DOES copy to GFI Whitelist however.
_____________________________
Regards, Steven
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 23.Sep.2009 11:38:37 AM
|
|
|
parallon
Posts: 9
Joined: 10.Sep.2009
Status: offline
|
So, is there a reason why this wouldn't work on Vista? I am still using Outlook 2k3. I am getting a debug error saying that it "Can't move the items". When I Debug, it is on newCopy.Move dstFolder Thanks, Mike
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 30.Sep.2009 7:28:16 AM
|
|
|
sputnam
Posts: 28
Joined: 10.Jan.2007
Status: offline
|
Any time to update that code? Anything we can do to help you in anyway? I wish Steve6341 would jump back into this. Really hoping that GFI is watching this thread as this is a very exciting plugin.
_____________________________
Regards, Steven
|
|
|
|
RE: New Whitelist/Blacklist Outlook Plugin - 30.Sep.2009 9:28:24 AM
|
|
|
parallon
Posts: 9
Joined: 10.Sep.2009
Status: offline
|
Any news on the Vista issue? Thanks, Mike
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|