Fossil

Check-in [565b5ff0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Provide an implementation for popen() and pclose() on Windows to fix the build.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 565b5ff0c29e6b3198f167f171279c1ccc6959ceb47d7ad2c78aa3cb4b6d6c6d
User & Date: drh 2018-06-21 15:02:42
Context
2018-06-21
16:40
Strengthen the codecheck1.c utility program to help find cases where query parameters are used in unsafe ways. No unsafe usage of query parameters was detected in the current code. check-in: bb9233a6 user: drh tags: trunk
15:19
Merge the popen() on windows fix from trunk. check-in: ef2426dc user: drh tags: email-alerts
15:02
Provide an implementation for popen() and pclose() on Windows to fix the build. check-in: 565b5ff0 user: drh tags: trunk
12:24
Remove the configuration of the show-version-diffs property from the /setup_timeline page as that property is no longer used. check-in: 8d230be4 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/email.c.

170
171
172
173
174
175
176







177
178
179
180
181
182
183
  n = blob_size(pMsg);
  for(i=0; i<n; i+=54){
    k = translateBase64(blob_buffer(pMsg)+i, i+54<n ? 54 : n-i, zBuf);
    blob_append(pOut, zBuf, k);
    blob_append(pOut, "\r\n", 2);
  }
}








/*
** Send an email message using whatever sending mechanism is configured
** by these settings:
**
**   email-send-method    "off"   Do not send any emails
**                        "pipe"  Pipe the email to email-send-command







>
>
>
>
>
>
>







170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
  n = blob_size(pMsg);
  for(i=0; i<n; i+=54){
    k = translateBase64(blob_buffer(pMsg)+i, i+54<n ? 54 : n-i, zBuf);
    blob_append(pOut, zBuf, k);
    blob_append(pOut, "\r\n", 2);
  }
}

#if defined(_WIN32) || defined(WIN32)
# undef popen
# define popen _popen
# undef pclose
# define pclose _pclose
#endif

/*
** Send an email message using whatever sending mechanism is configured
** by these settings:
**
**   email-send-method    "off"   Do not send any emails
**                        "pipe"  Pipe the email to email-send-command