andris9 / hoodiecrow

Scriptable IMAP server for client integration testing
http://andris9.github.io/hoodiecrow/
Other
60 stars 27 forks source link

Document further Hoodiecrow usage from clients trying to send/receive emails using Hoodiecrow server #20

Closed balteo closed 8 years ago

balteo commented 8 years ago

Hi Andris,

I have just opened a post on SO here: http://stackoverflow.com/questions/33828525. I have also created the "Hoodiecrow" tag on SO!

I am not sure how to configure my application to use my instance of Hoodiecrow in order to send email...

Which host should I use: localhost or imap.localhost?

Can you please help me?

andris9 commented 8 years ago

Hoodiecrow creates a local dummy IMAP server suitable for testing, it is not meant for actual mail processing. If you run the example server then you can connect to it at hostname=localhost, port=1143 as to any other IMAP server

balteo commented 8 years ago

Andris, What do you mean by "it is not meant for actual mail processing"? Can I still read and parse an email sent to Hoodiecrow? Regards, Julien.

2015-11-20 16:05 GMT+01:00 Andris Reinman notifications@github.com:

Closed #20 https://github.com/andris9/hoodiecrow/issues/20.

— Reply to this email directly or view it on GitHub https://github.com/andris9/hoodiecrow/issues/20#event-470474943.

andris9 commented 8 years ago

You should be able to use it as a "normal" IMAP server. Once you restart the process the entire state is gone, you have lost all messages, folder data and such. This is intentional design – hoodiecrow is meant for client integration testing. Let's say you are trying to build a new IMAP client and you want to test it somehow and create some automated tests. So you fire up a hoodiecrow instance, run your tests and close the server. Next time you start the tests you don't have any accidental leftovers around from previous runs, so you can start from a clean state.

andris9 commented 8 years ago

If you are only interested in receiving and sending and not storing messages (IMAP itself does not "receive" or "send" anything, IMAP is storage for emails), you should look into SMTP solutions, for example Haraka SMTP

balteo commented 8 years ago

Thanks a lot Andris.

2015-11-20 17:14 GMT+01:00 Andris Reinman notifications@github.com:

If you are only interested in receiving and sending and not storing messages (IMAP itself does not "receive" or "send" anything, IMAP is storage for emails), you should look into SMTP solutions, for example Haraka SMTP https://haraka.github.io/

— Reply to this email directly or view it on GitHub https://github.com/andris9/hoodiecrow/issues/20#issuecomment-158446989.