Hi, I could really use feedback on these issues. Please shout if there's anything I've not taken into account. I'd also like go/no from maintainers before doing this - my last MAPI fix is *still* in bug-tracker because there was nobody to review it. I think I can promise to look after my implementation afterwards.
Sending emails is borked at Windows/MAPI. The main issue is that current implementation adds mime-stuff into Docs/Strings it passes to sendEmail- functions. With MAPI you really can't add headers or control MIME (atleast when using Thunderbird.) And atleast not by adding them into body/attachments. I think the nicest way to fix this, and try not to end up in the same situation again, would be to introduce data decls that describe the message and rewrite the sending functions to do the transformations they require. I'd also like to either use Win32-package SimpleMAPI, or bring the file over from that package. Unfortunately I added that module into Win32 only quite recently, and it won't be available by default before ghc 6.6 (but new Win32 does compile with 6.4 series). I think using that interface would fix a number of bugs: * mapi32.dll should be dynamically loaded, because it's not available in all machines that don't have email client * Currently we can only pass few CC/TO recipients * It's haskell (with direct ffi-bindings) * If I bring the module over, we either need to bring (lots of) diffrent extra stuff from Win32, or depend on Win32 (but this time the versions that work atleast back to 6.4, probably 6.2). Win32 is and has been part of the default packages that come with ghc. Best regards, --Esa Ilari Vuokko _______________________________________________ darcs-devel mailing list [email protected] http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
