Coder Social home page Coder Social logo

pymap-copy's People

Contributors

doransmestad avatar jeremyp3 avatar renovate[bot] avatar reschandreas avatar schluggi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pymap-copy's Issues

"logging" is missing

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

Encoding error

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

Reconnect to server

By merging #13 i've removed some reconnects that are necessary for gmail.
I'll implement add them in a different way later.

Edit: I never had this issue. Maybe someone can post there experience. After i implement #15 the idle process should be prevent any timeout.

Error regarding quota

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

Improving idle

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.

[README] Simple usage .py missing

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 \

Limit mailsize

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.

TypeError: '>' not supported between instances of 'int' and 'NoneType'

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'

Cleanup ssl arguments

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]

Password with special character quote notice

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 '.

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.