Apache OpenOffice (AOO) Bugzilla – Issue 121579
Clean-up system mail API
Last modified: 2018-03-12 08:43:34 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)
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.