Comments (7)
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.
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.
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.
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.
Looks like the count=1
fix is to set the count
variable to 1 on this line:
mail2googlegroup/mail2gg/__init__.py
Line 120 in fa835a4
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.
If you are looking to get this working with the count fix, follow these instructions (Linux):
- Clone the repository
git clone https://github.com/XaviTorello/mail2googlegroup.git
- Move into the directory
cd mail2googlegroup
- Open the file with that line of code in your editor of choice
vi mail2gg/__init__.py
- 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)
- Install local package with pip3
pip3 install -e .
from mail2googlegroup.
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)
- Does not import folders from the mailbox
- mbox2gg does not proceed after approval HOT 4
- The out-of-band (OOB) flow has been blocked in order to keep users secure. HOT 2
- imap2gg: OAuth2 support for extended security of IMAP server e.g. Microsoft Office 365
- Error Processing Emails
- Does it work with free account? HOT 3
- mbox2gg: cannot import name 'Q' from 'imap_tools' HOT 7
- imap2gg uses port 993 instead of 143 HOT 6
- error when installing HOT 4
- Update readme for new python3 pip HOT 2
- Error while interacting with the IMAP SERVER: ''MailBox' object has no attribute 'box'' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail2googlegroup.