• Creator
  • #4023

    I developed an applet to backup any msg received in a mailbox, by forwarding it to a general purpose mailbox (archive) with a special subject; in this way sent items folder will be populated whit a lot of auto-generated archive messages.

    Can I define with formativ a procedure for the client to setup, during client startup, a filter on subject + item type, valid only for sent items folder ?

    Actually when I manually define a filter for testing, every folder in gw mailbox get involved.

    Any suggestions ?

    Thanks in advance,


  • Author
  • #6879
    Support 1

    The code sample below finds all sent messages and displays the total number found in a message box. See the Filter syntax for a reference.

    Sub Main(Client, GWEvent)
      dim oMsg
      dim oMessages
      on error resume next
      set oMessages = GroupWise.account.mailbox.messages.find("(MAIL) AND (BOX_TYPE = OUTGOING)")
      if oMessages is nothing then
        exit sub
      end if
      msgbox "Total sent messages: " & oMessages.count
      set oMessages = nothing
    End Sub

    I hope this helps.

    Advansys Support

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.