View Single Post
  #4  
Old January 24th 07, 01:34 PM posted to microsoft.public.outlook.installation
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Error create rules; insufficient space

A "run a script" rule action actually uses not an external script but a VBA procedure with a MailItem or MeetingItem as its parameter. That item is processed by the code:


Sub RunAScriptRuleRoutine(MyMail As MailItem)
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim msg As Outlook.MailItem

strID = MyMail.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set msg = olNS.GetItemFromID(strID)
' do stuff with msg, e.g.
MsgBox msg.SUbject

Set msg = Nothing
Set olNS = Nothing
End Sub

See http://www.outlookcode.com/d/code/zaphtml.htm#ol2002 for another example.


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Mike24601" wrote in message ...
Hal -

Thanks for the feedback.

The RPC clarification is useful.

I had seen a reference elsewhere stating that it should be possible to call
a VBS script from Outlook as a rule, and then put the basic rule actions
right into the VBS script. In principal, this seems like it would work. In
practice, I'm not sure how to set up such a script.

"Hal Hostetler [MVP P/I]" wrote:

The limit on rules is not imposed by Outlook but rather by the Exchange
Server, there is no work-around to this that I'm aware of, and I not sure
that Exchange Server 2007 will help as the reason for the memory limit is
that the total sum of the information that is contained in a user's rules
must fit in a remote procedure call (RPC).

http://support.microsoft.com/kb/241325/en-us
"There is not enough space on the Microsoft Exchange Server to store all of
your rules" error message when you create or import a rule in Outlook
http://support.microsoft.com/kb/147298/en-us
Maximum number of rules per folder in the Inbox or in a public folder in
Exchange Server 2003, Exchange 2000, and Exchange Server 5.5

Hal
--
Hal Hostetler, CPBE --
Senior Engineer/MIS -- MS MVP-Print/Imaging -- WA7BGX
http://www.kvoa.com -- "When News breaks, we fix it!"
KVOA Television, Tucson, AZ. NBC Channel 4
Still Cadillacin' - www.badnewsbluesband.com

"Mike24601" wrote in message
...
I have a user who receives the following message when trying to create a

new
rule in Outlook 2003:

"One or more rules could not be uploaded to exchange server and have been
deactivated"

The user is on an Exchange server. He has a LOT of rules, so I suspect

he's
bumping up against the known 32k rule limit. That said, aside from the
standard advise of consolidate/delete rules, how do we get around this?

The
user wants to create MANY more rules, so I need a good workaround.

Idea #1: Anyone know what the rule limit is in Outlook 2007?

Idea #2: It may help to know that the goal of the rules is to have all

mail
to/from named individuals go to designated folders. For example, for John
Smith, there are two rules - one puts all mail sent to him in the John

Smith
folder, and one puts all mail received from him in the John Smith folder.

If
someone has an effective solution to do that, that would be a passable
solution, too.

Thanks,

Michael




Ads