lotus-notes

Produce an iCal appointment and subsequent updates via email but don't offer accept/decline options

微笑、不失礼 提交于 2019-12-24 00:35:34
问题 We are writing a system that has a booking feature, and we are planning to have it send *.ics files via email to attendees so they can easily add appointments to their calendars. The types of events are things like training courses (e.g. 3pm in the boardroom). We've got this working to the point that the system sends the *.ics, and using Gmail and Outlook, the user can accept the appointment which, is then added to their calendar. Sometimes an event changes (e.g. a course is cancelled or

Out of office service activation with an run on server agent

倾然丶 夕夏残阳落幕 提交于 2019-12-23 21:56:55
问题 Is there an documentation or an easy solution how i can activate the out of office service in an user mailfile with an external run on server agent? I tried it like this, but it does not work... Dim s As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Dim dt As New NotesDateTime(Now) Set db = s.Getdatabase("SERVERNAME", "MAILFILE") Set doc = db.Createdocument() doc.AppointmentType= "2" doc.BookFreeTime = "" doc.CreatedByAgent = "1" doc.ExcludeFromView = "D" doc.Form =

Is Interop.Domino dll thread safe?

拜拜、爱过 提交于 2019-12-23 20:31:05
问题 I am using Interop.Domino dll version 1.2 in c# application, and using multithreading to access multiple NSF file at same time by creating new session for each thread created (Max 5 threads at a time). For the large NSF files, I was getting the Notes error like memory segment overflow. To overcome this problem, i used Marshal.ReleaseComObject(object) to release the necessary Notesdocument, and NotesView object where ever possible. Now, the issues is like, i am able to access 2 NSF files but

Import SSJS script library using DXL in a database

[亡魂溺海] 提交于 2019-12-23 19:16:12
问题 We need to import a SSJS library in a database using DXL. For this we have written a Java Agent and its code goes something like this: import lotus.domino.*; public class JavaAgent extends AgentBase { private DxlImporter importer = null; public void NotesMain() { try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); String filename = "C:\\tempssjslib.xml"; Stream stream = session.createStream(); if (stream.open(filename) & (stream.getBytes() > 0)) {

Encapsulate ActiveX for JavaScript

ぐ巨炮叔叔 提交于 2019-12-23 16:03:42
问题 I'm trying to develop an website that can use a specific mailing program (lotus-notes), but to do so, I need to create a Session with the application that usually was created using an ActiveXObject() object. The problem is that I won't be the end user of the website, and I do not want to create a website not user friendly, always asking for the user to add extensions in order to make the website functionalities work. I am doing my best to find a workaround to the use of ActivateXObject(),

Attaching multiple files through MIMEs to a document in Lotus Domino

倾然丶 夕夏残阳落幕 提交于 2019-12-23 13:06:24
问题 In our enterprise application we need to attach files to a document. We have the filename and the content of the file in a byte array. I found a solution to attach a file to a document with MIMEs: final MIMEEntity body = document.createMIMEEntity(fileName); final MIMEHeader bodyHeader = body.createHeader("Content-Disposition"); final boolean isHeaderValSet = bodyHeader.setHeaderVal("attachment; filename=\"" + fileName + "\""); if (!isHeaderValSet) { throw new ComponentException("Could not set

Flying Saucer in Lotus Notes

无人久伴 提交于 2019-12-23 12:54:38
问题 I was trying to convert simple XHTML-files to PDF, and used Flying Saucer and iText to do so. It worked without problems in Java, however, when I tried to make a Lotus Notes agent with the same code, I got an exception I am unsure how to deal with. The code: import lotus.domino.*; import java.io.*; import com.lowagie.text.DocumentException; import org.xhtmlrenderer.pdf.ITextRenderer; import org.xhtmlrenderer.util.XRLog; import java.util.*; public class JavaAgent extends AgentBase { public

Automated processing of an Email in Java

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 12:43:09
问题 Just got a request from my boss for an application I'm working on. Basically we're getting an email address setup for an external client to submit excel files to. What I need is a way to automatically pick up any email sent to this address, so I can take the attachment, process it and save it to a folder. Any information of even where to start would be helpful.\ Note: We're using a lotus notes server to do this, but a generic way would be more helpful (If possible). 回答1: Email -> mailserver -

Automated processing of an Email in Java

橙三吉。 提交于 2019-12-23 12:42:18
问题 Just got a request from my boss for an application I'm working on. Basically we're getting an email address setup for an external client to submit excel files to. What I need is a way to automatically pick up any email sent to this address, so I can take the attachment, process it and save it to a folder. Any information of even where to start would be helpful.\ Note: We're using a lotus notes server to do this, but a generic way would be more helpful (If possible). 回答1: Email -> mailserver -

Why is build time of local application affected by network?

纵饮孤独 提交于 2019-12-23 08:56:35
问题 Build time of XPages application containing several JARs, Java sources and ~50 XP/CC elements takes about minute to build on server via WAN. I have replicated application to local, build time dropped to ~10s. Since few days ago build of local application is extremely slow, about 2-5 minutes. After some experiments there is workaround: to disable TCP port in location document - it drops build times to just few seconds. Even tho it works, it does not help much - testing requires user to be