GithubHelp home page GithubHelp logo

imap2gg: Error while interacting with the IMAP SERVER: ''MailBox' object has no attribute '_criteria_encoder'' about mail2googlegroup HOT 7 OPEN

xavitorello avatar xavitorello commented on June 10, 2024 1
imap2gg: Error while interacting with the IMAP SERVER: ''MailBox' object has no attribute '_criteria_encoder''

from mail2googlegroup.

Comments (7)

switchdk avatar switchdk commented on June 10, 2024 3

I ran into the same problem but noticed that the code in question had been removed from an earlier version of an imported library. After running pip install imap-tools==0.22.0 it started working for me. Not sure if this is ideal since imap-tools is currently version 0.31 but at least it should get you started.

from mail2googlegroup.

sdepablos avatar sdepablos commented on June 10, 2024

I was getting the same error, and after downgrading to imap-tools==0.30.0 everything works as expected. This is somehow related to issue #3. @XaviTorello I think that after you downgraded the library you didn't make a release (or the release was wrong), because doing a pip install mail2gg I got the latest imap-tools release, currently 0.39.0, not the fixed 0.30.0 version we're supposed to get.

I was wrong: version 0.30.0 also fails, it worked just because I had the "count=1" fix. Version 0.22.0 works fine.

from mail2googlegroup.

vazome avatar vazome commented on June 10, 2024

Same: Gmail to Google Group

Honestly, I don't know how to apply your fix.

I think this should be mentioned in README if possible until an official update fixing the things arrives.

from mail2googlegroup.

mrk3767 avatar mrk3767 commented on June 10, 2024

Running into the same issue here. Syncing from a Dreamhost IMAP server. Will post back if I find a solution, but would really appreciate any help.

from mail2googlegroup.

mrk3767 avatar mrk3767 commented on June 10, 2024

Looks like the count=1 fix is to set the count variable to 1 on this line:

count = self.count_elements(remote_mailbox)

Doing so prevents the code from calling search() on the remote mailbox which is where the error is coming from. I'm wondering if there are any important side-effects to not having a count...

Found this in the following issue: #5

from mail2googlegroup.

mrk3767 avatar mrk3767 commented on June 10, 2024

If you are looking to get this working with the count fix, follow these instructions (Linux):

  1. Clone the repository
    git clone https://github.com/XaviTorello/mail2googlegroup.git
  2. Move into the directory
    cd mail2googlegroup
  3. Open the file with that line of code in your editor of choice
    vi mail2gg/__init__.py
  4. Change the count line and comment out the old value
    OLD -> count = self.count_elements(remote_mailbox) NEW -> count = 1 #self.count_elements(remote_mailbox)
  5. Install local package with pip3
    pip3 install -e .

from mail2googlegroup.

five2seven avatar five2seven commented on June 10, 2024

If you are looking to get this working with the count fix, follow these instructions (Linux):

1. Clone the repository
   `git clone https://github.com/XaviTorello/mail2googlegroup.git`

2. Move into the directory
   `cd mail2googlegroup`

3. Open the file with that line of code in your editor of choice
   `vi mail2gg/__init__.py`

4. Change the count line and comment out the old value
   OLD -> `count = self.count_elements(remote_mailbox)` NEW -> `count = 1 #self.count_elements(remote_mailbox)`

5. Install local package with pip3
   `pip3 install -e .`

Thank you so much! This finally got me up and running.

from mail2googlegroup.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.