Autor Thema: how I will modify the doc with an agent "Before New Mail Arrives" ?  (Gelesen 902 mal)

Offline Toma Bogdan

  • Aktives Mitglied
  • ***
  • Beiträge: 146
  • Geschlecht: Männlich
  • That's me ...
    • A nice site !
I have a mail-in database and I want to modify a mail doc before arrive to this db. I created an agent with trigger "Before New Mail Arrives" but I will took this new doc and modify something in it  ???

How does know the agent which is mail and which is not ? Based on internal variable "Form" of the form "Memo"  :o

x !

Offline Toma Bogdan

  • Aktives Mitglied
  • ***
  • Beiträge: 146
  • Geschlecht: Männlich
  • That's me ...
    • A nice site !
the solving....
« Antwort #1 am: 29.10.02 - 15:11:48 »
the solution.... x ! anyway  ::)

Code
Dim s As New notessession
Dim dbMail As notesdatabase
Dim NewMails As notesdocumentcollection
Dim mail As notesdocument
Set dbMail=s.currentdatabase
Set NewMails=dbMail.unprocesseddocuments

Set mail=NewMails.GetFirstDocument
   
While Not mail Is Nothing
   mail.Name="YYY"         
                mail.save True, True      
   Call s.UpdateProcessedDoc( mail )
                Set mail=NewMails.GetNextDocument(mail)
Wend
« Letzte Änderung: 29.10.02 - 15:12:39 von Toma Bogdan »

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz