rgladwell / imap-upload

Python script for uploading a local mbox file to IMAP4 server.
Other
130 stars 30 forks source link

Fix : Encoding problem #31

Closed Skrohk closed 2 years ago

Skrohk commented 2 years ago

Fix an encoding problem while uploading a mbox file comming from Google Takeout (title of emails have been modified for privacy reasons) :

  1/531  12.7 kB  Fwd: Texte ***************      NG (cannot use a bytes pattern on a string-like object)
  1/531 122.2 kB  À la une : Une indemnité de     NG (cannot use a bytes pattern on a string-like object)
  1/531  46.3 kB  Fwd: Vos stats du mois de jui    NG (cannot use a bytes pattern on a string-like object)
  1/531   2.9 kB  MAil *******                    NG (cannot use a bytes pattern on a string-like object)
  1/531  11.7 MB  Image ********                    NG (cannot use a bytes pattern on a string-like object)
  1/531 104.9 kB  RE: Location - Clip ******        NG (cannot use a bytes pattern on a string-like object)
  1/531  42.3 kB  Location - Clip *****            NG (cannot use a bytes pattern on a string-like object)
  1/531 342.7 kB  **************** - PDT + BIBLE    NG (cannot use a bytes pattern on a string-like object)
  1/531  16.8 kB  Re: Demande *********         NG (cannot use a bytes pattern on a string-like object)
  1/531  20.4 kB  Re: Demande ********          NG (cannot use a bytes pattern on a string-like object)
rgladwell commented 2 years ago

I'm not seeing any changes in this PR? Did you merge from the wrong branch?

Skrohk commented 2 years ago

Sorry this this an error, it's not the good branch !