News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Project: Email-Piping-Alternative

Started by SMiFFER, June 05, 2018, 10:01:26 PM

Previous topic - Next topic

SMiFFER

Following the discussion in "Workaround when the provider does not allow Email-Piping" I have started a little project for SMF: EPA.

The situation:
I have a provider that does not allow email piping, so everything going in that direction does not work.
It is IPAGE.com, an otherwise very fair provider, so changing that is neither a way.

The idea:
Have a client tool generate those messages and upload them to
../forum
   /attachments
   /avatars
   /cache
   /incoming

and have a cronjob check all x minutes for existing files, then read those files and create a post with the data provided.

The data:
Every of those client-created files (in my case it is mostly log files, update information, project data etc.) has these lines:
BOARD= b (the board number where the post shall be created)
TOpIC= t (the topic number where the post shall be created)
UID= x (the user ID of the user "as who" it shall be posted)
and the rest until EOF is text in BBC-format to be posted

Status now:
How far I have come is this:
I wrote a module that creates such file and uploads it to /forum/incoming/ using FTP.
Works alright.

Where I need help now:
I am no good at PHP, I have just begun learning a bit of it now.
The client-side works as described.
What needs to be completed is this cronjob.

Anyone who wants to help me here?

Posts merged.  Please do not serial post when all the information can easily be put into one post.  Thank you - Iris.
Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!

Advertisement: