?
Solved

Lotus Notes - Auto Saving an attachment from a certain sender

Posted on 2008-10-29
2
Medium Priority
?
281 Views
Last Modified: 2013-12-18
Hi !

is there a way to create a rule / script which will autosave an attachement (csv file) i get from a certain sender?

i dont mind using 3rd party applications

thanks :)
0
Comment
Question by:m0tek
[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
2 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 22830311
0
 
LVL 1

Assisted Solution

by:johnjardin
johnjardin earned 500 total points
ID: 22832474
Create an Agent that runs on selected documents and paste the below code inside the agent.

You can run this from an action menu, or from a button.

You will notice the code is simple enough to change in order to run it on different triggers, ( e.g. automatically when new mail arrives ).

Hope this helps
Sub Initialize
	' CONSTANTS
	Const FILE_PATH = "D:\My Images\"
	
	' VARIABLES
	Dim ss As New NotesSession
	Dim db As NotesDatabase
	Dim col As NotesDocumentCollection
	Dim doc As NotesDocument
	
	Dim myitem As Variant
	Dim index As Integer
	
	' CODE
	Set db = ss.CurrentDatabase
	Set col = db.UnprocessedDocuments
	Set doc = col.GetFirstDocument
	
	index = 0 
	
	While Not( doc Is Nothing )
		Set myitem = doc.GetFirstItem( "Body" )
		
		If ( myitem.Type = RICHTEXT ) Then
			Forall v In myitem.EmbeddedObjects
				index = index + 1
				Call v.ExtractFile( FILE_PATH & v.Name )
				
			End Forall
		End If
		
		Set doc = col.GetNextDocument( doc )
		
	Wend
	
End Sub

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 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