Page 7 of 8

Re: HESK e-mail piping public BETA (test version)

Posted: Mon May 30, 2011 7:53 pm
by Klemen
I assume one of your Hesk staff has "support@primarydomain.com" set as their e-mail address and that's why Hesk is sending e-mail to this address? If yes, it's a systematic problem.

The solution would be to use "support@primarydomain.com" as a piping address BUT each staff should have it's own unique (not "support") email address, like "john.doe@primarydomain.com". So when a ticket is created the e-mail notification goes to "john.doe@..." and not "support@...".

Re: HESK e-mail piping public BETA (test version)

Posted: Mon May 30, 2011 10:16 pm
by Promofinity
Hi Klemen

You are 100% correct - Thank you. It was obvious on reflection, but I had missed it!!

Thank you for your prompt response.
Kevin

Re: HESK e-mail piping public BETA (test version)

Posted: Thu Jun 02, 2011 5:43 am
by hezvale
Holla,

I like HESK program.

By evaluating the email piping, I'm using DirectAdmin not Cpanel hence no Advance Options for me to fill-up the pipe to program. Only forwarding to email, What should I do?

Thanks

Re: HESK e-mail piping public BETA (test version)

Posted: Thu Jun 16, 2011 9:00 am
by ibanez0r
hi,

I tried the piping beta test script and received local deliv failure as well with the following error:

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...] .... etc

php error_log... empty..

Re: HESK e-mail piping public BETA (test version)

Posted: Fri Jun 17, 2011 7:27 pm
by Klemen
Your PHP installation doesn't seem to be accepting parameters - the script isn't even executing.

It is up to you to propelry configure your PHP setup, I would rcommend trying with a sample script first, like suggested here:
viewtopic.php?f=13&t=3351&start=15#p14463

Once you get the test script working on your server you can move to the Hesk piping script.

Re: HESK e-mail piping public BETA (test version)

Posted: Mon Jun 20, 2011 10:58 am
by mathias
I know, BETA is for testing but at my site I can not use email piping and I don't want to wait. So I have changed the script to use it with a normal pop3 mail account.
The script opens the pop3 mail account and fetch all the mails. Every mail is temporary stored as file and will be parsed with the original functions.
I have made only a small change in email_parser.php.

1. Replace function save_forward_mail($tmpfilepath) with save_forward_pop3_mail($tmpfilepath). Arround line 113.

Code: Select all

113: //save_forward_mail($tmpfilepath);
113: save_forward_pop3_mail($tmpfilepath);
2. Add new function save_forward_pop3_mail($tmpfilepath);. I did it arround line 340 after the original function save_forward_mail($tmpfilepath).

Code: Select all

function save_forward_pop3_mail($tmpfilepath)
{
    $_pop3_host = 'pop3.mail.server';
    $_pop3_user = 'user';
    $_pop3_pass = 'pass';
    $mbox = imap_open("{" . $_pop3_host . ":110/pop3/notls}INBOX", $_pop3_user, $_pop3_pass)
              or die("can't connect: " . imap_last_error());
    $MC = imap_check($mbox);
    $result = imap_fetch_overview($mbox, "1:{$MC->Nmsgs}", 0);
    foreach ($result as $msg) {
        $email = array();
        $raw_email = imap_fetchbody($mbox, $msg->msgno, NULL);
        $tmpfp = fopen($tmpfilepath,"w");
        fwrite($tmpfp, $raw_email);
        fclose($tmpfp);
        imap_delete( $mbox, $msg->msgno );
    }
    imap_expunge($mbox);
    imap_close($mbox);  
}
All you have to do is change pop3 host, username and password for your enviroment. For a release version this should be set with a config file. But this is only Beta and for testing.
Please use a pop3 dummy account for testing, because all fetched mails will be deleted after parsing.
Now open http://yourdomain/hesk/inc/mail/hesk_pipe.php in your Browser. A new ticket for every mail in yout pop3 mailbox should be generated. For easy use just set up a cron job.

Regards,
Mathias

Re: HESK e-mail piping public BETA (test version)

Posted: Mon Jul 18, 2011 2:30 pm
by rdishong
We are testing the helpdesk software and have noticed an issue with the tickets that are being input via email pipeing. it is stripping the carriage returns, "rs", and "ns" from emails. those are just the ones I have noticed. Someone can email in, "This person would like to be contacted by email." and then it strips out the "rs" and says in the ticket "This peon would like to be contacted by email"

While funny as hell on the back end, not so funny when we forget to fix those and reply. Any ideas on this?

I can take screenshots and send them to you if needed. Thanks!

Re: HESK e-mail piping public BETA (test version)

Posted: Wed Jul 20, 2011 5:59 pm
by Klemen
Nice catch. Could you upload this file and let me know if it fixes the issue for you?
http://www.phpjunkyard.com/extras/email_parser.zip

Re: HESK e-mail piping public BETA (test version)

Posted: Mon Aug 01, 2011 11:38 am
by ruffmeister
query about custom fields

I have a custom field on hesk if a customer emails the address and the txt contains the custom field will / can it log a call with that custom field pre filled?

i.e the call has the word PC and my field is fault component and it chooses PC?

Re: HESK e-mail piping public BETA (test version)

Posted: Mon Aug 01, 2011 1:10 pm
by Klemen
I'm afraid there is no way for Hesk to recognize custom fields from email as each user can send the email ina completely different format.

Re: HESK e-mail piping public BETA (test version)

Posted: Tue Aug 02, 2011 2:12 pm
by ruffmeister
ok - is it then possible for it still to pipe but for it to auto choose a default field from the custome field such as 'unassigned'

Re: HESK e-mail piping public BETA (test version)

Posted: Tue Aug 02, 2011 2:55 pm
by Klemen
In the hesk_pipe.php you would have to define default values for custom fields. For example just below

Code: Select all

foreach ($hesk_settings['custom_fields'] as $k=>$v)
{
	$tmpvar[$k] = '';
}
you would need to paste something like:

Code: Select all

$tmpvar['custom1']='Default value';
$tmpvar['custom2']='Unassigned';
$tmpvar['custom3']='12345';
For each custom field you use.

Re: HESK e-mail piping public BETA (test version)

Posted: Tue Aug 09, 2011 12:52 am
by copetti
Hesk is very good, congratulations. More email piping, even better. I want to know if it is possible to open ticket from the pipe, only specific emails.

I look back! Great job!

Re: HESK e-mail piping public BETA (test version)

Posted: Tue Aug 09, 2011 12:04 pm
by Klemen
Not sure that you mean?

Re: HESK e-mail piping public BETA (test version)

Posted: Tue Aug 09, 2011 1:59 pm
by copetti
Klemen wrote:Not sure that you mean?
Sorry my english!

English:
It's possible open ticket for pipe, only registered mail? Do not leave any open ticket by email pipe.

Portuguese:
É possível abrir ticket por pipe, somente emails cadastrados? Não deixar qualquer email abrir ticket por pipe.