Solved

Need this Script tweeked abit to get me to where I need to be....

Posted on 2004-03-22
3
201 Views
Last Modified: 2013-12-18
Here is my current Lotus Script....
Right now the document comes into my mail and is picked up by this agent.
It is then put into the "New Summary" Folder( and saved there).
I need it to be not only put into "New Summary" but then removed from my mailbox.
Right now when I remove it from mailbox, it gets removed from "News Summary" as well.

 

Sub Initialize
      Dim session As New Notessession
      Dim db As notesdatabase
      Set db = session.currentdatabase
      Set doccoll = db.unprocesseddocuments
      Set doc = doccoll.getfirstdocument
      Dim fileNum As Integer
      If Not doc Is Nothing Then
            fileNum% = Freefile()
            Set rtitem = doc.GetFirstItem( "Body" )
            If ( rtitem.Type = RICHTEXT ) Then
                  plainText = rtitem.GetFormattedText( False, 9999 )
            End If
' get a file number for the file
            fileNum = Freefile
' open the file for writing
            Open "c:\plane.txt" For Output As fileNum
' write the formatted text to the file
            Print #fileNum, plainText
' close the file
            Close #fileNum
      End If
      Call doc.putInFolder("News Summary")
      'Call doc.remove(True)      
End Sub
0
Comment
Question by:rbender
3 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 30 total points
Comment Utility
I think what you mean is: You want it removed from you INBOX, not your MAILBOX.  The whole of your mail folders TOGETHER are all part of your mailbox.

     End If
     Call doc.putInFolder("News Summary")
     doc.removeFromFolder "($Inbox)"
End Sub
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Hi rbender,

The Inbox is a Folder as well, not a View, so you should use RemoveFromFolder.

Cheers!
   Sjef
0
 

Author Comment

by:rbender
Comment Utility
yep...that does it.
Thanks.

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now