Feng Forum

Support => Older versions => : a2opinion December 10, 2009, 07:03:14 PM

: [SOLVED W/ CODE EDIT] 1.6Final Email Module Unable to Classify emails
: a2opinion December 10, 2009, 07:03:14 PM
Trying to Classify an email now gives me the error "No Attachments found for Email"

I am unable to find anyway to "Assign a workspace to a mail account to automatically classify email to that workspace" either...

adding an inline image to the email via upload, clicking on "Add to server" gives a 505 server error.
: Re: 1.6Final Email Module Unable to Classify emails
: iTristan December 10, 2009, 07:15:18 PM
Exactly the same for me. Have tried some older fixes to no avail. (tmp permissions)

Looking for other insight as well.
: Re: 1.6Final Email Module Unable to Classify emails
: iTristan December 10, 2009, 07:28:07 PM
UPDATE : tried with message containing attachments and that worked fine.

So, if the error is to be believed, then the classify function is missing out on sniffing an attachment's existence properly.
: Re: 1.6Final Email Module Unable to Classify emails
: seraphim December 11, 2009, 11:50:23 AM
I have this problem to.

No problem on mails which have attachments, but if not, it throws the error message "No attachments found for email".

Anyway, this error occurs only if I use the classify function. Otherwise, if I drag the mail onto the wanted workspace, it works successfully.
: Re: 1.6Final Email Module Unable to Classify emails
: gvagenas December 11, 2009, 12:10:26 PM
I confirm i have the same problem with email classification

: Re: 1.6Final Email Module Unable to Classify emails
: betty111111 December 11, 2009, 03:26:43 PM
Same problem here too.

I am able to drag emails onto workspaces to classify them still.
: Re: 1.6Final Email Module Unable to Classify emails
: Jödel December 11, 2009, 05:04:35 PM
Same Problem here too.

Classification only possible by using drag and drop
: Re: 1.6Final Email Module Unable to Classify emails
: iTristan December 12, 2009, 02:09:10 PM
yes confirmed, hadn't tried drag and drop – this does work. But for me, this is rather a pain compared to the classify button.

At least it does sort of work though.
: Re: 1.6Final Email Module Unable to Classify emails
: ignacio December 14, 2009, 12:14:40 PM
Can you try editing file 'application/controllers/MailController.class.php' and change line 935 from:

:
//Classify attachments
$this->classifyFile($classification_data, $conv_email, $parsedEmail, $validWS, true, $csv);

to:

:
if ($conv_email->getHasAttachments()) {
//Classify attachments
$this->classifyFile($classification_data, $conv_email, $parsedEmail, $validWS, true, $csv);
}
: Re: 1.6Final Email Module Unable to Classify emails
: a2opinion December 14, 2009, 04:25:24 PM
this fixed the problem.

Though this morning I lost the ability to read emails for some reason...

Didn't make any changes at all.. but now opening an email gives me this error where the body of the email should be:
Error

We are sorry, but OpenGoo is not currently able to execute your request. An Error Report has been sent to the administrator.
: Re: [SOLVED W/ CODE EDIT] 1.6Final Email Module Unable to Classify emails
: ignacio December 14, 2009, 04:40:33 PM
Check if you have the "tmp" folder. Today I had that error and it was because my "tmp" folder was gone. It is a bug when clearing old files from the tmp folder. It will be fixed for next release.
: Re: [SOLVED W/ CODE EDIT] 1.6Final Email Module Unable to Classify emails
: a2opinion December 14, 2009, 04:49:19 PM
where should the tmp folder be located?  in the root?

nevermind.. found it on my local copy and put the directory.  Now the issue is fixed.

(the answer to my question was 'yes')