Revision: 13269 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13269&view=rev Author: vszakats Date: 2009-12-16 20:23:42 +0000 (Wed, 16 Dec 2009)
Log Message: ----------- 2009-12-16 21:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/mapi.c * WIN_MAPISENDMAIL() fixed to set sender as MAPI_ORIG. This is the default value (zero), but we shouldn't assume such things. + WIN_MAPISENDMAIL() recipient arrays elements third parameter is optional. ! WIN_MAPISENDMAIL() fixed to set recipient address type as MAPI_TO by default (if there is no 3rd element or 3rd element is non-numeric). So far it was defaulting to MAPI_ORIG in these case, which is wrong. ! WIN_MAPISENDMAIL() fixed to skip recipient if neither first nor second element is a non-empty string. It may have caused GPFs before. * WIN_MAPISENDMAIL() changed to accept 1st element of file attachment array list as pathname, and 2nd element as optional filename. 2nd element is now truly optional, files won't be skipped if omitted. Original code accepted filename in 1st element, but it's cleaner this way and also testmapi.prg calls it this way, so it might have been a typo. ! WIN_MAPISENDMAIL() fixed file attachments handling to not cause GPF is 1st array element (pathname) is non-string or empty. These items will now be skipped. ; Please retest also with bad parameters. And I'd appreciate if someone could review as it's blind coding. Modified Paths: -------------- trunk/harbour/ChangeLog trunk/harbour/contrib/hbwin/mapi.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour