Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 77919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:54:21+00:00 2026-05-10T20:54:21+00:00

self.logger.info(msg) popinstance=poplib.POP3(self.account[0]) self.logger.info(popinstance.getwelcome()) popinstance.user(self.account[1]) popinstance.pass_(self.account[2]) try: (numMsgs, totalSize)=popinstance.stat() self.logger.info(POP contains + str(numMsgs) + emails)

  • 0
    self.logger.info(msg)     popinstance=poplib.POP3(self.account[0])     self.logger.info(popinstance.getwelcome())     popinstance.user(self.account[1])     popinstance.pass_(self.account[2])     try:         (numMsgs, totalSize)=popinstance.stat()         self.logger.info('POP contains ' + str(numMsgs) + ' emails')         for thisNum in xrange(1, numMsgs + 1):             try:                 (server_msg, body, octets)=popinstance.retr(thisNum)             except:                 self.logger.error('Could not download email')                 raise             text='\n'.join(body)             mesg=StringIO.StringIO(text)             msg=rfc822.Message(mesg)             MessageID=email.Utils.parseaddr(msg['Message-ID'])[1]             self.logger.info('downloading email ' + MessageID)             emailpath=os.path.join(self._emailpath + self._inboxfolder + '\\' + self._sanitize_string(MessageID  + '.eml'))             emailpath=self._replace_whitespace(emailpath)             try:                 self._dual_dump(text,emailpath)             except:                 pass             self.logger.info(popinstance.dele(thisNum))     finally:         self.logger.info(popinstance.quit()) 

(server_msg, body, octets)=popinstance.retr(thisNum) returns =20 in the body of the email when the email contains chinese characters.

How do I handle this?

raw text of email:

Subject: (B/L:4363-0192-809.015) SI FOR 15680XXXX436

=20

Dear

=20

SI ENCLOSED

PLS SEND US THE BL DRAFT AND DEBIT NOTE

=20

TKS

=20

MYRI

—– Original Message —–=20

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:54:21+00:00Added an answer on May 10, 2026 at 8:54 pm

    It is probably a Space character encoded in quoted-printable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer This isn't easily explained in a StackOverflow post, particularly since… May 11, 2026 at 1:55 pm
  • added an answer Well, because you set your Maximum to 10, your progress… May 11, 2026 at 1:55 pm
  • added an answer Just use: bar(x, y, z); X, Y, and Z are… May 11, 2026 at 1:55 pm

Related Questions

Pretty self-explanatory, I tried google and got a lot of the dreaded expertsexchange, I
Pretty self explanatory question. Is there any reason to use one or the other?
Assuming self-registration is used to install components as part of a larger installer program,
This is a self-explanatory question: Why does this thing bubble into my try catch's
Hi Guys could you please help me refactor this so that it is sensibly
I try blocking Ip addresses in my app like this - lifeonrails.org . I
I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that
I was looking at the Ruby logging library Logging.logger method and have a question

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.