Thursday, February 14, 2013

Using Exchange process mailboxes with Java

In a world where servers are under constant attack, the wise will use the few facilities that can be easily hardened in a firewall and with defensive programming, like servlets. Sometimes it is useful to have something more simple than a web service, such as an email service. For example, you could take a picture with your mobile device and mail it to mostlycolor for a consultation by an automated color advisor.

It is easy to find the information to quickly code up an email client using the JavaMail API and the JavaBeans Activation Framework. Suppose your email is martin.muster@mostlycolor.ch with password !@#$% and your host is mailhub.mostlycolor.ch. You the access your mailbox with the simple statement

store.connect ("mailhub.mostlycolor.ch", "martin.muster@mostlycolor.ch", "!@#$%");

In practice, you do not want to use your mailbox for an automated service, but you want to use a so-called process mailbox on your Exchange server, say color.advisor@mostlycolor.ch. This seems obvious, but I was not able to formulate the correct query to find out how to access a process mailbox. Here is what I found out by trial and error.

Suppose your domain is americas and your login name is musterm. The connect statement then becomes

store.connect ("mailhub.mostlycolor.ch", "americas\\musterm\\color.advisor@mostlycolor.ch", "!@#$%");

Pretty simple once you know the syntax!

Tuesday, February 12, 2013

New SPIE open access program

As of January 2013, all new articles published in SPIE journals for which authors pay voluntary page charges are open access immediately on the SPIE Digital Library. SPIE asks journal authors (and their employers or other funders of their research) to provide such support to enable SPIE to hold down subscription prices and maximize access to the research published in SPIE journals. Many authors and institutions provide this support and will now obtain open access for their articles by doing so.

Increasingly, employers and research funders require authors to publish their articles with open access and authors want to do so in order to expand the reach of their research. SPIE provides the benefit of immediate open access for all articles for which voluntary page charges are paid. In these cases, authors retain copyright and SPIE licenses these articles under the Creative Commons Attribution license (CC-BY 3.0).

SPIE recognizes that researchers have modest funds to cover publication expenses. The voluntary page charges will continue to be low: $100 per published two-column page (for journals with both print and online formats) and $60 per published one-column page (for journals with an online format only).

For more information see http://spie.org/x85022.xml