Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
email_in.pl encoding problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dave.xdroop.com@gmail.com  
View profile  
 More options Jan 16 2008, 11:20 am
Newsgroups: mozilla.support.bugzilla
From: "dave.xdroop....@gmail.com" <dave.xdroop....@gmail.com>
Date: Wed, 16 Jan 2008 08:20:56 -0800 (PST)
Local: Wed, Jan 16 2008 11:20 am
Subject: email_in.pl encoding problems
Hi folks,

I've googled around on this problem and don't see any hits so I've
clearly missed something basic.

I have Bugzilla 3.0.3 installed on a CentOS system.  I have all the
perl modules installed, including all the optional ones (the only one
that --check-modules says is missing is the Pg module because I'm
using MySQL).

I have set up email_in.pl with the .procmailrc forwarding method, and
incoming emails are sent to the script.  The problem is that every
time the script answers with:

Unknown encoding '"us-ascii"'

...or:

Unknown encoding '"iso-8859-1"'

...depending on whether I have Outlook set to "HTML" or "Plain Text"
respectively.

I suspect the answer is "Outlook is broken, don't use it" but since my
user community has Outlook forced on them the gateway will be useless
if I can't get it working.

My procmail log for such a transaction is:

procmail: Couldn't determine implicit lockfile from "/var/www/bugzilla/
email_in.pl"
Parsing Email
Splitting Body and Attachments [Type: text/plain;
charset="iso-8859-1"]...
Part Content-Type: text/plain; charset="iso-8859-1"
Part Character Encoding: "iso-8859-1"
Unknown encoding '"iso-8859-1"' From Dave.Mackint...@domain.com  Wed
Jan 16 11:03:09 2008
 Subject: [2]
  Folder: /var/www/bugzilla/email_in.pl -
vvv                               1764

Any pointers to resources on the web I can use to learn how to fix
this, or other advise, would be appreciated.

Thank you for your time!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Kanat-Alexander  
View profile  
 More options Jan 16 2008, 3:23 pm
Newsgroups: mozilla.support.bugzilla
From: Max Kanat-Alexander <mka...@bugzilla.org>
Date: Wed, 16 Jan 2008 12:23:08 -0800
Local: Wed, Jan 16 2008 3:23 pm
Subject: Re: email_in.pl encoding problems
On Wed, 16 Jan 2008 08:20:56 -0800 (PST) "dave.xdroop....@gmail.com"

<dave.xdroop....@gmail.com> wrote:
> Unknown encoding '"us-ascii"'
> ...or:
> Unknown encoding '"iso-8859-1"'

        Hey Dave. That is really weird. I just tried this on my local
CentOS 4 machine:

perl -w -MEncode -e 'print encode("UTF-8", decode("iso-8859-1",
"test"));

        (Which is essentially what Bugzilla is doing at that point) and
there was no trouble. I'm suspecting more of a problem with your Perl
installation somehow than anything else.

        In any case, it looks like the script progresses beyond that
point, so if it's not adding bugs to the system, something else might
be wrong.

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bob.crystalt...@gmail.com  
View profile  
 More options Feb 21 2008, 5:42 pm
Newsgroups: mozilla.support.bugzilla
From: bob.crystalt...@gmail.com
Date: Thu, 21 Feb 2008 14:42:04 -0800 (PST)
Local: Thurs, Feb 21 2008 5:42 pm
Subject: Re: email_in.pl encoding problems
On Jan 16, 1:23 pm, Max Kanat-Alexander <mka...@bugzilla.org> wrote:

> On Wed, 16 Jan 2008 08:20:56 -0800 (PST) "dave.xdroop....@gmail.com"
> > Unknown encoding '"us-ascii"'
> > ...or:
> > Unknown encoding '"iso-8859-1"'

>         Hey Dave. That is really weird. I just tried this on my local
> CentOS 4 machine:

> perl -w -MEncode -e 'print encode("UTF-8", decode("iso-8859-1",
> "test"));

Any ideas on this? I'm also encountering the problem. In my case, it's
when I try to use Entourage as my mailer; it specifies US-ASCII as the
charset, and the e-mail script chokes:

procmail: Couldn't determine implicit lockfile from "/usr/local/
apache2/htdocs/bugzilla/email_in.pl"
Parsing Email
Splitting Body and Attachments [Type: text/plain; charset="US-
ASCII"]...
Part Content-Type: text/plain; charset="US-ASCII"
Part Character Encoding: "US-ASCII"
Unknown encoding '"US-ASCII"' From x...@yyy.com  Thu Feb 21 16:22:41
2008
 Subject: [Bug 4] YA test
  Folder: /usr/local/apache2/htdocs/bugzilla/email_in.pl -vv               2809

When this happens, the comment does *not* get posted. If I send a
message from the command line "mail" command, it works fine. I'm
guessing the latter doesn't insert the charset blurb into the content-
type: header.

I ran your perl one-liner, and it did just fine. I also tried this
variation:

% perl -w -MEncode -e 'print encode("US-ASCII", decode("iso-8859-1",
"test"));'

Here are the relevant headers from my original, outgoing message to
Bugzilla:

Mime-version: 1.0
Content-type: text/plain;
        charset="US-ASCII"
Content-transfer-encoding: 7bit

This is a pretty serious problem since all of my users are on either
Entourage or Outlook. (And I'd not be surprised if this problem was
shared with many other clients, as well.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bob.crystalt...@gmail.com  
View profile  
 More options Feb 21 2008, 7:02 pm
Newsgroups: mozilla.support.bugzilla
From: bob.crystalt...@gmail.com
Date: Thu, 21 Feb 2008 16:02:57 -0800 (PST)
Local: Thurs, Feb 21 2008 7:02 pm
Subject: Re: email_in.pl encoding problems
For the benefit of others who may be searching for a fix, see:

<https://bugzilla.mozilla.org/show_bug.cgi?id=413672>

and

<https://bugzilla.mozilla.org/show_bug.cgi?id=418930>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »