Aviso de Recebimento

  • 02 Jun, 2008

Uma demanda que surgiu de um amigo meu, e depois de outro e outro, foi fazer com que o Notes avise que alguém
requisitou o “Aviso de Recebimento” ao abrir uma mensagem do Notes. Achei o código em um fórum e ai vai a
receita:

Abrir a caixa postal no designer
Abrir o formulário Memo
Substituir o código no envento QueryOpen pelo código abaixo

Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
     If source.InPreviewPane Then Exit Sub

     ’codigo para retirar o return receipt
     Dim doc As NotesDocument
     Dim res%
     If Not(Source.IsNewDoc) Then
             Set doc=Source.Document
             If (doc.ReturnReceipt(0)=“1”) And (Cstr(doc.DeliveredDate(0))<>“”) Then
                     res=Msgbox(“The sender has requested notification that you have seen this message.” _
                     +Chr(13)+“Do you wish to send the notification?”,35,“Return Receipt”)
                     If res=IDCANCEL Then
                             Continue=False
                             Exit Sub
                     End If
                     If res=IDNO Then
                             doc.ReturnReceipt=“0”
                             doc.Save False,False
                     End If
             End If
     End If
     ’fim do código
     ’\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*
     ’Begin Quota Checking Code
     ’\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*
     Dim check_quota As Integer
     check_quota = False

     If source.IsNewDoc Then
             check_quota=True
     Elseif source.document.HasItem(“IsMailStationery”) Then
             If source.document.GetItemValue(“IsMailStationery”)(0) = 1 Then
                     check_quota=True
             End If
     End If

     If check_quota Then
             Dim quotaCheck As New CheckQuota

             If quotaCheck.isEnabled Then
                     Call quotaCheck.init

                     If quotaCheck.dbQuota<> 0 Then
                             If quotaCheck.dbSize >= quotaCheck.dbQuota Then
                                     Call quotaCheck.DoMessageBox(MB_QUOTAOVER,MB_OK, MB_QUOTAOVER)
                                     Continue = False
                             Elseif quotaCheck.dbSize >= quotaCheck.dbWarning Then
                                     If quotaCheck.dbWarning <> 0 Then
                                             Call quotaCheck.DoMessageBox(MB_QUOTAWARNING,MB_OK, MB_QUOTAWARNING)
                                     End If
                             End If
                     End If
             End If
     End If
     ’\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*
     ’End Quota Checking Code
     ’\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*

     Set cMemoObject = New UIMemoDocument        
     Call cMemoObject.Init(Source,Isnewdoc)
End Sub

Related Posts

Migrating messages from Domino to Google using IMAP

  • 20 Feb, 2022

It's only for messages. No calendar migration Imapsync command is a tool allowing incremental and recursive imap transfers from one mailbox to another. If you don't understand the previous sentence,

Migrating messages from Domino to Google using IMAPRead More

Domino V12 and Verse 2.1 How to add a Photo URL

  • 08 Jun, 2021

Today i setup a Domino V12 server just for test some new features. A customer ask to use photos on Verse hosting photos on Domino. Domino V12 comes with Verse 2.0. I just download the version 2.1 of

Domino V12 and Verse 2.1 How to add a Photo URLRead More

Notes / Domino is forever

  • 04 Feb, 2021

Yesterday it seemed like it would be an ordinary working day but a client called me informing about the expiration of a certifier. It would be normal to resolve the problem with the re-certification p

Notes / Domino is foreverRead More