On Jun 21, 2018, at 9:03 AM, Richard Hipp <d...@sqlite.org> wrote:
> 
> On 6/21/18, Eric Dillon <eric.w.dil...@gmail.com> wrote:
>> Fails to compile on Win32 VS2013 (12.0)
>> 
>> email.obj : error LNK2019: unresolved external symbol _popen referenced in
>> function _email_send
> 
> Thanks for the report.  Fixed now.

You might want to change the “sendmail -t” default for Windows as well.  
Requiring that someone use Cygwin, WSL, or a native Windows port of 
Sendmail/Postfix just to get sendmail(1) on Windows seems like a big “ask”.

The more Windows-native methods seem to be one of these options:

    https://stackoverflow.com/q/15433202/142454
    https://superuser.com/q/63081/14927

I think the PowerShell option has the least burdensome requirements, needing 
only a simple script, which we can provide in the Fossil docs.  Here’s a link 
to a forum thread describing how to read stdin from PowerShell, leaving only 
the need to parse it to parameters that can be fed to the SmtpClient.Send() API:

    
https://social.technet.microsoft.com/forums/scriptcenter/98a05368-6a0c-4cf3-bf7e-4bb8ae748fe6

Are there any PowerShell scripters here who can stitch this information 
together into a working script, one that takes RFC 822 via stdin, parses the 
headers and body into variables, and calls the API correctly?

I could probably puzzle it out, but I’d end up writing Perl in PowerShell.  A 
native speaker would do a better job.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to