Fossil

Check-in [ef2426dc]
Login

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

Overview
Comment:Merge the popen() on windows fix from trunk.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | email-alerts
Files: files | file ages | folders
SHA3-256: ef2426dc9eed5743f764212fce8bdd8d58800a7e083251c26942ac5cb54c889d
User & Date: drh 2018-06-21 15:19:02.895
Context
2018-06-21
17:07
Merge codecheck1 enhancements from trunk. ... (check-in: 4d13d948 user: drh tags: email-alerts)
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:34
Non-working code for the /subscribe and /alerts web pages. This is an incremental check-in. ... (check-in: e91143e8 user: drh tags: email-alerts)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/email.c.
175
176
177
178
179
180
181







182
183
184
185
186
187
188
  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







>
>
>
>
>
>
>







175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
  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