Issue 121579

Summary: Clean-up system mail API
Product: General Reporter: Ariel Constenla-Haile <arielch>
Component: codeAssignee: Ariel Constenla-Haile <arielch>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: issues, oooforum
Version: 3.4.1   
Target Milestone: 4.0.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Ariel Constenla-Haile 2013-01-03 21:46:24 UTC
The com::sun::star::system module provides two services to send mails via a MUA in the target system:

com::sun::star::system::SimpleCommandMail
com::sun::star::system::SimpleSystemMail

These are presented as two different services, but in fact they are the implementation of the same interface (XSimpleMailClientSupplier), one in Windows and the other in *nix systems: 

* SimpleSystemMail is the Windows implementation that uses the Windows Simple MAPI to send mails through the default mail client configured in the Windows system

* SimpleCommandMail is the *nix implementation that launches, via the command line, a mail client configured in the Tools - Options... - Internet - E-mail dialog.

The API should be redesigned to:

* hide implementation details, and present a single service, removing the need to check which service is available on the target platform

* simplify the general naming, removing the redundant "Simple" naming, in services, interfaces, methods, et al. (what seems to be only a reflection of the Windows Simple MAPI)
Comment 1 Ariel Constenla-Haile 2013-01-05 18:56:33 UTC
Changes applied in revision 1429067

The two main services and the interface they implement have been removed:

com::sun::star::system::SimpleCommandMail
com::sun::star::system::SimpleSystemMail
com::sun::star::system::XSimpleMailClientSupplier

they have been replaced by a new-style service:

com::sun::star::system::SystemMailProvider
com::sun::star::system::XSystemMailProvider

The word "Simple" has been removed from

com::sun::star::system::XSimpleMailClient
com::sun::star::system::XSimpleMailMessage
com::sun::star::system::SimpleMailClientFlags

They are now named

com::sun::star::system::XMailClient
com::sun::star::system::XMailMessage
com::sun::star::system::MailClientFlags


All the methods of com::sun::star::system::XSimpleMailMessage have been converted to interface attributes.