helios-server icon indicating copy to clipboard operation
helios-server copied to clipboard

Long email names lead to not sending emails

Open oleua opened this issue 4 years ago • 0 comments

Python3 limited the email name (field From) to 75 symbols. Helios doesn't control this situation and allows to upload emails with long email names. Eventually, when sending emails I am getting errors:

ValueError('invalid arguments; address parts cannot contain CR or LF',)

which leads to not sending email to the recipient.

At the same time Helios doesn't allow to understand who haven't received invitation message thus bringing troubles to managers.

Here you may find the ticket registered in django: https://code.djangoproject.com/ticket/31784

What I suggest is to provide the warning limitation before uploading the users to the system in the form of the table, so the managers may see which voter's name exceeds the length, and suggest 3 options:

  • upload only those voters, whose name pass the test in 75 chars, inform manager by email
  • automatically cut the names of those who are not passing and upload, , inform manager by email
  • show details and let managers to decide what to do, inform manager by email.

oleua avatar Feb 19 '21 19:02 oleua