pkp / pkp-lib

The library used by PKP's applications OJS, OMP and OPS, open source software for scholarly publishing.
https://pkp.sfu.ca
GNU General Public License v3.0
307 stars 448 forks source link

Introduce an email reply processor #4142

Open asmecher opened 6 years ago

asmecher commented 6 years ago

...to:

asmecher commented 6 years ago

Proposal: Allow journal managers to optionally configure an email account (IMAP and/or POP), that OJS can periodically process. Use PHP's imap functions -- they can actually handle POP as well. Fetch unread messages as a batch job (to run via the normal scheduled tasks mechanisms) and delete the ones that have been successfully processed.

asmecher commented 6 years ago

Unknowns: how to authenticate received emails against the task (perhaps use AccessKey); where to put authentication information (we probably can't use one-time-generated email addresses, as most users won't have access to this); how to mix normal email content in with parseable content; whether there are support libraries/standard mechanisms to do this.

NateWr commented 2 years ago

how to authenticate received emails against the task (perhaps use AccessKey); where to put authentication information (we probably can't use one-time-generated email addresses, as most users won't have access to this);

Just a comment for later: we should be able to use the + syntax that is supported by most mail providers. So if the reply processor address is replies@example.com, the reply-to address could be replies+<access-key>@example.com. Most mail providers will put that into the replies@example.com mailbox. (This is how GitHub does it.)