ashishkg0022 / gmail-attachments

a python script which asks you for login and ask any other email_id . it downloads all attachments of inbox came from that other email_id
9 stars 22 forks source link

Proxy settings can be added now #11

Closed thealphadollar closed 6 years ago

thealphadollar commented 6 years ago

3 I've added the code to ask the user if he wants to add a proxy (only in the terminal version not GUI), and those proxy settings are used for the incoming and outgoing traffic.

I'm currently not behind a proxy and hence was not able to test this but theoretically, it should work.

thealphadollar commented 6 years ago

merge conflicts resolved, please check @ashishkg0022

ashishkg0022 commented 6 years ago

I am currently not using net under proxy . please wait for a week , I will test it.

thealphadollar commented 6 years ago

@ashishkg0022 please check this now?

ashishkg0022 commented 6 years ago

Sorry for the delay. I have tested it and it is not working

File "ga-cli.py", line 98, in <module>
    M = imaplib.IMAP4_SSL('imap.gmail.com')
  File "/usr/lib/python2.7/imaplib.py", line 1166, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/lib/python2.7/imaplib.py", line 173, in __init__
    self.open(host, port)
  File "/usr/lib/python2.7/imaplib.py", line 1177, in open
    self.sock = socket.create_connection((host, port))
  File "/usr/lib/python2.7/socket.py", line 575, in create_connection
    raise err
socket.error: [Errno 101] Network is unreachable
thealphadollar commented 6 years ago

The error hasn't been resolved and I'm unable to rectify it.