Skip to content

Mail Gateway deletes content

Summary

When sending Email to the tracker content is lost: Citations and whole emails are sometimes deleted by the mail gw.

Steps to reproduce

Send Email to the tracker:

  • If two emails are sent by the same user in short succession as an answer to an email from the issue-tracker, sometimes only the latest is appended to the issue. We've verified that the mail reaches the github server and is not lost in transit.
  • When citing a received email (citations lines starting with '> ') these are sometimes removed, mangling the original intention of the sender who may have commented inline. Sometimes the citations make it into the tracker we've not discovered a pattern yet.

Example Project

I can give you access to examples in an existing gitlab instance if need arises. The original Mails are also archived, so maybe with these Infos it is reproduceable

What is the current bug behavior?

When answering an email, content cited in full here:

On Fri, Feb 01, 2019 at 10:06:13AM +0100, <name deleted> wrote:
> Kann es sein, dass mysqldump schon drei mal gejammert hat? Jedenfalls
> wurden zur Dumpzeit schon seit 30.01. Mails geschickt
> (http://link-deleted.html).

Ja, kann sein dass das schon drei Tage kam.

lG
--
Dr. Ralf Schlatterbeck                  Tel:   +43/<deleted>
<rest of signature deleted>

Only the following info makes it to gitlab:

Schlatterbeck Ralf @rsc commented 1 hour ago


Ja, kann sein dass das schon drei Tage kam.

lG

Sometimes whole emails are lost: If two emails are sent by the same user as an answer to the same gitlab message, the first mail is lost.

What is the expected correct behavior?

The whole message is reflected in the tracker, We can live with deleted signatures but an option to even keep the signature would be nice.

If two emails are sent in short succession by the same author, both should make it to the tracker.

Results of GitLab environment info

System information
System:         Debian 9.7
Current User:   git
Using RVM:      no
Ruby Version:   2.5.3p105
Gem Version:    2.7.6
Bundler Version:1.16.6
Rake Version:   12.3.2
Redis Version:  3.2.12
Git Version:    2.18.1
Sidekiq Version:5.2.3
Go Version:     unknown

GitLab information
Version:        11.7.0
Revision:       1d9280e
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     postgresql
URL:            https://git.fairkom.net
HTTP Clone URL: https://git.fairkom.net/some-group/some-project.git
SSH Clone URL:  git@git.fairkom.net:some-group/some-project.git
Using LDAP:     no
Using Omniauth: yes
Omniauth Providers: saml

GitLab Shell
Version:        8.4.4
Repository storage paths:
- default:      /var/opt/gitlab/git-data/repositories
Hooks:          /opt/gitlab/embedded/service/gitlab-shell/hooks
Git:            /opt/gitlab/embedded/bin/git