Fossil

File History
Login

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

History of src/smtp.c

2018-10-03
16:52
Remove uncommonly used commands from the set of "common" commands in the "fossil help" listing. file: [873d8d3a] check-in: [29313518] user: drh branch: trunk, size: 50299
2018-09-22
17:09
Typo fix file: [78f0e36a] check-in: [b6c490ce] user: tangent branch: libbind-ns-alternative, size: 50297
17:02
Added a check for ns_parserr(), which we currently don't know how to find on OpenBSD. This also fixes a logic error in auto.def which would cause the warning that this feature won't be compiled to not be given. file: [9ba4b37c] check-in: [f99e7632] user: wyoung branch: libbind-ns-alternative, size: 50296
16:55
Removed the "Linux" platform test from the DNS MX stuff in src/smtp.c. You should always test for features, not platforms, and we've now got the feature tests we need to replace this too-broad platform test. file: [412efe03] check-in: [5358fe95] user: wyoung branch: libbind-ns-alternative, size: 50254
16:38
Replaced the call to the undocumented ns_name_uncompress() function with dn_expand(), which is documented, at least on OpenBSD, and it's shorter. Then made ns_name_uncompress() and __ns_name_uncompress() fallbacks for this, with suitable autosetup tests for all of it. file: [4dc7c32a] check-in: [d0fb5ac7] user: wyoung branch: libbind-ns-alternative, size: 50276
06:57
Fix to previous for CentOS 7. file: [01dabdbb] check-in: [c7640b38] user: tangent branch: libbind-ns-alternative, size: 50197
06:46
The previous checkin on this branch prevented src/smtp.c from both building and linking because the code previously assumed that it could only build against libresolv for MX lookups and such on Linux, but the checkin gave it enough slack to *attempt* to build on macOS. This checkin prevents that from happening if run on stock macOS, but if you install libbind via Homebrew, it also opens up the possibilty to biuld against it for the first time. It's a complicated sequence of checks due to the way libbind interacts with the stock libresolv. This means we have yet more reason to want to test this widely before merging it to trunk. file: [6d6f0baf] check-in: [4d9970f6] user: wyoung branch: libbind-ns-alternative, size: 50160
05:47
Added autosetup checks for alternative libraries and names for the res_query() and ns_*() functions that module smtp.c previously depended on finding in libresolv/glibc. Checking it in on a branch because it needs multiplatform testing. This version solves the problem originally reported on the forum by Andy Goth, being that the current trunk doesn't build on CentOS 5. file: [ae5bef1d] check-in: [ed3b1e4d] user: wyoung branch: libbind-ns-alternative, size: 49965
2018-08-20
18:29
Fix harmless compiler warnings. file: [ac922e9c] check-in: [02bd5941] user: drh branch: trunk, size: 49875
2018-08-17
15:38
Fix the /setup_smtp page so that it edits the routing table sensibly. file: [6c9b2692] check-in: [5416287d] user: drh branch: trunk, size: 49867
2018-08-16
20:48
Enhance the backoffice to automatically purge stale entries from the emailblob table, if that table exists. file: [02e65910] check-in: [4c7edd4c] user: drh branch: trunk, size: 47604
2018-08-14
03:55
The blob-to-SMTP encoding logic was not strictly following RFC 5321 in that it was only dealing with the lone dot on the line case, doubling it to prevent the SMTP server from interpreting that as end-of-message. It missed the case where, if anything follows the dot, SMTP drops the leading dot, so you must also double the leading dot in that case. Basically, you always double a leading dot, regardless of line length.    This only affects Fossil's direct-to-SMTP email sending case, not those that send via a piped command or via DB. That is dealt with later in [8c0ec30bc3]. file: [58d50145] check-in: [51740ce4] user: wyoung branch: trunk, size: 47366
2018-08-11
16:59
Fix to checkin [8c91be8b], which was intended to allow the user to log in with the email found in the contact info field of the user table. That checkin is fine as far as it goes, but it only works if the caller doesn't subsequently try to use the passed user name for anything else, since it isn't actually a user name. This checkin causes the low-level login checking function to re-point the user name pointer at the actual login name discovered while scanning for matching email addresses. file: [7ff598ce] check-in: [33522ff4] user: wyoung branch: login-with-email, size: 47265
2018-07-24
13:30
Revamp the /register page for added security. Require entry of a display name and email address. Validate the email address format and check for duplicate email addresses. file: [af99354c] check-in: [d8b20a55] user: drh branch: forum-v2, size: 47493
2018-07-18
20:32
The pop3d command allows the username to contain an extra @domain suffix. file: [21fa4123] check-in: [86b0a3d3] user: drh branch: trunk, size: 47484
02:19
Pop3 server sends a final +OK after QUIT. file: [c56c6a9e] check-in: [06507038] user: drh branch: trunk, size: 46979
02:14
Enhance the pop3 TOP command so that the second argument can be zero. file: [e60ae790] check-in: [64493163] user: drh branch: trunk, size: 46967
02:09
Add support for TOP and CAPA to pop3d. file: [6b3c3b65] check-in: [2c18ed07] user: drh branch: trunk, size: 46940
01:40
Add the --logdir option to the "fossil pop3d" command. Fix some issues with POP3 reply formatting. file: [1a271526] check-in: [38165f37] user: drh branch: trunk, size: 46406
2018-07-17
23:50
Initial implementation of the "fossil pop3d" command. file: [cf349d72] check-in: [bf13815c] user: drh branch: trunk, size: 45020
20:59
Store the uncompressed artifact size as an integer field in the emailblob table. file: [317e7232] check-in: [34b95026] user: drh branch: trunk, size: 39366
19:45
The emailblob table holds content a little while before deleting it. Change the /test-emailblob page to /emailblob, though it is still only accessible by the administrator. file: [36ab4217] check-in: [15a53308] user: drh branch: trunk, size: 39107
18:32
Improved tracing capabilities for email notifications. Add the SelectAll button to the webmail display. file: [7ef6d2fb] check-in: [f880aa82] user: drh branch: trunk, size: 38618
16:59
Fix a typo in the on-line documentation for the "fossil smtpd" command. file: [9c1aac70] check-in: [032e80b5] user: drh branch: trunk, size: 38518
16:24
In the webmail interface, provide the option to show the SMTP transcript when that transcript is available. file: [112f9de6] check-in: [bb8b6037] user: drh branch: trunk, size: 38518
13:54
Add a reference count field to the emailblob table and triggers to keep the reference count current and to drop entries when the reference count reaches zero. file: [0bbde6cf] check-in: [94da0fb2] user: drh branch: webmail, size: 38516
2018-07-16
11:35
Merge enhancements from trunk. file: [232d6535] check-in: [03a9b6f8] user: drh branch: webmail, size: 35107
2018-07-14
20:11
The -DFOSSIL_OMIT_DNS compile-time option avoids trying to link -lresolv. file: [8b4b9e5c] check-in: [023ce4ed] user: drh branch: trunk, size: 35031
19:40
New "Normal" mode for viewing email messages in webmail. file: [e6eaa115] check-in: [3ddc8817] user: drh branch: webmail, size: 35078
14:58
Work toward revamping the webmail page. file: [b104ccdf] check-in: [d68879f7] user: drh branch: webmail, size: 35070
2018-07-13
20:36
An early attempt at the /setup_smtp page. Partly working. file: [239f03e9] check-in: [1e799919] user: drh branch: trunk, size: 35002
18:20
Improved code to discover the IP address of the peer. Record the IP address of the peer in a Received: header line of all input emails. file: [478595b1] check-in: [9979edbd] user: drh branch: trunk, size: 32415
15:07
Use the email content parser to the prototype webmail page. file: [d1a8f1ad] check-in: [264223fc] user: drh branch: trunk, size: 31582
2018-07-12
13:13
Fix a compiler warning on the mac build. file: [f49fee95] check-in: [b6b5048a] user: drh branch: smtp-win, size: 31393
13:09
Get this branch working with mingw and on Mac file: [33355535] check-in: [f55c0fdc] user: drh branch: smtp-win, size: 31417
09:39
Get DNS lookup for mail hosts working on Windows. file: [6e77ecae] check-in: [fe29fe7d] user: tsbg branch: smtp-win, size: 31189
2018-07-11
19:41
Add a setup menu option for Email-Server. Try to get the build of this branch working (without DNS support) for non-linux systems. file: [b3b99953] check-in: [aa80d694] user: drh branch: smtp, size: 30284
2018-06-30
20:51
Compress content in the emailblob table. file: [33d85ae7] check-in: [98400909] user: drh branch: smtp, size: 29879
17:27
Add "SMTP relay" as a new method for sending alert emails. file: [9eca83e3] check-in: [b96415f0] user: drh branch: smtp, size: 29799
2018-06-29
22:54
Populate the esubject column of the emailbox table based on the subject in the email header. file: [6c4b9e46] check-in: [dbb1ce5f] user: drh branch: smtp, size: 32653
21:37
Lots of additional error checking on the "fossil smtpd" input. file: [632e51b1] check-in: [cf1c8429] user: drh branch: smtp, size: 31297
19:54
The "fossil smtpd" command stores incoming messages in the database and routes them according to the emailroute table. file: [495be180] check-in: [e4144ced] user: drh branch: smtp, size: 28732
03:29
Add features to make it easier to test and debug the "fossil smtp" command from the command-line using stdin and stdout. file: [24dc29fc] check-in: [8643602d] user: drh branch: smtp, size: 21700
03:12
Baseline implementation of the "smtp" command. file: [dc949f95] check-in: [be55fc60] user: drh branch: smtp, size: 21010
2018-06-28
21:38
Add the smtp_send_msg() function capable of encoding and sending a complete email message. file: [39681920] check-in: [03888604] user: drh branch: smtp, size: 15502
17:15
The test-smtp-probe command is now working. file: [e82c2fb2] check-in: [9281d52a] user: drh branch: smtp, size: 10395
15:23
Incremental check-in of initial code for client-side SMTP. Does not work. file: [21d081fe] check-in: [20006a86] user: drh branch: smtp, size: 9093
2018-06-27
19:21
Add the missing smtp.c source file. file: [5e083abf] check-in: [8f6f25f1] user: drh branch: smtp, size: 3090 Added