I'm trying to extract all emails and chat history of a person from his nsf file (lotus notes). I'm using Notes.jar. All the entries in nsf files are documents. Is there a way to identify which document is email and which document is chat. There is an item named "Form" which is used to identify mails (memo), meeting invites (appointment). The problem I face here is both email and chat has form type "Memo".
Kindly suggest me a way to differentiate between email and chat.
You are right: Both kind of documents have form Memo.
Chat- Transcripts in addition have an item $IMTranscript that identifies them.
I found out this fact, using the Icon- Column of the All Documents- view ($All), as Chat- transcripts have different icons in that view. Here is the relevant part of that formula:
#IsAvailable($IMTranscript) & #LowerCase(IMoriginator) = #LowerCase(IMowner);
"ChatTranscriptMe.gif";
#IsAvailable($IMTranscript); "Chat_transcript_icon.gif";
Related
We have an old client application from which users want to be able to send individual documents (many fields, many of them rich text with and without attachments in each) via email to people without Notes clients (or access to Notes). I am able to generate the email and include the attachments, but the body of the email is plain text and the form is very long, so it's line after line of appendText to grab the field data to include in the email. It's ugly! Is there any other way to go about this? Looking for other ideas. Thank you!
Your best bet is probably to write code that creates a new mail message, accesses the document you want to send, and use the NotesDocument.RenderToRTItem method to include the visible contents of that document in the new message.
I have a survey that will rate the "Seller" regarding the "Performance" and "Improvement". I need to send an email notification together with an actual copy of my rating. What command can I use?
Attached is the screen capture of the actual survey. In that example, Janine must be able to see through email my rating for her.
Survey
You could create a separate Form defined "On Create: Inherit entire selected document into richtext field / as rich text".
when your survey is open, compose this form, copy the Rich Text content and put it in a mail.
You can also design this form to be mail ready (call the Rich Text Body, add the sendto field...)
I've got an email processing agent. It copies the body of the email into a document's rich text field. If there are any embedded links in the email I want to process that embedded link and extract the url. I started playing around with MIMEEntity but nothing came of it. Any ideas?
thanks
clem
================
Hi Rich,
Well here's a more robust explanation of what's going on. I have several Notes apps which deal with email correspondence. An email comes in, a Notes document is created with some meta data (system generated ID, user's email, name, company, status, etc). The email body is added to a 'correspondence' rich text field of the created Notes doc. The app allows for someone on our side to follow up on the email (ask a question, provide some feedback, etc). That response from us is pre-pended to the original email. If the original sender responds with some further information, THAT email is also pre-pended. To do this pre-pending, I do
bodyText = EmailDoc.GetFirstItem("Body").text
textFromNotesDoc = CTdoc.GetFirstItem("Issue").text
newTextFromNotesDoc = bodyText + <some stuff> + textFromNotesDoc
I then do a replace.
This worked perfectly fine for years. However, recently users have been sending in emails containing embedded links. Of course anything like that is lost when I do the NotesDocument.GetFirstItem().Text. So I've been trying to think of a way to capture the embedded link. The other day it occurred to me that if I could read the html, I could find and extract the url and simply add it to text. I thought maybe using NotesMIMEEntity would allow me to read through the body field and find the url but that's not working.
Clem
The solution is to NOT NotesDocument.GetFirstItem().Text. Just simply take the email coming in and prepend the body field to the discussion RT field. I add tags to the email going out so that I know if the person responding included the previous conversation. That took a little work to figure out but by using NotesRichTextNavigator and related classes, I'm able to deal with that.
clem
we have a customized maildb, the appointment form has custom (CRM) items. As far as I see, I cannot fill/update these items by the new notes (9.x) ical classes?
As a workaround I update these fields after "icalling", via the backend document, but (of course) invited people only get the original ical infos, not the custom items.
Any way to fill in the custom items BEFORE the invitations will go out?
Thanks for any help,
Uwe
I work in a development/support team which has a shared Lotus Notes mailbox. We need to be able to associate an issue ID with each email. We started by adding this ID to the subject line (eg. "Something doesn't work [ID12345]"). For performance reasons, our IT dept don't allow indexing of shared mailboxes, so it takes a long time to search for a particular ID.
I decided to add a new ID field, which can be shown as a sortable column in views and folders. I put this field to the visible header (just below 'Subject') in the ($All) view and the ($Inbox) folder, and copied the ($Inbox) design to all the other folders in the database. That much was easy.
My problem is that when we reply or forward, this custom field is not carried over to the new memo, so we have to manually add it again before sending. And of course when the user responds, the field is again missing and must be manually added. I have searched the docs and the internet and haven't found any information on this. Either I have to declare this field as something which persists across replies and forwards, or I have to add a line somewhere which explicitly copies the field contents to the new memo.
fsw,
We do exactly this with our complaint system however our database is indexed although this should not be an issue to you. We created a view that is sorted by ID by extracting just the ID from the subject line, order it by ID and then by date descending. Base it on the $ALL folder view so you get both incoming and sent emails.
We then altered the memo form to include an embedded view single category of the new view that sits above the body which shows all other documents linked to the ticket.
This should avoid having to delve to far into the very complex mail template any further. One thing is to make sure you have a copy of the changes you made and a bit of doco re deploying as you can guarantee that one day your template will be completely overwritten in an upgrade and all your good work will be gone.
As the additional field would have to incorporated into all Memo forms in mail templates in your corporation and as these fields do not easily travel via SMTP, you should stick with the ID in the subject.
What you could do is to parse the subject (#Mid, #Right, ...) in the column formula in the view and only display the ID there (like you did with the additional field).
The other option I envision if having a field is required is to have an agent that processes the incoming message(reply) to have it parse out the issue ID from the subject and write it to the field. You could also do that with queryopen or postopen if running an agent is not possible