Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C cl-smtp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cl-smtp
  • cl-smtp
  • Issues
  • #4
Closed
Open
Issue created Mar 20, 2019 by Vyacheslav@VyacheslavMik

Problem with subject header

Hello. Thanks for you library!

I think there is a problem in this function (https://gitlab.common-lisp.net/cl-smtp/cl-smtp/blob/master/cl-smtp.lisp#L70). When I send string with non-ascii characters gmail is eat spaces, tabs and, I think, other ascii-characters. When I use non-ascii characters, string is mix of encoded non-ascii chars and not encoded ascii. For example, when I try this:

(cl-smtp::rfc2045-q-encode-string "Текст с пробелами")

I get: "=?UTF-8?Q?=D0=A2=D0=B5=D0=BA=D1=81=D1=82?= =?UTF-8?Q?=D1=81?= =?UTF-8?Q?=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=B0=D0=BC=D0=B8?="

When I slightly fixed function rfc2045-q-encode-string and get this: "=?UTF-8?Q?=D0=A2=D0=B5=D0=BA=D1=81=D1=82=20=D1=81=20=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=B0=D0=BC=D0=B8?=", gmail is correctly displayed subject in letter.

Assignee
Assign to
Time tracking