Solved

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

Posted on 2004-03-22
3
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 30 total points
ID: 10650191
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
ID: 10650210
Hi rbender,

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

Cheers!
   Sjef
0
 

Author Comment

by:rbender
ID: 10650658
yep...that does it.
Thanks.

0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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