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

Preload email files during greenmail start #250

Closed
mdemori opened this issue Jul 9, 2018 · 3 comments
Closed

Preload email files during greenmail start #250

mdemori opened this issue Jul 9, 2018 · 3 comments
Labels
backport_1_6_x Backport to old bugfixing branch 1.6.x backport_2_0_x Backport to branch 2.0.x enhancement
Milestone

Comments

@mdemori
Copy link

mdemori commented Jul 9, 2018

Hi,

I need to use greenmail as standalone server with IMAP settings (this because my application is not written in Java).
my application work as follow:

  • read all email from one IMAP folder,
  • check all message attachment for specific pattern and if the patters has found download the file
  • move the message to another folder as backup,
    The problem is that I found some strange cases with attachments that I need to test.

I already download these email as eml from my production server (i can have also as mbox format).

There is a way to "preload" this specific e-mails using an external file immediately after greenmail has started? in this way I can test this cases more quickly than using a real server.

@benr77
Copy link

benr77 commented Aug 3, 2022

Has this functionality been implemented?

I would like to spin up the Docker image and have an IMAP mailbox already preconfigured with the example emails. There is a mention of this in the docs but no further details that I can see.

Thank you.

@marcelmay marcelmay added the backport_1_6_x Backport to old bugfixing branch 1.6.x label Aug 4, 2022
@marcelmay marcelmay added this to the 2.0.0-alpha-3 milestone Aug 4, 2022
@marcelmay
Copy link
Member

@benr77 : Not yet, but soon.

marcelmay added a commit that referenced this issue Aug 14, 2022
Added example for loading EML files
marcelmay added a commit that referenced this issue Sep 3, 2022
@varminas
Copy link

Looking forward for SpringBoot 3 support

@marcelmay marcelmay removed this from the 2.0.0-alpha-4 milestone Feb 26, 2023
marcelmay added a commit that referenced this issue Oct 21, 2023
Next step : Enable GreenMail standalone / container
@marcelmay marcelmay added this to the 2.1.0-alpha-3 milestone Oct 21, 2023
marcelmay added a commit that referenced this issue Oct 21, 2023
- fix test by adding missing test data
marcelmay added a commit that referenced this issue Oct 22, 2023
- Added config property greenmail.preload.dir, usable by greenmail-standalone (or greenmail-docker/standalone)
@marcelmay marcelmay added the backport_2_0_x Backport to branch 2.0.x label Oct 22, 2023
marcelmay added a commit that referenced this issue Oct 28, 2023
- Fix IT running standalone container image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport_1_6_x Backport to old bugfixing branch 1.6.x backport_2_0_x Backport to branch 2.0.x enhancement
Projects
None yet
Development

No branches or pull requests

4 participants