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.
create Ticket by email with IMAP IDLE ?
Moderator: mkoch227
Re: create Ticket by email with IMAP IDLE ?
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.
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 
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


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
Re: create Ticket by email with IMAP IDLE ?
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 pipingKlemen 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.

Re: create Ticket by email with IMAP IDLE ?
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 
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


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
Re: create Ticket by email with IMAP IDLE ?
Hi friendKlemen 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.
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