199 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Swiper Official Version 2 Release
Fri, Jul 21st 2017 114
Auto-width Bootstrap Column XPages Controls
Tue, Mar 21st 2017 4
Swiper FP8 Version Beta Release
Thu, Mar 16th 2017 2
Swiper FP8 Integration Rollout
Wed, Mar 8th 2017 3
Markdown XPages UIControl
Sun, Mar 5th 2017 4
TextDiff XPages control – For visual comparison of text
Tue, Feb 28th 2017 1
XPages webmail – Using Mime Inspector to debug Mime
Tue, Feb 14th 2017 9
Top 10
Swiper Official Version 2 Release
Fri, Jul 21st 2017 114
Pasting Images into XPages CKEditor
Sun, Feb 12th 2017 14
XPages PhoneNumber Control - Part 2 Upgrades to the Converter
Mon, Feb 23rd 2015 10
XPages webmail – Using Mime Inspector to debug Mime
Tue, Feb 14th 2017 9
Preventing pasting of remotely hosted images in CKEditor
Mon, Nov 14th 2016 8
Tips for Creating a Webmail UI with XPages
Tue, Apr 19th 2016 7
Happy New Year / Blog / Domain!
Mon, Jan 11th 2016 6
Uploading Plugins Headlessly to Open Eclipse Update Site
Sat, Jul 18th 2015 6
My Slides from AUSLUG 2016 Presentations
Fri, Apr 15th 2016 6
Webmail UI – You must learn about MIME
Wed, Apr 20th 2016 6


Tips for Creating a Webmail UI with XPages
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
camerongregor    

Over the past year my main project has been an XPages application for project-related Email correspondence, with formal document management thrown it as well and a bunch of Action Item / comment functionality surrounding it all.

Developing the application as it’s own email client presented a few different challenges that may not be encountered in normal xpages development. Along the way I have come across a few different gotchas that I thought I better make record of, both the the benefit of others and also for the benefit of the ‘Future Cam’ when I forget what I did.

The previous incarnation of this system was a classic notes application. It was purely a repository (or dumping ground) for emails and attachments. Users mail-file templates were modified so that they could ‘send and file to repository’. When external project related emails arrived in their personal inbox, they could ‘copy to the repository’. So all the email composing and viewing was done in the notes client, it was purely a copy-and-file style of application.

In the new XPages system, each project has it’s own NSF, with a mail-in address. For incoming emails, all project-related correspondence must be sent to this address. For outgoing emails, all emails must be sent from the XPages interface instead of from the user’s own mail database.

Each topic will be it’s own separate blog post, I will list the topics below and when the blog posts come out I will link them here.
I have most of these posts 50% done, so if you want to know more about any please leave a comment or message me on twitter and you might just give me the motivation to finish that topic next. Most of this info was hard won, with lots of trial and error, lots of researching, lots of pain, lots of late nights. So I hope you get some benefit from it!

As each topic is done, I will update this list with the link.

  • MIME
    • You must Learn about Mime!
    • Debugging mime using the MimeInspector (patent pending)
  • Drafting an Sending Email
    • The many ways to Send an email
    • Binding to a Java Bean
    • Autosaving Message drafts
    • Adding and updating mail signatures
    • Preventing pasting of remotely hosted images
    • Preventing pasting of Data URI images
    • Uploading images as inline attachments when Pasted
    • Formatting lost when saving a draft message
    • Using javax.internet.InternetAddress
    • InputRichText can’t be used in Embedded Experiences, unless…but still
  • Don’t run ToolsRefreshAllDocs on any of your emails!
  • Problems with Incoming email messages
    • That Contain a message/rfc822 mime part
    • That Contain embedded images that won’t display in XPages
    • That Contain Attachments you can’t download with XPages Download
    • That Contain a <form> element or DOCTYPE


---------------------
http://camerongregor.com/2016/04/19/tips-for-creating-a-webmail-ui-with-xpages/
Apr 19, 2016
8 hits



Recent Blog Posts
114
Swiper Official Version 2 Release
Fri, Jul 21st 2017 1:52p   Cameron Gregor
So I have finally posted Swiper version 2 to OpenNTF! (and Github of course) Swiper OpenNTF Project Page Swiper Github Releases The latest version is 2.0.1,  and is the same as 2.0.0beta but with a bug fix for the toolbar buttons. Swiper 2.0.0 beta has been available on the Github project site for a few months, and the core functionality of it works as planned. There was however a bug within the shortcut buttons that I added to the menu bar, and this is a bit of a nasty bug that can cause del
4
Auto-width Bootstrap Column XPages Controls
Tue, Mar 21st 2017 1:13p   Cameron Gregor
I’ve been stuck working with OneUI Version 3 for the past couple of years, due to a regretful decision made at the beginning of my major project. OneUI was better than nothing but very frustrating at times. Finally, I have moved on to my next project and I am now using bootstrap (version 3) A common task when laying out a page using bootstrap is to divide sections up into rows and columns, and use the appropriate css styles to do so. I’m going to assume you are familiar with bo
2
Swiper FP8 Version Beta Release
Thu, Mar 16th 2017 12:50p   Cameron Gregor
Last week I released the ‘alpha’ version of Swiper which was untested on FP8 but presumed to be ok. So far I have only had good reports from the pioneers who have gone ahead and installed FP8 + the alpha version. I have since managed to ugrade my home office setup to FP8 which unfortunately has broken my ability to launch designer from eclipse but I am seeking some advice on fixing this up. In the meantime I have to test the slow way of building plugins, import plugins, restart R
3
Swiper FP8 Integration Rollout
Wed, Mar 8th 2017 12:43p   Cameron Gregor
Notes Domino 9.0.1 FP8 is finally here and as far as I know (I have yet to download it) it includes the necessary changes which will allow Swiper to swipe whatever it wants, whenever it wants, which is good news for people who don’t like to have ‘Build Automatically’ turned on. Plan of Attack for release of Swiper version 2.0.0 So, I haven’t actually downloaded FP8 yet,  so I can’t say for sure that the updated version works perfectly. Here is a bit of backgrou
4
Markdown XPages UIControl
Sun, Mar 5th 2017 11:44a   Cameron Gregor
Often when I’m designing an xpage, there might be a section of the page in which I want to explain some instructions to the user. Some options here are to: write the Instructions using html and embed directly in the xpage markup write the Instructions directly in the design pane and format using designer’s ui e.g. bold, color, size etc use some native xpage controls to achieve the desired result. Write the instructions in a richtext field on a notes document that is loaded to dis
1
TextDiff XPages control – For visual comparison of text
Tue, Feb 28th 2017 12:00p   Cameron Gregor
A few years back I stumbled across Google’s diff-match-patch project which provides some handy algorithms for text manipulation. At the time of discovery I was doing ‘classic’ notes development. Although I probably could have implemented something that worked in lotuscript with RichText or Mime, it wasn’t a priority at the time and I never bothered. Since then, I have been doing mainly XPages, and now that I have been also doing a bit of XPages Control development. I was
9
XPages webmail – Using Mime Inspector to debug Mime
Tue, Feb 14th 2017 11:12a   Cameron Gregor
In a previous post in this series I did a bit of an overview on how MIME works. We also did a little bit about how MIME works in XPages + Domino land. With this knowledge in hand we can now start to analyse the different ways a ‘Pretty words, pictures and attachments’ can be stored in the document. During development of the ‘XPages Webmail’ interface, I encountered many problems which could only be solved by investigating the MIME content in detail. To help me do this, I
14
Pasting Images into XPages CKEditor
Sun, Feb 12th 2017 10:00p   Cameron Gregor
Programs like ‘Snipping Tool’ on Windows, are super useful for users to make a quick snapshot, do some quick markup on the image, paste into chat/email and send. Unfortunately when using the default configuration of CKEditor in XPages (the inputRichText control), support for pasting images is not available for all browsers, and even for the ones that do support it, the images are only pasted as a PNG data URI. I have explained data URI images in a previous post, so check that out if
8
Preventing pasting of remotely hosted images in CKEditor
Mon, Nov 14th 2016 11:21p   Cameron Gregor
In the previous post, I showed how to prevent a user from pasting Images from the Clipboard into CKEditor. This post is of a similar nature but is designed to ensure that users don’t paste images with URLs to external / internal applications. This post is part of my XPages webmail tips series, and addresses a problem where, a user copies and pastes some HTML that includes images, from a webpage and pastes it into CKEditor for a message that is then sent via email. The recipient is then una
4
Preventing Pasting of Images in CKEditor
Mon, Nov 14th 2016 12:43a   Cameron Gregor
In the process of developing our XPages ‘Webmail’ interface, we discovered that many recipients were unable to view embedded images in the emails. After investigating, it was caused by the images being embedded using Data URIs. Support for Data URI Images is not universal, and because it is supported in IBM Notes, everything looked like it was working ok, but a quick test viewing an email in Gmail confirmed a problem when images could not be seen. What is a Data URI? You are most lik




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition