Solved

Lotus Notes - Auto Saving an attachment from a certain sender

Posted on 2008-10-29
2
278 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
2 Comments
 
LVL 46

Accepted Solution

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

Assisted Solution

by:johnjardin
johnjardin earned 125 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

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

Title # Comments Views Activity
Saving email w/ attachments using lotus notes 7 296
Adjusting times for a meeting room 3 142
DAOS - Backup / Restore 2 185
@Mailsend 3 56
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

815 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

8 Experts available now in Live!

Get 1:1 Help Now