Giter Club home page Giter Club logo

Comments (9)

bandundu avatar bandundu commented on June 5, 2024

Hi @Samurai1201 this should be fixed in 394a982

can you please do a docker-compose pull, retry and let me know?

from email-archiver.

Samurai1201 avatar Samurai1201 commented on June 5, 2024

Thanks for the quick response :)

I tried the docker compose pull as you suggested and even built the image from source, but the container doesnt even start now.
It exits with code 0, without even writing anything to log.

from email-archiver.

bandundu avatar bandundu commented on June 5, 2024

Forgot to actually run the application in Dockerfile. This is fixed now!

from email-archiver.

Samurai1201 avatar Samurai1201 commented on June 5, 2024

It starts now as before, but I still get the same error message

web-1  | Traceback (most recent call last):
web-1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1488, in __call__
web-1  |     return self.wsgi_app(environ, start_response)
web-1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1466, in wsgi_app
web-1  |     response = self.handle_exception(e)
web-1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1463, in wsgi_app
web-1  |     response = self.full_dispatch_request()
web-1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 872, in full_dispatch_request
web-1  |     rv = self.handle_user_exception(e)
web-1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 870, in full_dispatch_request
web-1  |     rv = self.dispatch_request()
web-1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 855, in dispatch_request
web-1  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
web-1  |   File "/app/app.py", line 58, in create_account
web-1  |     email_archiver.create_account(conn, email, password, protocol, server, port)
web-1  |   File "/app/email_archiver.py", line 260, in create_account
web-1  |     client.login(email, password_bytes.decode('utf-8'))  # Decode the bytes back to a string
web-1  |   File "/usr/local/lib/python3.9/imaplib.py", line 610, in login
web-1  |     typ, dat = self._simple_command('LOGIN', user, self._quote(password))
web-1  |   File "/usr/local/lib/python3.9/imaplib.py", line 1230, in _simple_command
web-1  |     return self._command_complete(name, self._command(name, *args))
web-1  |   File "/usr/local/lib/python3.9/imaplib.py", line 987, in _command
web-1  |     arg = bytes(arg, self._encoding)
web-1  | UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 8: ordinal not in range(128)

from email-archiver.

bandundu avatar bandundu commented on June 5, 2024

Hi @Samurai1201 I could successfully test login in with umlauts now after 689f54e

Please tryhopefully one last time and let me know!

from email-archiver.

Samurai1201 avatar Samurai1201 commented on June 5, 2024

I was successful at adding the account :)
Unfortunately briefbox was unable to archive any emails with error:

web-1  | 2024-03-12 09:40:57,291 - INFO - Started email archiving for account 2.
web-1  | 2024-03-12 09:40:57,368 - ERROR - An error occurred during email archiving for account 2: 'ascii' codec can't encode character '\xdc' in position 8: ordinal not in range(128)
web-1  | 2024-03-12 09:40:57,368 - ERROR - Exception details: Traceback (most recent call last):
web-1  |   File "/app/email_archiver.py", line 104, in fetch_and_archive_emails
web-1  |     client.login(username, password)
web-1  |   File "/usr/local/lib/python3.9/imaplib.py", line 610, in login
web-1  |     typ, dat = self._simple_command('LOGIN', user, self._quote(password))
web-1  |   File "/usr/local/lib/python3.9/imaplib.py", line 1230, in _simple_command
web-1  |     return self._command_complete(name, self._command(name, *args))
web-1  |   File "/usr/local/lib/python3.9/imaplib.py", line 987, in _command
web-1  |     arg = bytes(arg, self._encoding)
web-1  | UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 8: ordinal not in range(128)

Danke für deine Arbeit, ist eher nischig das Problem....
aber halt leider für Deutsche noch eher ein Problem :)

from email-archiver.

bandundu avatar bandundu commented on June 5, 2024

Wow. My bad I have limited possibility to test. What mail providers allows for Umlauts in passwords?

Should now again be hopefully fixed in d164620

Please bear with me, I am ;)

Das bekommen wir schon hin!

from email-archiver.

Samurai1201 avatar Samurai1201 commented on June 5, 2024

It now works as expected
Thanks a lot :)

P.S.: Would it be possible to archive whole email accounts? That would be really useful.
And when Im at it asking for features, an import function for EML generated according to rfc 2822 would be a godsend

from email-archiver.

bandundu avatar bandundu commented on June 5, 2024

@Samurai1201 everything is possible ;). Please create seperate issues for each where you detail out what you need and i will take a look. Glad it works now

from email-archiver.

Related Issues (20)

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.