Solved

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

Posted on 2004-03-22
3
205 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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