Jump to content
  • 0

Support Plugin - Retrieving Emails


Hostlumina

Question

Hi All,

 

I have searched around and haven't seen anyone with the following issue so I am not sure if just specific to my install...

 

 

So I have the support plugin installed and configured. Everything works when a ticket is opened and worked through blesta including email confirmations to the support staff + the client.

 

However,  If an email gets sent out to the support department, Blesta fails to import the email.

 

I am 100% sure that the email settings are accurate and I can confirm that Blesta does attempt to retrieve the email as they are marked as "read".

 

I have tried Piping, POP3, and IMAP and same issue.

 

 

I checked the logs and the following cron job gets stuck for hours... unless I disable the plugin and setup from scratch and run the cron again (work around to try different settings).

 

As soon as the cron is ran the email gets flagged as read (as mentioned before) so I am sure the problem is at point of Blesta attempting to import it to a ticket + delete the email.

 

 

Output Attempting plugin cron for support_manager poll_tickets.

 

 Any help would be appreciated.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

I've not had that issue yet mate, I use piping however we use another script the guys did for us on the forum:

 

/plugins/support_manager/pipe.php

 

#!/usr/local/bin/php -q
<?php
/**
 * This files pipes email messages into the system. This is configured to process
 * messages for only a single company ID. Clone this file and change the
 * $company_id variable below to add pipe support for additional companies.
 */
$company_id = 1;

try {
	include(dirname(__FILE__) . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "lib/init.php");
	
	$_SERVER['REQUEST_URI'] = null;
    $argv = array(
        '',
		'plugin/support_manager/ticket_pipe/index/' . $company_id
    );
	unset($company_id);
	
	// Dispatch the Web request
	if (!empty($_SERVER['REQUEST_URI']))
		Dispatcher::dispatch($_SERVER['REQUEST_URI']);
	// Dispatch the CLI request
	else
		Dispatcher::dispatchCli($argv);
}
catch (Exception $e) {
	try {
		// Attempt to raise any error, gracefully
		Dispatcher::raiseError($e);
	}
	catch (Exception $e) {
		if (Configure::get("System.debug"))
			echo $e->getMessage() . " on line <strong>" . $e->getLine() .
				"</strong> in <strong>" . $e->getFile() . "</strong>\n" .
				"<br />Printing Stack Trace:<br />" . nl2br($e->getTraceAsString());
		else
			echo $e->getMessage();
	}
}
?>
Link to comment
Share on other sites

  • 0

I believe this is a bug.  After further heavy testing and trying multiple things this is happening only when the Automatic Cron is ran via cpanel.  I have verified the PHP path and everything is accurate.

 

If I run the cron manually from Blesta the tickets are imported perfectly.

 

Paul or someone at blesta can you please move this over to the Bug section?

 

 

Setup:

POP3

IMAP

 

Blesta version 3.0.5

 

 

 

X-Powered-By: PHP/5.3.27

Content-type: text/html

 

Attempting to run all tasks for My Company.

Attempting to apply credits to open invoices.

There are no invoices to which credits may be applied.

The apply credits task has completed.

Attempting to deliver invoices scheduled for delivery.

No invoices are scheduled to be delivered.

The deliver invoices task has completed.

Attempting to provision paid pending services.

The paid pending services task has completed.

Attempting to unsuspend paid suspended services.

The unsuspend services task has completed.

Attempting to process renewing services.

The process renewing services task has completed.

Attempting plugin cron for order accept_paid_orders.

Finished plugin cron for order accept_paid_orders.

Attempting plugin cron for support_manager poll_tickets.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...