racket/collects/net
Eli Barzilay ed8e3367d4 More fixes and improvements to `net/unihead'.
* In base64 encoding remove all newlines from the encoded result, avoids
  getting an invalid result.

* In qp encoding:
  - replace all spaces by underlines, not just the first (looks like a
    typo in the previous code)
  - encode "?"s and "_"s too, as required for this encoding
  - remove soft newlines (again, avoid an invalid result)

* Use `regexp-replace*' to encode the parts between the lines.  Besides
  making the code simpler, it fixes a bug in the previous code where
  multiple lines would each get encoded and the results concatenated
  without the newlines or any other whitespace.

* When the string to be encoded is longer than 70 characters, split and
  encode the sub-parts, then concatenate the encodings with a "\n "
  separator.  This is done as a poor attempt to follow the line length
  limits specified in rfc2047, or more concretely, to avoid sendmail's
  "!\n " splitting.
2011-12-21 14:46:13 -05:00
..
private
scribblings Quote sender, subject, and recipients strings if needed. 2011-12-20 16:13:13 -05:00
websocket A long overdue scan to eliminate files without terminating newlines. 2011-06-28 02:01:41 -04:00
base64-sig.rkt
base64-unit.rkt Moved `net/base64' code from unit to module. 2011-09-05 14:13:04 -04:00
base64.rkt Moved `net/base64' code from unit to module. 2011-09-05 14:13:04 -04:00
cgi-sig.rkt Moved `net/cgi' code from unit to module. 2011-09-05 14:17:36 -04:00
cgi-unit.rkt Moved `net/cgi' code from unit to module. 2011-09-05 14:17:36 -04:00
cgi.rkt Moved `net/cgi' code from unit to module. 2011-09-05 14:17:36 -04:00
cookie-sig.rkt
cookie-unit.rkt De-unitizing cookies and making the serializable 2011-08-15 10:06:21 -06:00
cookie.rkt De-unitizing cookies and making the serializable 2011-08-15 10:06:21 -06:00
dns-sig.rkt
dns-unit.rkt Moved `net/dns' code from unit to module. 2011-09-05 15:22:38 -04:00
dns.rkt Moved `net/dns' code from unit to module. 2011-09-05 15:22:38 -04:00
ftp-sig.rkt
ftp-unit.rkt Moved `net/ftp' code from unit to module. 2011-09-05 15:22:38 -04:00
ftp.rkt Moved `net/ftp' code from unit to module. 2011-09-05 15:22:38 -04:00
gifwrite.rkt
head-sig.rkt
head-unit.rkt Moved `net/head' code from unit to module. 2011-09-05 15:22:38 -04:00
head.rkt Moved `net/head' code from unit to module. 2011-09-05 15:22:38 -04:00
imap-sig.rkt
imap-unit.rkt Moved `net/imap' code from unit to module. 2011-09-05 15:22:38 -04:00
imap.rkt Moved `net/imap' code from unit to module. 2011-09-05 15:22:38 -04:00
mime-sig.rkt
mime-unit.rkt Moved `net/mime' code from unit to module. 2011-09-05 15:22:38 -04:00
mime-util.rkt
mime.rkt Moved `net/mime' code from unit to module. 2011-09-05 15:22:38 -04:00
nntp-sig.rkt
nntp-unit.rkt Moved `net/nntp' code from unit to module. 2011-09-05 15:22:38 -04:00
nntp.rkt Moved `net/nntp' code from unit to module. 2011-09-05 15:22:38 -04:00
pop3-sig.rkt
pop3-unit.rkt Moved `net/pop3' code from unit to module. 2011-09-05 15:22:38 -04:00
pop3.rkt Moved `net/pop3' code from unit to module. 2011-09-05 15:22:38 -04:00
qp-sig.rkt
qp-unit.rkt Moved `net/qp' code from unit to module. 2011-09-05 15:22:38 -04:00
qp.rkt Moved `net/qp' code from unit to module. 2011-09-05 15:22:38 -04:00
sendmail-sig.rkt Revise `net/sendmail'. 2011-12-20 15:53:40 -05:00
sendmail-unit.rkt Moved `net/sendmail' code from unit to module. 2011-09-05 15:22:38 -04:00
sendmail.rkt Quote sender, subject, and recipients strings if needed. 2011-12-20 16:13:13 -05:00
sendurl.rkt
smtp-sig.rkt
smtp-unit.rkt Moved `net/smtp' code from unit to module. 2011-09-05 15:22:39 -04:00
smtp.rkt Moved `net/smtp' code from unit to module. 2011-09-05 15:22:39 -04:00
ssl-tcp-unit.rkt
tcp-redirect.rkt
tcp-sig.rkt
tcp-unit.rkt
unihead.rkt More fixes and improvements to `net/unihead'. 2011-12-21 14:46:13 -05:00
uri-codec-sig.rkt
uri-codec-unit.rkt Moved `net/uri-codec' code from unit to module. 2011-09-05 15:22:39 -04:00
uri-codec.rkt Moved `net/uri-codec' code from unit to module. 2011-09-05 15:22:39 -04:00
url-connect.rkt Moved `net/url' code from unit to module. 2011-09-05 15:22:39 -04:00
url-sig.rkt adjust and document net/url HTTPS support 2011-06-20 08:00:43 -06:00
url-structs.rkt Revert "This fixes 10497 and potentially breaks programs that assume the query of a URL is always a list. I have fixed uses in the Web Server, which I expect is the major thing affected, but much more could be. Therefore I am skeptical this is a good idea just for the representation of ?. So, I'd like other people to review the change and let me know if they think I should revert it." 2011-11-23 11:13:20 -07:00
url-unit.rkt Moved `net/url' code from unit to module. 2011-09-05 15:22:39 -04:00
url.rkt Revert "This fixes 10497 and potentially breaks programs that assume the query of a URL is always a list. I have fixed uses in the Web Server, which I expect is the major thing affected, but much more could be. Therefore I am skeptical this is a good idea just for the representation of ?. So, I'd like other people to review the change and let me know if they think I should revert it." 2011-11-23 11:13:20 -07:00
websocket.rkt A long overdue scan to eliminate files without terminating newlines. 2011-06-28 02:01:41 -04:00