Skip to content
New issue

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

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

Already on GitHub? # to your account

When header spans multiple lines, it is incorrectly transcribed from msg to eml #178

Closed
lolo101 opened this issue Mar 28, 2023 · 0 comments
Assignees
Labels

Comments

@lolo101
Copy link
Owner

lolo101 commented Mar 28, 2023

It is possible to check in MBoxWriterViaJavaMailTest

for instance, this test fails because the second recipient is missing:

    @Test
    void test_rcpt() throws Exception {
        ModuleLauncher.BaseConfigureLogging();

        try (FileSystem fileSystem = Jimfs.newFileSystem()) {
            Path testOut = fileSystem.getPath("test_out.eml");
            try (OutputStream outputStream = Files.newOutputStream(testOut)) {
                Message msg = givenMessage("/danke.msg");
                MBoxWriterViaJavaMail writer = givenWriter();
                writer.write(msg, outputStream);
            }
            assertThat(Files.readString(testOut)).contains("To: 'Andrea Pirchl' <a.pirchl@gmx.at>; 'Martin Oberzalek' <kingleo@gmx.at>");
        }
    }
@lolo101 lolo101 added the bug label Mar 28, 2023
@lolo101 lolo101 self-assigned this Mar 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant