Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate fixes from Alfresco patch #37

Open
marcelmay opened this issue Dec 8, 2014 · 6 comments
Open

Integrate fixes from Alfresco patch #37

marcelmay opened this issue Dec 8, 2014 · 6 comments
Assignees

Comments

@marcelmay
Copy link
Member

Alfresco patched GreenMail for various issues.

Evaluate and reintegrate the patch patch.

@marcelmay marcelmay added this to the 1.5 milestone Dec 8, 2014
@marcelmay
Copy link
Member Author

Patch analysis:

Investigate

@marcelmay marcelmay self-assigned this Dec 27, 2014
@markrogersalfresco
Copy link

If you need more details of why we have patched what we have then it will be in Alfresco's JIRA. I can probably give details. We should also have integration tests that could be adapted.

I'll start by contributing an easy fix just to get the ball rolling.

@buildscientist
Copy link
Member

@markrogersalfresco Hi - do you have any tests that go along with the patches you mentioned in #46?

Thanks,
Youssuf

marcelmay added a commit that referenced this issue Jan 23, 2016
- Included address quotes handling
@marcelmay marcelmay modified the milestones: 1.6, 1.5 Feb 28, 2016
@vguna
Copy link

vguna commented Aug 21, 2016

Using 1.5.1 here facing the problem described here (encodings):

#32

Body contains german umlauts. Using GreenMailUtil.getBody(mimeMessage) shows raw encodings like
Bitte best=C3=A4tigen Sie die Registrierung durch einen Klick auf u.a. Link=.

Currently working around using Spring's MimeMessageHelper like that:

        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage);
        String body = helper.getMimeMessage().getContent();

Returns Bitte bestätigen Sie die Registrierung durch einen Klick auf u.a. Link.

@marcelmay
Copy link
Member Author

@vguna , why not use plain JavaMail for getting the content:

mimeMessage.getContent()

MimeMessageHelper#getMimeMessage() directly returns the wrapped mime message,
so you could leave out the MMH wrapper.

I'll look into GMU.getBody, looks like it is returning the raw mail content.

You can check out the test case for umlauts.

@vguna
Copy link

vguna commented Aug 23, 2016

Yeah, you're right :). Interesting why the encoding isn't working for me using GMU. I'll have to recheck...

@marcelmay marcelmay removed this from the 1.6 milestone Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants