create Ticket by email with IMAP IDLE ?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
raykai
Posts: 20
Joined: Fri Jun 23, 2017 8:07 pm

create Ticket by email with IMAP IDLE ?

Post by raykai »

Hi,

For creating a ticket by email i was wondering why we need to do a cronjob? i mean for IMAP why not use IMAP IDLE ? this way you get real-time email
https://en.wikipedia.org/wiki/IMAP_IDLE or is this not doable? or would this still need a cronjob to work?

As for email piping "Piping e-mail to scripts is something from the past. E-mail is getting more and more "virtualized". In the past e-mail boxes were actually users on the system, which is no longer the case. As of now all mailboxes are virtual and all belong to 1 UID. As piping data means starting a script as that UID, it might have serious security implications.

If a user would be able to create his own pipe script he could start a shell as the mail server, and read mail from all users. Bad ideal.

There are other ways to fix this, eg, using FAM or maybe IMAP IDLE." I got this from here: https://plesk.uservoice.com/forums/1845 ... -forwarder

Anyhow i was wondering if there could be a better way to do this then using pipe script or a cronjob every 5 mins. Would be nice to have real-time.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: create Ticket by email with IMAP IDLE ?

Post by Klemen »

IMAP IDLE would require the script to be run as a deamon (continuously) on the server. While this is technically possible, it's not something PHP was designed for and it definitely is not something that would be able to setup on most (or any?) shared hosting providers, where majority of Hesk is used.

I don't think email piping is dead, it is still a standard in PHP and similar apps (not sure how Plesk has things setup internally, works like a charm on Cpanel). Note that if you do setup email piping there is no 5 minute delay, it works instantly. You only see some delay because email servers and mail transfer agents need to do their work which takes time.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
raykai
Posts: 20
Joined: Fri Jun 23, 2017 8:07 pm

Re: create Ticket by email with IMAP IDLE ?

Post by raykai »

Klemen wrote: Wed Sep 20, 2017 6:19 pm IMAP IDLE would require the script to be run as a deamon (continuously) on the server. While this is technically possible, it's not something PHP was designed for and it definitely is not something that would be able to setup on most (or any?) shared hosting providers, where majority of Hesk is used.

I don't think email piping is dead, it is still a standard in PHP and similar apps (not sure how Plesk has things setup internally, works like a charm on Cpanel). Note that if you do setup email piping there is no 5 minute delay, it works instantly. You only see some delay because email servers and mail transfer agents need to do their work which takes time.
would be nice to have the IMAP IDLE option for ppl running on VPS. I'm on Plesk and there is no built-in way to run email piping :( so I'm stuck with IMAP or POP3 options that are not instant. There are many ppl using Plesk and other panels like open source ones that run on VPS that could benefit from IDLE.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: create Ticket by email with IMAP IDLE ?

Post by Klemen »

Well, PHP IMAP has no support for IDLE so until it is supported by PHP, writing an IMAP IDLE compatible library is out of the scope of Hesk project.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Clarar
Posts: 2
Joined: Tue Sep 19, 2023 5:52 am

Re: create Ticket by email with IMAP IDLE ?

Post by Clarar »

Klemen wrote: Thu Sep 28, 2017 6:54 am Well, PHP IMAP has no support for IDLE so until it is supported by PHP, writing an IMAP IDLE compatible library is out of the scope of Hesk project.
Hi friend
Acknowledging the limitations of PHP IMAP and its lack of IDLE support is essential for managing expectations in projects like Hesk. Focusing on other solutions may be necessary.Free Fire name
Post Reply