Skip to content

Commit

Permalink
Added documentation for the reply-by-email to comment feature
Browse files Browse the repository at this point in the history
  • Loading branch information
namangupta01 committed Jun 11, 2018
1 parent 1dd4d30 commit 042e136
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,7 @@ For some, it will be necessary to prepend your gem-related commands with `bundle

***

## How to start reply by email to comment feature

With the merge of [fad88f](https://github.com/publiclab/plots2/commit/fad88fd72c9d08f5591bf4c0cab402160eb9ea54) Public lab now supports Reply-by-email to comment features to the various nodes. For implementing this feature we have used `mailman` gem which is a microframework for processing incoming email. More details about this can be found at [mailman](https://github.com/mailman/mailman).

[This](https://github.com/publiclab/plots2/blob/master/script/mailman_server) file contains the script for starting the mailman server. It is using POP3 (Post Office Protocol version 3) to receive emails from a remote server to a local email client. All the configrations regarding this is to be done in [mailman script](https://github.com/publiclab/plots2/blob/master/script/mailman_server).

After configurations are done we are good to start the `mailman` server. For starting the server use the command `script/mailman` from the root directory of the project.

Above command will start the server and then the mailman server will do polling in every 60 seconds(which is by default) to check for the incoming mail. However polling time can be changed by setting value to `Mailman.config.poll_interval`.

`message_id` of email is also being stored in case we need to debug.
## Public Lab now supports reply by email to comment feature. For more details regarding it go to [Doc](https://github.com/publiclab/plots2/blob/master/doc/EMAIL.md)

***

Expand Down
12 changes: 12 additions & 0 deletions doc/EMAIL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## How to start reply by email to comment feature

With the merge of [fad88f](https://github.com/publiclab/plots2/commit/fad88fd72c9d08f5591bf4c0cab402160eb9ea54) Public lab now supports Reply-by-email to comment features to the various nodes. For implementing this feature we have used `mailman` gem which is a microframework for processing incoming email. More details about this can be found at [mailman](https://github.com/mailman/mailman).

[This](https://github.com/publiclab/plots2/blob/master/script/mailman_server) file contains the script for starting the mailman server. It is using POP3 (Post Office Protocol version 3) to receive emails from a remote server to a local email client. All the configrations regarding this is to be done in [mailman script](https://github.com/publiclab/plots2/blob/master/script/mailman_server).

After configurations are done we are good to start the `mailman` server. For starting the server use the go to the script folder and use command `mailman`.

> cd script
> mailman
Above command will start the server and then the mailman server will do polling in every 60 seconds(which is by default) to check for the incoming mail. However polling time can be changed by setting value to `Mailman.config.poll_interval`(more details can be found at its official [mailman user guide](https://github.com/mailman/mailman/blob/master/USER_GUIDE.md)).

0 comments on commit 042e136

Please sign in to comment.