Attachment wildcard

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
MobiCompany
Posts: 3
Joined: Thu Aug 09, 2012 2:41 pm

Attachment wildcard

Post by MobiCompany »

Hesk Version 2.3 - paid version
What terms did you try when SEARCHING for a solution: Attachment wildcard

Write your message below:

Hello Klemen,

If somebody emails for example with Thunderbird an email message, and has a second
message in an attachment, the attachment is stripped from the email and doesn't
show up in the ticket system.

The setting for accepting attachments is on.
Accepting .gif,.jpg,.png,.txt,.pdf,.doc,.docx,.txt,.rtf,.csv,.xls,.xlsx,.pst,.eml

All the above attachments end up in the ticket system, no problems, works perfect.
Only forwarded emails, being forwarded as an attachment, are stripped.

Is there an wildcard option to accept all incoming attachments ? I've tried ,*
but that didn't help. Please let me know if i missed a solution or a faq.
If it's not a setting i have to find a coder ;-)

Thanks
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Attachment wildcard

Post by Klemen »

Do you know exactly what extension those attachments have?

Perhaps the attachment is embedded in the email? In that case perhaps version 2.4 might help (released hours ago with improved piping/pop3 fetching)?

Also, feel free to forward me a sample message to (removed) and I will have a look.
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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Attachment wildcard

Post by Klemen »

Looks like those attachments have no extension. You can try this to force save them as text:

In inc/mail/hesk_pipe.php change

Code: Select all

$ext = strtolower(strrchr($myatt['real_name'], "."));
to this:

Code: Select all

$ext = strtolower(strrchr($myatt['real_name'], ".")) or $ext = '.txt';
Does that help?
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
MobiCompany
Posts: 3
Joined: Thu Aug 09, 2012 2:41 pm

Re: Attachment wildcard

Post by MobiCompany »

sorry, it broke the email pipe-ing all together

Line 117 $ext = strtolower(strrchr($myatt['real_name'], ".")) or $ext = '.txt';

pipe to |/usr/home/ourdomain/public_html/inc/mail/hesk_pipe.php
generated by email@ourdomain.com
(ultimately generated from email@ourdomain.com)
local delivery failed
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Attachment wildcard

Post by Klemen »

Are you sure your modified file is chmod-ed to 755?

Does enabling Debug mode in settings give any other errors in the returned mail?
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
MobiCompany
Posts: 3
Joined: Thu Aug 09, 2012 2:41 pm

Re: Attachment wildcard

Post by MobiCompany »

Edit line 117 $ext = strtolower(strrchr($myatt['real_name'], ".")) or $ext = '.txt';

and

chmod-ed to 755 (that was the trick ... )

Tested with multiple attachments, strange formats. It all works. Thanks for the
support and please check your beer money account :D
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Attachment wildcard

Post by Klemen »

Thanks for the very generous donation, you didn't have to!
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
Post Reply