Results 1 to 8 of 8
  1. #1
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rules Not Processing Upon Startup (2002 SP1)

    I took the plunge on my home PC and upgraded Office from 2000 to 2002. Yeah, I shoulda done a clean install but what the hey, I live dangerously.

    Here's the issue: I use Outlook at the office to retrieve my POP mail and that installation is configured to leave messages on the server. This way I can retrieve them from home and use that as my permanent message store.

    However, when I fire up Outlook at home, it downloads all the messages and approximately 25% of the time fails to process any rules. On occasion it will begin processing rules as the messages are downloading. Most times, the rules just work - but on those occasions when it does not, I have to go into the Rules Wizard and manually run all of my rules to move, delete, and otherwise process messages.

    Anyone seen this, or have an idea to what may be causing it? Not a show stopper but highly annoying. And there is NOTHING in the Microsoft knowledgebase about this particular issue.
    -Mark

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    Are you collecting mail immediately you start Outlook?
    I have the impression OL starts downloading mail before it has loaded the rules when it starts up - although I have a recollection it was worse with 2000.
    What happens if you set OL to manual collection, wait for it to finish loading, then collect your mail?

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    You've got it Leif - it starts checking for mail upon starting the application. It's alsmost as if the rules haven't had time to load before it happens.

    I haven't set it for manual send/receive, but I suspect that if I did that it would work for some strange reason. I should give it a shot and see if I can reproduce the problem.

    Grrrr, Outlook. <img src=/S/headthrob.gif border=0 alt=headthrob width=15 height=15>
    -Mark

  4. #4
    New Lounger
    Join Date
    Mar 2002
    Location
    Bradenton, Florida, USA
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    Mark,
    Had the same thing happen with rules on inbound mail with OL 2000 & 2002. The only workaround I've found is to redo ... delete and rewrite ... each rule.
    Mark

  5. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    On OL2002, it's a bug in how Outlook loads and rewriting won't help. They eventually kick in as long as you leave outlook open. If you continually open and close it, they'll never work.

    If many are missed the first time, you can run the rules manually.

  6. #6
    New Lounger
    Join Date
    Jul 2002
    Location
    London, England
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    I know its been a while since this thread was touched, but give me a break - I've only just started Lounging around <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    The problem here seems to stem from the fact that the NewMail event doesn't fire on startup (which is a pain).

    The only (partial) solution I've come up with is to disable the automatic Send/Receive every X mins in the Application_Startup procedure, then do a manual Send/Receive and finally re-enable auto Send/Receive.

    Apologies if this is a little long:

    <pre>Private Sub Application_Startup()

    Dim datStartTime As Date
    Dim intInterval As Integer
    Dim objControl As CommandBarButton

    OutputLog "Started Outlook"

    On Error GoTo ErrorHandler

    OutputLog "Disabling Send/Receive Schedule"
    Set objControl = ActiveExplorer.CommandBars.FindControl(ID:=6867)

    Do Until objControl.State = msoButtonUp
    objControl.Execute
    Loop

    ' show the main folder
    Application.Explorers.Item(Application.Explorers.C ount).Activate

    ' pause (5 seconds)
    intInterval = 5
    datStartTime = Now()

    Do Until DateDiff("s", datStartTime, Now()) >= intInterval
    DoEvents
    Loop

    ' Send/Receive now
    OutputLog "Executing Send/Receive"
    Set objControl = ActiveExplorer.CommandBars.FindControl(ID:=7095)
    objControl.Execute

    ' pause (5 seconds)
    intInterval = 5
    datStartTime = Now()

    Do Until DateDiff("s", datStartTime, Now()) >= intInterval
    DoEvents
    Loop

    ' Re-enable the Schedule
    OutputLog "Enabling Send/Receive Schedule"
    Set objControl = ActiveExplorer.CommandBars.FindControl(ID:=6867)

    Do Until objControl.State = msoButtonDown
    objControl.Execute
    Loop

    Set objControl = Nothing

    ErrorHandler:

    End Sub

    Private Sub FindMenuCommand()

    Dim myControls As CommandBarControls
    Dim myControl As CommandBarControl
    Dim strMsg As String

    Set myControls = ActiveExplorer.CommandBars.FindControls(Type:=msoC ontrolButton)

    For Each myControl In myControls
    Debug.Print myControl.Caption

    If myControl.Caption = "Send and Receive &All" Then
    strMsg = strMsg & "Send and Receive command button = " & _
    myControl.ID & vbCr

    ElseIf myControl.Caption = "&Disable Scheduled Send/Receive" Then
    strMsg = strMsg & "Disable Scheduled Send/Receive = " & _
    myControl.ID & vbCr

    End If

    Next

    End Sub

    Public Function OutputLog(strLog As String)

    Debug.Print strLog & " - " & Format(Now(), "hh:nn:ss")

    End Function</pre>


    And amazingly, this works - apart from one little, really irritating rinkle - the auto Send/Receive doesn't come back on. It's ticked in the menu and looks like it should be working, but it doesn't.

    Any thoughts, comments, lashings welcome.

    Some help would be gratefully received <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15>

  7. #7
    New Lounger
    Join Date
    Jul 2002
    Location
    London, England
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    I know its not good form to reply to my own messages but...

    I've looked again at the code and simplyfied it hugely, its not 100% foolproof in my configuration (Outlook starts in Outlook Today), but I tried it with Outlook starting in the Inbox and found it worked flawlessly.

    Anyway, here's the new code...

    <pre>Private Sub Application_Startup()

    Dim objControl As CommandBarButton

    ' Send/Receive now
    Set objControl = ActiveExplorer.CommandBars.FindControl(ID:=7095)
    objControl.Execute

    Set objControl = Nothing

    End Sub

    Private Sub FindMenuCommand()

    Dim myControls As CommandBarControls
    Dim myControl As CommandBarControl
    Dim strMsg As String

    Set myControls = ActiveExplorer.CommandBars.FindControls(Type:=msoC ontrolButton)

    For Each myControl In myControls
    Debug.Print myControl.Caption

    If myControl.Caption = "Send and Receive &All" Then
    strMsg = strMsg & "Send and Receive command button = " & myControl.ID & vbCr

    ElseIf myControl.Caption = "&Disable Scheduled Send/Receive" Then
    strMsg = strMsg & "Disable Scheduled Send/Receive = " & myControl.ID & vbCr

    End If

    Next

    MsgBox "The controls you require are:" & vbCr & vbCr & strMsg, vbOKOnly, "HELP"

    End Sub</pre>


    I hope someone finds this of use.


    Meddler

  8. #8
    New Lounger
    Join Date
    Jul 2002
    Location
    London, England
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Rules Not Processing Upon Startup (2002 SP1)

    More bad habits <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    I've now found (following a re-install) that Outlook now processes the rules correctly upon startup. So I looked on MSKB for any information and right at the very bottom of the page ( http://support.microsoft.com/default.aspx?...b;en-us;Q325675 ) you find the following missive

    Outlook E-mail Rules May Not Work As Expected

    If you configure Outlook 2002 to send or receive messages when you start the program, and you set up a rule that is applied to all incoming messages, the rule is not applied to some incoming messages when you start Outlook 2002. This only occurs when you are using Outlook 2002 with a POP3/SMTP e-mail account, and when Outlook is starting and trying to download new messages from the POP3/SMTP e-mail accounts at the same time.

    Ho hum, only took them 12 months I suppose. Now I can get back to work <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    Regards All


    Meddler

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •