Results 1 to 7 of 7
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    To deal with moving "obvious" spam out of my Inbox, I wrote a macro that moves all selected messages to a spam folder in an archival PST. When doing this manually, Outlook honors the setting for the handling of Read receipts and does NOT send a "Not Read" receipt. However, I just learned that when using VBA, Outlook does NOT honor that setting and DOES sent a "Not Read" receipt. (I discovered this when one of the receipts was returned as undeliverable, and confirmed it by sending messages to myself requesting Read receipts and testing various things.)

    AAAAGGGHHH. Nothing worse than blowing your cover.

    The VBA code is simply this:

    <pre>Sub SpamFolderIt()
    Dim selCurrent As Outlook.Selection, intCounter As Integer
    Set selCurrent = ActiveExplorer.Selection
    For intCounter = selCurrent.Count To 1 Step -1
    selCurrent(intCounter).Move _
    Application.GetNamespace("MAPI").Folders("PST Friendly Name Here"). _
    Folders("Spam")
    Next
    If Not (selCurrent Is Nothing) Then Set selCurrent = Nothing
    End Sub</pre>

    What do I do now?? By the way, this doesn't work (it clears the request, but sends the receipt):
    <pre>Sub SpamFolderIt()
    ' Updated 1/1/2004 to TRY to clear read receipt requests
    Dim selCurrent As Outlook.Selection, intCounter As Integer
    Set selCurrent = ActiveExplorer.Selection
    For intCounter = selCurrent.Count To 1 Step -1
    If selCurrent(intCounter).ReadReceiptRequested Then
    selCurrent(intCounter).ReadReceiptRequested = False
    selCurrent(intCounter).Save

    End If
    selCurrent(intCounter).Move _
    Application.GetNamespace("MAPI").Folders("PST Friendly Name Here"). _
    Folders("Spam")
    Next
    If Not (selCurrent Is Nothing) Then Set selCurrent = Nothing
    End Sub</pre>

    This is a real bummer.

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    I didn't see this issue anywhere when I Googled, though I did find an outraged comment that Outlook should keep a copy of issued Read Receipts, which it doesn't do. See a possible CDO VBS fix here. Did you find what VBA method triggers the Receipt Send? I'm wondering if the trigger is changing the ReadReceipt Property, or is it is the Save? If the latter, does setting the UnRead Property to True before the Save help? As an alternative, can you copy the message to the Spam Folder in code, and delete the original by code?
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    John, thanks for searching. I couldn't find any keywords that helped. The script requires Exchange Server (or, more specifically, that IIS is your SMTP server), so the technique isn't applicable to our environment. Unless I start running my own SMTP server. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> Seems a bit drastic for a problem that afflicts more more than 10 messages per day. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

    With respect to the method that triggers the receipt, it's the .Move that does it. If I strip the receipt request programmatically, wait several minutes, and then run the .Move method, the receipt still goes out. It's as though it's hidden in the extended MAPI "property bag" and the checkbox I'm toggling doesn't reach that deep.

    Maybe if I buy a copy of Outlook Spy I can uncover it. Hmmm...

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Seattle, Washington
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    Any reason why you don't break out that nice new free copy of Outlook 2003 you're too busy to deal with? It's much improved spam management features are some of many improvements over previous versions of Outlook....

    kip
    (currently picless in Snowy Seattle)

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    > Any reason why you don't break out that nice new free copy of Outlook 2003

    I'd rather be as compatible as possible with my colleagues than on the cutting edge. It helps me keep things humming around here. I also prefer to wait for the first service pack on all MS products. Preserves remaining hair.

    Added: My regular spam filter is picking up the average of 170 other junk messages per day, it's only the ones that get missed that I have a problem with.

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Seattle, Washington
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    Seems like MS has found a workaround for your remaining hair issue: MS prepares "date driven" Office 2003 SP-1

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Oh no! 'Not Read' Receipts for Spam (2002 SP2)

    Fun stuff. By June I should be ready for a new adventure. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

Posting Permissions

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