schluggi / pymap-copy Goto Github PK
View Code? Open in Web Editor NEWCopy and transfer IMAP mailboxes
License: MIT License
Copy and transfer IMAP mailboxes
License: MIT License
On the source box, I had a folder with a dot "." in the name (eg "part1.part2"). When copying, pymap-copy created a nesting like "part1/part2" (i.e. part2 became a separate folder inside part1).
It seems that there is a missing definition of logging:
Getting source quota : Traceback (most recent call last):
File "/usr/local/Caskroom/miniforge/base/bin/pymap-copy.py", line 273, in <module>
logging.info(f'Getting source quota...')
NameError: name 'logging' is not defined
Hi,
the server at mx.ccn.net gives the following error:
Getting source folders : Traceback (most recent call last):
File "/home/max/pymap-copy/pymap-copy/utils.py", line 57, in decode_mime
words.append(word.decode(encoding or 'utf8'))
LookupError: unknown encoding: dos-862
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./pymap-copy.py", line 220, in
subject = decode_mime(data[b'ENVELOPE'].subject)
File "/home/max/pymap-copy/pymap-copy/utils.py", line 62, in decode_mime
words.append(fallback(word))
File "/home/max/pymap-copy/pymap-copy/utils.py", line 43, in fallback
return mime_bytes.decode(charset)
TypeError: decode() argument 'encoding' must be str, not None
At the moment only one namespace is supported.
There should be support for multiple namespaces.
As shown here: https://tools.ietf.org/html/rfc2342.html
If one of the mailboxes has no mails, pymap-copy can't determine the delimiter and the tool will crash.
This will be fixed with #17.
--no-colors
would be nice if you want to run the script on windows/in powershell.
Hi,
I get the following error:
Getting source quota : Traceback (most recent call last):
File "./pymap-copy.py", line 161, in
source_quota = source.get_quota()[0]
IndexError: list index out of range
I commented the line(s) out but wanted to let you know anyway.
Thx
With #13 @doransmestad has implemented imap idle. Awesome improvement btw!
This works fine but at this moment the idle restarts every 10000 Mails.
In fact the idle only timeouts after 30min (based on this thread). I could improve this by starting a new thread witch restart the idle every 28 minutes.
There are two arguments to define the source root:
--source-root
--source-mailbox
Is this really necessary?
Simple usage command is ./pymap-copy \
which results in an error:
bash: ./pymap-copy: file or directory not found
Please update the command to ./pymap-copy.py \
Can you add something like --from
and --to
to specify a source and destination folder?
In some cases you don`t know the destination folder structure. It would be nice to have an option to list all of them.
This idea comes from #13.
Hello Mr. Schluggi,
I would like to appreciate a "--max-mail-size" argument.
It would be very appreciated if you could set the max size in MB.
Thank you very much.
Hi. Encountered such an issue.
size or args.max_mail_size seems to be None in my case.
[ 0.0%] Progressing... (buffer 1/1) (mail 1/26) (14.2 MB) (2016-01-18 16:09:01): Fw:Traceback (most recent call last):
File "pymap-copy.py", line 558, in <module>
elif size > args.max_mail_size:
TypeError: '>' not supported between instances of 'int' and 'NoneType'
Currently there are these arguments:
--source-no-ssl
--source-use-starttls
--destination-no-ssl
--destination-use-starttls
And this would be much cleaner and more simple to switch ports automatically.
--source-encryption=[ssl/tls/starttls/none]
--destination-encryption=[ssl/tls/starttls/none]
If the --source-pass
has a special character like !
the applications throws an error and removes the --source-pass
from the command in the history.
If you quote the password with "
the same error occurs.
Please add a note that if the password has a special character you need to quote with '
.
add support for self signed certificates
Please add something like an overall progress bar. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.