summaryrefslogtreecommitdiff
path: root/email/quoted-printable.scm
AgeCommit message (Collapse)Author
2018-09-15quoted-printable: Use call-with-bytevector-output-port.Arun Isaac
* email/quoted-printable.scm (quoted-printable-decode): Use call-with-bytevector-output-port instead of call-with-port and open-bytevector-output-port.
2018-09-15quoted-printable: Q-encode #\? and #\_ with their ASCII values.Arun Isaac
* email/quoted-printable.scm (%q-encoding-literal-char-set, %quoted-printable-literal-char-set): New variables. (quoted-printable-encode): Move core encoding code to ... (quoted-printable-style-encode): ... this new function. (q-encoding-decode): Call quoted-printable-style-encode with the appropriate literal-char-set instead of calling quoted-printable-encode. * tests/quoted-printable.scm (q-encoding of special characters): Add to check for this bug.
2018-09-15quoted-printable: Encode #\= with its ASCII code.Arun Isaac
* email/quoted-printable.scm (quoted-printable-encode): Encode #\= with its ASCII code. * test/quoted-printable.scm (quoted-printable-encoding of =): Add test to check for this bug.
2018-09-14quoted-printable: Encode printable ASCII characters to themselves.Arun Isaac
* email/quoted-printable.scm (quoted-printable-encode): Encode only printable ASCII characters, that is, ASCII characters in the interval [#\space, #\delete), to themselves.
2018-09-12quoted-printable: Add q-encoding-encode.Arun Isaac
* email/quoted-printable.scm (q-encoding-encode): New function. * tests/quoted-printable.scm (q-encoding wikipedia example): Rename to ... (q-encoding wikipedia example: decoding): ... this. (q-encoding wikipedia example: encoding): New test.
2018-09-12Untabify and re-indent all sources.Arun Isaac
* build-aux/test-driver.scm, email/base64.scm, email/email.scm, email/quoted-printable.scm, email/utils.scm, tests/quoted-printable.scm: Untabify and re-indent.
2018-09-12quoted-printable: Add quoted-printable-encode.Arun Isaac
* email/quoted-printable.scm (quoted-printable-encode): New function. * tests/quoted-printable.scm (quoted-printable wikipedia example): Rename to ... (quoted-printable wikipedia example: decoding): ... this. (quoted-printable wikipedia example: encoding, quoted-printable wikipedia example: encoded output should not be more than 76 columns wide): New tests.
2018-09-12quoted-printable: Close port after use.Arun Isaac
* email/quoted-printable.scm (quoted-printable-decode): Close bytevector port after use. In cond, use else instead of #t for the default clause.
2018-09-08Initial commit.Arun Isaac