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

Option to persist mails in sqlite database at path #109

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

toy
Copy link
Contributor

@toy toy commented Aug 24, 2013

No description provided.

@sj26
Copy link
Owner

sj26 commented Nov 18, 2013

The idea was to make it transparent, so no options should be involved really. My delay on this feature was just researching a nice way to find a platform-dependent location for the database.

@sj26 sj26 force-pushed the master branch 2 times, most recently from aa7bc8e to 23398d7 Compare January 27, 2015 21:44
@fdrouet
Copy link

fdrouet commented Oct 21, 2015

Any chance to have this PR merged ? Why not providing a default sqlite storage path so that it remain transparent by default and allowing this parameter to override it ?

I need to launch several mailcatcher instances on the same server, so I really need to be able to have several sqlite persistance path.

@sj26
Copy link
Owner

sj26 commented Oct 21, 2015

I would prefer a --database=URL argument, using something like sequel, falling back to ENV.fetch("DATABASE_URL", "sqlite://:memory:"), and with graceful migrations. This would work but would create a new migration path for which I'm not keen.

@sj26
Copy link
Owner

sj26 commented Oct 21, 2015

@fdrouet you can already run multiple instances of mailcatcher using different ports, the content just won't survive restarts. :-)

@fdrouet
Copy link

fdrouet commented Oct 21, 2015

@sj26 yes you are right but it is not sufficient in my case as I would like to use mailcatcher on an acceptance testing platform with lots of email sent and I would like to avoid consuming all the server memory with mailcatcher processes

@sj26
Copy link
Owner

sj26 commented Oct 21, 2015

@fdrouet you might like to try https://github.com/mailhog/mailhog. It's written in go, has less dependencies and much less memory usage.

@fdrouet
Copy link

fdrouet commented Oct 21, 2015

Thanks for the hint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants