kc3-lang/smtp/src

Branch :


Log

Author Commit Date CI Message
a60e60b0 2019-04-20 11:03:09 Replace ternary operators with branch conditions
f388b080 2019-04-20 10:01:01 Allow applications to override Content-Type header Applications must generate the appropriate MIME sections (if needed) when overriding the Content-Type header, and attachments added to the SMTP context will get ignored. - Applications can now set the Content-Type header - Add an HTML example program to the README - Extracted both example programs from the README and add to the build system - Corrected the size of the header list in smtp_header_exists function Fixes #3
94a86acb 2019-03-24 17:49:55 Add smtp_status_code_clear function Deprecated the smtp_status_code_set function.
c5504d4b 2019-03-24 17:32:44 Move comments to header for all exported functions
5e750f29 2019-03-24 16:47:46 Enable -Weverything and eliminate warnings Only a few warnings have been disabled in the Makefile. Also changed the smtp_attachment_add_mem interface to use a size_t for the datasz parameter.
6e2d81f5 2019-03-01 06:45:46 Add more bytes to SMTP_DATE_MAX_SZ define to silence recent compiler warnings. The previous size was enough to contain the maximum possible size. Remove the redefinition of that size in the test header.
caeec816 2018-11-14 15:41:11 Clean up getdelimfd error handling.
d28a363e 2018-11-14 07:51:36 Handle the scenario of sending fewer bytes at a time, and add test case that sends one byte at a time after creating the connection.
b6744cd1 2018-11-13 07:43:50 Add test seam for strlen() function. Add separate functions that add additional checks for unsigned wrapping. Initialize socket value to -1.
cb346c71 2018-11-03 06:29:54 Update example to include separate email parameters. Split header folding out into separate function, and added corresponding test cases. Applied the chunk function to base64 attachments. Remove undefined behavior resulting from negative shift.
f9d2dfe6 2018-10-31 15:16:09 Assign name to email address in header. Increase default header length.
4f83bb8a 2018-10-27 04:14:29 Increase maximum date buffer size to silence GCC format overflow warning. GCC generates a false-positive in this instance, referencing the UTC offset as the possible culprit. The UTC offset is restricted to a maximum of 4 digits from the conversion after calling difftime() on local and UTC time.
5c44cf4b 2018-10-07 11:47:29 Replace all instances of ssize_t with long and rearranged unistd include, fixing compile errors on Windows VS.
48122720 2018-10-07 10:01:53 Remove unread concat assignments.
9dbdc919 2018-10-07 09:19:48 Replace a few sprintf calls with smtp_stpcpy, a portable version of stpcpy. Some sprintf implementations might fail from OOM condition.
2096f83f 2018-10-06 20:02:58 Add clang build to Makefile and fix clang compiler warnings.
dc4a3e36 2018-09-07 01:59:08 Add missing attachment argument (-a) to mailx example program. Add a check to prevent caller from using a NULL file path or file name when sending an attachment.
b1f1137d 2018-09-07 01:38:47 Add missing parameter documentation for smtp-from command in the mailx example program.
ee6d4b2c 2018-08-21 04:29:41 Set all source files to version 1.00.
ddae3319 2018-08-21 04:25:58 Add cafile parameter to SMTPMail class.
35c9b8e8 2018-08-21 03:05:38 Allow mailx utility to optionally compile without OpenSSL support.
88b4f8f1 2018-08-19 06:58:46 Move the SIGPIPE ignore call and add documentation about ignoring that signal.
64228c41 2018-08-19 06:14:10 Make it obvious to the user that the email body will get read from stdin.
921114bd 2018-08-19 06:13:06 Ignore SIGPIPE signal.
1d3a8bc0 2018-08-12 07:53:32 Minor reformatting and documentation updates.
27c8a717 2018-08-12 07:51:54 Add Valgrind suppression file to block warnings coming from the allocation routines in OpenSSL. Fix issue reported by Valgrind where empty responses from the server were getting written to before writing to stderr.
530cf11f 2018-08-11 22:29:33 Add new cafile parameter to smtp_open function which allows the caller to explicitly provide a certificate to use instead of adding the certificate to the default certificate path.
f6d4b5e0 2018-08-11 07:06:01 Fix buffer length issue when copying line buffer. Remove carriage-return character when printing debug text. Do not print headers with NULL values. Fix unsigned character comparison when validating header keys. Ensure caller provides a required FROM address. Fix other miscellaneous issues while updating test cases. Fixed a number of problems where test cases did not work as described.
f0a769ef 2018-06-23 21:02:33 Allow sending UTF-8 email headers. Also add support for UTF-8 email addresses in the MAIL and RCPT commands which requires that the email server supports the SMTPUTF8 extension.
51b3e569 2018-06-16 17:56:41 Fixed unsigned warnings generated by clang.
347426b4 2018-06-16 17:04:43 Add missing netinet/in.h header which generated error for missing IPPROTO_TCP define on FreeBSD.
dffc1f6d 2018-06-13 22:38:05 Add CPP class wrapper for the SMTP C library.
65bec04b 2018-06-05 14:37:13 Read the email body from stdin.
5963fb1f 2018-06-03 17:47:15 Fixed a number of problems with the mailx example program that caused it to fail sending emails. Added the address type to the address structure. Added a required FROM address parameter. Fixed two instances of misuse of the strtok function which prevented correct string parsing. Convert the server, port, user pass, and from parameters to dynamically allocated strings. Remove default server settings and make server a required field.
4f0c3c72 2018-06-01 16:09:37 Add an implementation of the POSIX mailx utility as an example of using the library. It only implements the mailx utility in send mode. It also has additional option arguments which allows the caller to specify the connection security, authentication mechanism, server parameters, and optional flags corresponding to the SMTP library parameters.
e46b1980 2018-06-01 16:08:58 Add an SMTP client C library which consists of a header file and a C file. These two files can get included and compiled directly into another program which will allow that program to send emails to an SMTP email server.