E-mail PIPE

For modifications in and around KeyHelp.
Post Reply
User avatar
silverhost
KeyHelp Translator
Posts: 5
Joined: Sat 27. May 2023, 13:48
Location: Hungary
Contact:

E-mail PIPE

Post by silverhost »

Hi,

There is solution to set email PIPE to some email addresses? I use WISECP and the support system use PIPE system, so some email adresses have redirect to specific php file.

Thanks for help
Laszlo
https://silverhost.hu
KeyHelp official translator into Hungarian
If you find any errors or typos in the translation, please report them privately!
User avatar
24unix
Posts: 1907
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: E-mail PIPE

Post by 24unix »

You want to send an email via script?

Code: Select all

echo "mymail" | mail -s "Subject" user@domain.tld
If the mail command ist missing, install mailutils.
mfg Micha
--
95% aller Programmier halten sich für genial.
Der Rest immer noch für überdurchschnittlich.
User avatar
Tobi
Community Moderator
Posts: 3051
Joined: Thu 5. Jan 2017, 13:24

Re: E-mail PIPE

Post by Tobi »

No.
He wants an incoming email to be passed directly to a PHP script and trigger any actions.

Unfortunately, KeyHelp cannot natively process incoming emails at this time. Currently you still have to deal with the API and your own scripts.

Maybe in the future such addons will be integrated into KeyHelp. We will see.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
24unix
Posts: 1907
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: E-mail PIPE

Post by 24unix »

Tobi wrote: Fri 23. Jun 2023, 20:13 No.
He wants an incoming email to be passed directly to a PHP script and trigger any actions.
Ah that way.

Never needed it before, but is it not what fetchmail is made for?
mfg Micha
--
95% aller Programmier halten sich für genial.
Der Rest immer noch für überdurchschnittlich.
User avatar
Tobi
Community Moderator
Posts: 3051
Joined: Thu 5. Jan 2017, 13:24

Re: E-mail PIPE

Post by Tobi »

Once again „No“ for unix24

Fetchmail ruft E-Mails von entfernten Mail-Servern ab und leitet sie über SMTP weiter, so dass sie dann von normalen Mail-Benutzeragenten wie mutt, elm oder BSD Mail gelesen werden können. Es ermöglicht es allen Filter-, Weiterleitungs- und Aliasing-Funktionen Ihres System-MTAs, genauso zu arbeiten wie auf normalen E-Mails.
https://www.berlios.de/software/fetchmail/

This has nothing to deal with „trigger PHP actions“.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
silverhost
KeyHelp Translator
Posts: 5
Joined: Sat 27. May 2023, 13:48
Location: Hungary
Contact:

Re: E-mail PIPE

Post by silverhost »

Tobi wrote: Fri 23. Jun 2023, 20:13 No.
He wants an incoming email to be passed directly to a PHP script and trigger any actions.

Unfortunately, KeyHelp cannot natively process incoming emails at this time. Currently you still have to deal with the API and your own scripts.

Maybe in the future such addons will be integrated into KeyHelp. We will see.
I strongly hope this, because I choose the KeyHelp and became contracted translator for KeyHelp system, because it has a good api wich is built in WISECP. But WISECP for it's support system use the PIPE system for different support deparments and different e-mail adresses for support departments. So if the KeyHelp developped a very usefull API and built in into WISECP would be very good if KeyHelp also support the PIPE system wich is need for WISECP system.
Laszlo
https://silverhost.hu
KeyHelp official translator into Hungarian
If you find any errors or typos in the translation, please report them privately!
User avatar
silverhost
KeyHelp Translator
Posts: 5
Joined: Sat 27. May 2023, 13:48
Location: Hungary
Contact:

Re: E-mail PIPE

Post by silverhost »

Hi,

Several updates have come out since I asked my question/request.
My question: any updates? Several of my customers are already missing this feature, and I would be reluctant to tamper with the system as originally installed. Under Forwarding, it would be nice to have such a setting per email account, and it would be much needed.
Laszlo
https://silverhost.hu
KeyHelp official translator into Hungarian
If you find any errors or typos in the translation, please report them privately!
User avatar
Alexander
Keyweb AG
Posts: 4163
Joined: Wed 20. Jan 2016, 02:23

Re: E-mail PIPE

Post by Alexander »

Hello,

no updates on this topic. Piping still has to be configured manually.

Alternatively, WISECP may support other methods?! I never used WISECP, but there was a thread about piping in OSTicket where the community mentioned alternative solutions to piping: https://community-keyhelp-de.translate. ... r_pto=wapp
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Luukullus
Posts: 131
Joined: Thu 7. Sep 2023, 05:55

Re: E-mail PIPE

Post by Luukullus »

Hello =)

Are there at the moment any news about that or are there already plans to implement this feature?

I also took the decision to use WISECP because of the advanced Keyhelp integration.

Sadly it seems impossible to use the Mail to Ticket function from WISECP.
I also checked the mentioned topic from you Alexander, but sadly WISECP has no function to fetch mails from a mailbox as far as i know.


Also i tried to write my own mailfetcher php script which sends unreaded mails from a mailbox to the system, but sadly that is not working.


Greetings,
Luuk
User avatar
Alexander
Keyweb AG
Posts: 4163
Joined: Wed 20. Jan 2016, 02:23

Re: E-mail PIPE

Post by Alexander »

For now, this still has to be configured manually. It is not part of the upcoming KeyHelp 24.0
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Luukullus
Posts: 131
Joined: Thu 7. Sep 2023, 05:55

Re: E-mail PIPE

Post by Luukullus »

Okay, thanks alot for your info.
For the moment i still try to figure out why it is not working if manually configured.
I did this already some times in smaller ticketing systems, but sadly here it is not working.

I sent a support message to WISECP because it seems the problem is on their side.

From the pipe.php, wisecp uses to process the emails into tickets, i get an error: stdin content not found.

Have a great Weekend,
Luuk
User avatar
Tobi
Community Moderator
Posts: 3051
Joined: Thu 5. Jan 2017, 13:24

Re: E-mail PIPE

Post by Tobi »

Luukullus wrote: Fri 2. Feb 2024, 12:58 stdin content not found.
This most likely means, the input file aka e-mail is not located where it was expected to be.
It is best practise to double-check all paths and permissions.
And have a look in the PHP error log or activate error_reporting(E_ALL);
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
Luukullus
Posts: 131
Joined: Thu 7. Sep 2023, 05:55

Re: E-mail PIPE

Post by Luukullus »

Thanbk you for the hint Tobi.
I was talking with the WISECP support today and they checked my scripts.

It is simply not possible doing it this way as their piping scripts handle emails totally different.

BUT: To all people who might have the same problem.

They are working at the moment on the WISECP V3.2 which will come in 2 - 3 months estimated in their road map.
In this release direct email and imap piping will be implemented and they make it possible to setup email to ticket mailboxes.

Original message:
Importing Received Emails Into The Ticket System
Transferring data to the ticket system from e-mails sent to the relevant e-mail address using PHP and converting them into support tickets. More advanced version of Email Piping.

Type: New Feature
So no worries, they will make it happen.
For me, i will wait. There is not that much traffic in the support box, that i would tryhard to find a solution now for this small amount of time.

Greetings,
Luuk
User avatar
silverhost
KeyHelp Translator
Posts: 5
Joined: Sat 27. May 2023, 13:48
Location: Hungary
Contact:

Re: E-mail PIPE

Post by silverhost »

Hi,

I looked after the WISECP roadmap, and I did not see anything wich one connected to PIPE e-mail development or any kind of e-mail imap or pop3 development.

I've waited long enough for this.

So I wrote a PHP script for WISECP that uses POP3 to pull the mail with attachments and passes it to the WISECP PIPE script in the same format as if it had been received on PIPE. Tested with 7 email accounts. It is working.

I also set a timer to run every 5 minutes. From an account it will download mail every 1 second because that is the rate at which PIPE scritp can process it.

I don't understand the WISECP people, it's a very simple solution, I had it done in half a day.
Laszlo
https://silverhost.hu
KeyHelp official translator into Hungarian
If you find any errors or typos in the translation, please report them privately!
Post Reply