mox/http
Mechiel Lukkien 5742ed1537
when logging email addresses with IDNA domain and/or special characters or utf8 in localpart, log both native utf8 form and form with escape localpart and ascii-only domain
the idea is to make it clear from the logging if non-ascii characters are used.

this is implemented by making mlog recognize if a field value that will be
logged has a LogString method. if so, that value is logged. dns.Domain,
smtp.Address, smtp.Localpart, smtp.Path now have a LogString method.

some explicit calls to String have been replaced to LogString, and some %q
formatting have been replaced with %s, because the escaped localpart would
already have double quotes, and double doublequotes aren't easy to read.
2023-03-09 20:18:34 +01:00
..
account.go improve webserver, add domain redirects (aliases), add tests and admin page ui to manage the config 2023-03-02 18:15:54 +01:00
account.html explain to user they should pick a random, unguessable password 2023-02-27 21:29:27 +01:00
account_test.go only check the autotls hostnames once when serving 2023-03-05 23:56:02 +01:00
accountapi.json add funtionality to import zip/tgz with maildirs/mboxes to account page 2023-02-16 09:57:27 +01:00
admin.go when logging email addresses with IDNA domain and/or special characters or utf8 in localpart, log both native utf8 form and form with escape localpart and ascii-only domain 2023-03-09 20:18:34 +01:00
admin.html for WebRedirect, don't "match" when the destination URL has the same scheme,host,path, for doing http -> https redirects without loops 2023-03-08 23:29:44 +01:00
admin_test.go change mox to start as root, bind to network sockets, then drop to regular unprivileged mox user 2023-02-27 12:19:55 +01:00
adminapi.json improve webserver, add domain redirects (aliases), add tests and admin page ui to manage the config 2023-03-02 18:15:54 +01:00
autoconf.go make it easier to run with existing webserver 2023-03-04 00:49:02 +01:00
autoconf_test.go mox! 2023-01-30 14:27:06 +01:00
import.go change mox to start as root, bind to network sockets, then drop to regular unprivileged mox user 2023-02-27 12:19:55 +01:00
mtasts.go add basic webserver that can do most of what i need 2023-02-28 22:19:24 +01:00
mtasts_test.go mox! 2023-01-30 14:27:06 +01:00
web.go make it easier to run with existing webserver 2023-03-04 00:49:02 +01:00
web_test.go only check the autotls hostnames once when serving 2023-03-05 23:56:02 +01:00
webserver.go for WebRedirect, don't "match" when the destination URL has the same scheme,host,path, for doing http -> https redirects without loops 2023-03-08 23:29:44 +01:00
webserver_test.go for WebRedirect, don't "match" when the destination URL has the same scheme,host,path, for doing http -> https redirects without loops 2023-03-08 23:29:44 +01:00