Search This Blog

Showing posts with label Download. Show all posts
Showing posts with label Download. Show all posts

Thursday, May 21, 2015

How to export Outlook email to Notes mail database

Hi

Here is a working example of my solution which let you export Outlook email to Notes document.

You might see many other similar examples in Internet but my solution handles inline images and attachments. I remember when I was looking for such solution, everything I could find was partly done, so here you probably have the best working example :-)

ypastov.Outlook2Notes.nsf

Few things:
1) Database contains only one agent that does the magic.
2) The agent saves Notes document created from Outlook item in the current database. However the best thing would be to save it into Mail database because it would automatically do some tricks with inline pictures.
3) I didn't implement smart switching between Notes/Outlook windows so if you run solution and see nothing try to switch between Notes/Outlook - probably there is some dialog window waiting for your decision.

Enjoy.

Btw, as you can see this solution start working from Notes client. However recently I developed Outlook Add-in that provided Outlook users with a new button on existing ribbon and let them save email in the Notes Mail database - the same business case but implemented in more native way for Outlook users than clicking some button in some Notes-database.

26.10.2016
Short update.
For months of using my Add-in in production we experienced different issues with fetching SMTPAddress of recipients, senders. I found the way how to fix all issues but decided to not open that code in public since I put there much efforts and time. So, in case you really need to resolve similar issues please contact me privately.

Tuesday, January 15, 2013

"Select Addresses" Web dialog for selecting users from Domino Directory

Hi

If you ever worked on Web applications based on Lotus Domino you might need a Web implementation of a standard "Select Addresses" dialog for selecting users from Domino Directory.

Though the first thought that came on my mind when I started to work on this task was to utilize a standard "Select Addresses" Web dialog - I did not find any way how to do that.

I am talking about this iNotes dialog window:

Monday, January 14, 2013

Files Zipping

Hi

I want to share with you a simple solution for zipping files using Java capabilities.
On the bottom of this post you may find an nsf-file that contains one Java library - ZipFile.
'ZipFile' Java library contains one class ZipFile with a single method zipMyFile:

zipMyFile(String filesToZip, String zipFilePath, String compressionLevel, boolean withFolderTree)

Honestly speaking, I did not write it from the scratch.
I found some examples in Internet and reworked them into this solution.

Method zipMyFile works with 4 parameters:
  • a list of files you want to zip joined via '|', every file should contain an absolute path.
  • an absolute path for output zip-file
  • compression level: BEST_COMPRESSION, BEST_SPEED, DEFAULT_COMPRESSION, DEFAULT_STRATEGY, DEFLATED, FILTERED, HUFFMAN_ONLY, NO_COMPRESSION
  • boolean flag that defines if zipping files should save their folders tree inside of output zip-file. If you set this flag to 0, then all files will be zipped to the root of zip-file.

Except this Java class, database contains form 'ZipFile' for testing purposes.

Note: this solution does not check a case when user selects a few files from different folders but with the same name and parameter withFolderTree = 0. In this case user gets an error since it is impossible to have a few files with the same name in the root of zip-file.

ypastov.zipping.nsf

Friday, January 11, 2013

How to get internet addresses from Lotus Notes email

Hi

I do not know if you ever need this but you may find here my implementation of functions which may help you to extract internet addresses from Lotus Notes email. The challenge here is that there are many different aspects which affect on implementation: number of email items and their relationship, way of sending/receiving, email type etc.

I will try to list the main dependencies which affect in implementation below:

Class-helper for working with database ACL

Hi

If you need a simple tool for working with database ACL in your application you may use my class-helper.

It is quite simple and there are only basic methods there, nothing complicated and specific:

  • ExpandGroups (groupNames As Variant)
  • GetUserAccess(ByVal username As String)
  • GetUserRoles(ByVal username As String)
  • GetUsersWithRole(ByVal rolename As String)
  • HasRole(ByVal username As String, ByVal rolename As String)

Class-helper for working with ACL.lss