Issue 121579 - Clean-up system mail API
Clean-up system mail API
Status: RESOLVED FIXED
Product: General
Classification: Code
Component: code
3.4.1
All All
: P3 normal (vote)
: 4.0.0
Assigned To: Ariel Constenla-Haile
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-03 21:46 UTC by Ariel Constenla-Haile
Modified: 2013-01-05 18:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation on: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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.