lotus-notes

LotusScript cannot get file attachment from email

痞子三分冷 提交于 2020-01-01 17:56:14
问题 I had never run into this problem, but I cannot get a handle on a file attachment on an email. I have code that can either search the document for Embedded Objects or search a field for Embedded Objects -- neither of them are returning the file. I can see the file on the email and I can see the $FILE field which contains the file attachment. Here is the code: Function FileDetachFiles(doc As NotesDocument, fieldName As String, getFromField As Integer) As Variant On Error Goto ProcessError Dim

Can I return a List from a LotusScript Function?

牧云@^-^@ 提交于 2020-01-01 11:33:42
问题 I want to return a List from a Function in LotusScript. eg. Function myfunc() List As Variant Dim mylist List As Variant mylist("one") = 1 mylist("two") = "2" myfunc = mylist End Function Dim mylist List As Variant mylist = myfunc() Is this possible? If so, what is the correct syntax? 回答1: It seems you can't return a List from a Function. You can easily wrap it in a class though and return the class. eg. Class WrappedList Public list List As Variant End Class Function myfunc() As WrappedList

Send mail in Lotus Notes using python

混江龙づ霸主 提交于 2020-01-01 03:49:06
问题 i need help for send a mail in the Lotus Notes using python, appear that the win32com can do it, but i don't found any complete example or tutorial. My idea is a simple function like it: from win32com.client import Dispatch import smtplib def SendMail(subject, text, user): session = Dispatch('Lotus.NotesSession') session.Initialize('???') db = session.getDatabase("", "") db.OpenMail(); Some suggestion? Thanks! 回答1: Below is some code that I have used for this purpose for several years: from _

“Query is not understandable” - Full text searching where field types have changed

Deadly 提交于 2019-12-31 05:15:13
问题 A client have a long lived IBM Notes application where someone along the line changed the type of a field from number to text. So, now when we're trying to do an FT search like: [myField] = "1234" receive the error message: "Query is not understandable". If I do: [myField] = 1234 it works but won't return any hits. Even though there's a document where myField = "1234". The field is of type text in the design. I've created a new view for testing, only allowing documents from one form. Deleted

How to Access attachments from Notes mail?

我与影子孤独终老i 提交于 2019-12-30 12:14:08
问题 I am want to access attachment of particular mail in Lotus Notes. I am getting Attachment name with $File. But i want to extract this attachments and want to save it in user specified path.Using C#. 回答1: It should be something similar to below, not sure if I have the correct sintax for c# though. NotesRichTextItem rtitem = doc.GetFirstItem("name") if ( rtitem.Type = 1) { foreach (NotesEmbeddedObject o in rtitem.EmbeddedObjects) { if ( o.Type = 1454 ) { o.ExtractFile( "c:\samples\" & o.Source

API to integrate with Domino

陌路散爱 提交于 2019-12-30 08:53:51
问题 I am a relatively newbie to Lotus/Domino world and have been tasked with the following Domino task. Access user's Domino mailbox (from a middleware server) and delete certain malicious emails from the same. Additional Background - There is a external security tool/process that analyzes all incoming email and can flag the email as malicious. In the event it is flagged as malicious then I want to delete this email from the respective user's inbox. The Domino server deployed in my environment is

Get table names from lotus notes database

匆匆过客 提交于 2019-12-29 05:38:07
问题 I'm trying to write a program that would dump a whole lotus notes database to a file via NotesSQL driver. I'm connecting via jdbc:odbc and have I can execute selects and get data from Lotus notes database here is the code try { System.out.print("Connecting... "); Connection con = DriverManager.getConnection("jdbc:odbc:NRC", "UserName", "Passw0rd1337"); System.out.println("OK"); DatabaseMetaData dmd = con.getMetaData(); String[] tableTypes = new String[] {"TABLE", "VIEW"}; ResultSet rs = dmd

Lotus Domino Create Standard Location / Signature

时光怂恿深爱的人放手 提交于 2019-12-25 09:40:16
问题 Is this possible for my request? I would like to create a un-changaeable or definite (locations and signature) for each user on Lotus Domino..if possible on server-side, I do believe the only was creating a template for each user. Is there a possible way a template but dynamically changes on user logon so that his/her signature will vary also. Thanks guys.. 回答1: I would suggest looking at a 3rd party tool, for exampel Crossware Mail Signature. If I understand it correctly when talking to them

html email with tables send from plsql package and viewed in lotus notes

强颜欢笑 提交于 2019-12-25 09:10:45
问题 I was trying to send html from oracle plsql package..the code worked and i received the email in lotus notes client. But the html table gets shrunk when window size is changed in lotus notes. Please help me what should i put in html code to avoid this.. In the table style, i had included table layout : fixed, cellpadding and cellspacing to zero also included max width and min width and max height and min height to lock the table from getting shrunk. Here is my code: <html> <head> <style>

Xpages an issue with jar file

帅比萌擦擦* 提交于 2019-12-25 08:48:03
问题 I've created a "*.jar" file with Intellij IDEA and added to IBM Notes Domino 9 with Code -- Jars -- Import Jar. I can see my packages in classes which stored in "Code -- Java") but i have an error when i try to use my jar in xpages code: I have a simple code on my test xpage: importPackage(com.ibm.ibateam.sources); var area = new Area("first"); getComponent("label1").setValue(area.getUnid()); but this code throws exception: Script interpreter error, line=2, col=16: [ReferenceError] 'Area' not