[3.2][RC] Mail to Post

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

[3.2][RC] Mail to Post

Post by david63 »

Extension Name: Mail to Post
Author: david63

Description:Adds a feature to receive posts via an email.

Extension Version: [RC] 2.1.0-RC1

Requirements: phpBB 3.2.7

Features:
  • Controlled by a new user permission (Can send mail to post)
  • User can select which forum their mail messages will be posted in - this can be overridden in ACP
  • Mail messages can be retrieved either manually or via a Cron job
  • All actions are written to a log file
  • Messages can be moderated if required
  • Added option to use a PIN when sending the mail new
  • Added some basic checks for mail "spoofing" new
Usage:
  • An email address is required for sending the posts to - Gmail does work but can be awkward to set up.
  • I recommend that a new user group is created with the permission to use this feature into which you can put the users that you want to use it - this makes "troublemakers" easy to remove.
Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to root/ext/david63/mailtopost and enable it in the ACP
GitHub Repository: https://github.com/david63/mailtopost
Extension Download: https://github.com/david63/mailtopost/archive/3.2.zip
Last edited by david63 on Sat Oct 19, 2019 1:12 pm, edited 1 time in total.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][BETA] Mail to Post

Post by david63 »

Reserved
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

nou nou
Registered User
Posts: 403
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][BETA] Mail to Post

Post by nou nou »

Very interesting! Subscribed :)

For clarity, would it be possible to send emails to a specific topic (so it will append a post), or is every email creating a new topic?

(I have not tested the extension yet)

Thanks!

User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][BETA] Mail to Post

Post by david63 »

nou nou wrote:
Wed Oct 09, 2019 7:31 pm
would it be possible to send emails to a specific topic (so it will append a post), or is every email creating a new topic?
That is optional. If the subject of a mail message is the same as a topic title in the same forum then it will, at Admin's discretion, be a reply.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51985
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [3.2][BETA] Mail to Post

Post by Brf »

So anyone can mail to that mailbox and it creates a post?
Is the post anonymous, or does it post as a user?

User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][BETA] Mail to Post

Post by david63 »

Brf wrote:
Wed Oct 09, 2019 8:53 pm
So anyone can mail to that mailbox and it creates a post?
Is the post anonymous, or does it post as a user?
Yes anyone who knows the mailbox can send a message to it but it will only create a post if a user has been granted permission to post and the email originates from the email registered on the board. Posts will go under the username.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51985
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [3.2][BETA] Mail to Post

Post by Brf »

So if your "troublemakers" know the admin's email address they could spoof messages that would be posted as if from that admin.

User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][BETA] Mail to Post

Post by david63 »

Brf wrote:
Wed Oct 09, 2019 9:18 pm
So if your "troublemakers" know the admin's email address they could spoof messages that would be posted as if from that admin.
Possible, but only if the Admin had the permission set. There is also the facility to moderate all messages.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51985
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [3.2][BETA] Mail to Post

Post by Brf »

My point was that using Email address alone is not a good way to identify a user, since that Email address can be easily spoofed.

User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][BETA] Mail to Post

Post by david63 »

Brf wrote:
Thu Oct 10, 2019 2:41 pm
My point was that using Email address alone is not a good way to identify a user, since that Email address can be easily spoofed.
I don't totally disagree but there is no other way to get the user information other than imposing a strict format for the mail message that users would get wrong and would be easy for someone to imitate.

I have added a basic "spoofing" check that should trap the casual spoofer.

I still believe that with proper management there are the controls in this extension to capture malicious use - the main one being that you only give the permission to those who you can trust.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
bbthailand
Translator
Posts: 62
Joined: Wed Jun 18, 2008 6:00 am
Contact:

Re: [3.2][BETA] Mail to Post

Post by bbthailand »

wow interesting :D :D

User avatar
DavideBianchini
Registered User
Posts: 63
Joined: Thu Oct 17, 2019 3:47 am

Re: [3.2][BETA] Mail to Post

Post by DavideBianchini »

This is a HUGE lifesaver, thank you so much for taking the time to write this plugin. I would pay money for this, because it helps us accommodate the needs of some of our members, who are used to posting/replying via email on Yahoo Groups. It is going to make our migration that much more seamless if we can keep our members happy.

Kudos to you,

-Davide

yooper
Registered User
Posts: 4
Joined: Fri Oct 18, 2019 6:13 am

Re: [3.2][BETA] Mail to Post

Post by yooper »

Brf wrote:
Wed Oct 09, 2019 9:18 pm
So if your "troublemakers" know the admin's email address they could spoof messages that would be posted as if from that admin.
Actually, that is how Yahoo Groups functioned for @ 20 years now.. but: #1 - very few people know that, and; #2 - most Yahoo forums don't display the email addresses of their members (display is an admin option). In the 15 years I've run groups on Yahoo I've never seen that "vulnerability" exploited.

That said, there are numerous ways to ID and thwart "troublemakers" if they appear, particularly if you're running your own server. :ugeek:

User avatar
david63
Registered User
Posts: 17420
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Mail to Post

Post by david63 »

Updated to version 2.1.0-RC1

Added some checks to try and prevent mail "spoofing"

Added option to use a PIN when sending the mail message. The PIN is set by each user and is six characters (any character) and must be the first six characters of the mail message. The PIN is stripped off (if it is correct) before the mail message is posted to the board.

To update:
  • Disable extension
  • Delete data for the extension
  • Delete the files
  • Upload new files
  • Enable extension
  • Configure extension settings and reapply the permission
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
DavideBianchini
Registered User
Posts: 63
Joined: Thu Oct 17, 2019 3:47 am

Re: [3.2][RC] Mail to Post

Post by DavideBianchini »

david63 wrote:
Sat Oct 19, 2019 1:17 pm
Added option to use a PIN when sending the mail message. The PIN is set by each user and is six characters (any character) and must be the first six characters of the mail message. The PIN is stripped off (if it is correct) before the mail message is posted to the board.
Nice, clever idea.

-Davide

Post Reply

Return to “Extensions in Development”