Page 42 of 44 FirstFirst ... 324041424344 LastLast
Results 411 to 420 of 438

Thread: Conky SSL Email Python Script

  1. #411
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky SSL Email Python Script

    Looks like yahoo are doing things a little differently with their headers which is the reason for all the initial receive date parsing errors, but that wont break things it just means the script can't ensure things are shown in the right order...

    The main issue here seems to be the timeout errors you are getting regardless of ssl or non ssl connections...for those try increasing the connection timeout value, currently set to 15 seconds...
    Last edited by kaivalagi; July 6th, 2011 at 11:31 PM.

  2. #412
    Join Date
    Jun 2009
    Beans
    12

    Re: Conky SSL Email Python Script

    I was hoping someone else was having this problem because I can never be sure I'm not at fault.

    The conkyEmail script works great in a variety of distros - I've gotten it to work from Jaunty through to Maverick, plus Debian Squeeze and even Puppy. However, I am having trouble with my IMAP account in Natty derivatives. I get the following error:

    ERROR: getIMAPEmailData:Unexpected error:Traceback (most recent call last):
    File "/usr/share/conkyemail/conkyEmail.py", line 445, in getIMAPEmailData
    imap.shutdown()
    File "/usr/lib/python2.7/imaplib.py", line 252, in shutdown
    self.sock.shutdown(socket.SHUT_RDWR)
    File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
    File "/usr/lib/python2.7/socket.py", line 170, in _dummy
    raise error(EBADF, 'Bad file descriptor')
    error: [Errno 9] Bad file descriptor

    Wondering if there is a fix for this.

    As I said, this same conky setup works perfectly in the other distros, but I get the above problem in Natty, Pinguy Natty, Mint 11, lubuntu, etc. - all the Natty based distros.

    Gmail and POP3 work fine, however.

    -KJ

    Figured it out:
    Edit the file /usr/share/conkyemail/conkyEmail.py
    Comment out (or delete) the line that reads: imap.shutdown()
    (This is Line 445 in the version I have)

    Voila!
    Last edited by KenJean; July 27th, 2011 at 11:32 PM. Reason: Solved

  3. #413
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky SSL Email Python Script

    Nice find although it is already commented out in the latest version 2.15

    Here's the previous code commit: http://bazaar.launchpad.net/~conky-c...il/revision/34

    Make sure you're up to date

    Cheers

  4. #414
    Join Date
    Jun 2009
    Beans
    12

    Re: Conky SSL Email Python Script

    I figured as much. The version I'm getting through the repositories is still 2.14 - even as I speak.

    Don't know how long it takes for them to update these things.

    Many thanks for your good work though. Keep it up.

    -KJ

  5. #415
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    618
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Conky SSL Email Python Script

    I have a quick question.

    Since my Gmail account was hacked, I've switched to another account and become a bit paranoid.

    If I use the code:
    Code:
    ${execi 60 conkyEmail --servertype=POP --servername=my-secure-server --username=my-username --password=my-password}
    Am I connecting securely? I like having my email count in conky but don't want my credentials or email floating around open for anyone to see. Do I need to add something to this command to ensure it connects securely? It looks like according to the read me at the start of this thread that I need to.

    I'm using conkyMail 2.14
    Thank you,
    GG -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

  6. #416
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky SSL Email Python Script

    Quote Originally Posted by GrouchyGaijin View Post
    I have a quick question.

    Since my Gmail account was hacked, I've switched to another account and become a bit paranoid.

    If I use the code:
    Code:
    ${execi 60 conkyEmail --servertype=POP --servername=my-secure-server --username=my-username --password=my-password}
    Am I connecting securely? I like having my email count in conky but don't want my credentials or email floating around open for anyone to see. Do I need to add something to this command to ensure it connects securely? It looks like according to the read me at the start of this thread that I need to.

    I'm using conkyMail 2.14
    You need to use the SSL option (--ssl) of the script to enforce encryption of the connection made, this needs a mail service that supports it and may require using a custom port (--port=) too using another script option.

    Hope that helps

  7. #417
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    618
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Conky SSL Email Python Script

    Quote Originally Posted by kaivalagi View Post
    You need to use the SSL option (--ssl) of the script to enforce encryption of the connection made, this needs a mail service that supports it and may require using a custom port (--port=) too using another script option.

    Hope that helps
    Thanks for the quick reply.

    When I use -e I still get a message count. If I use --SSL I don't.
    I *think* I'm setup to use a secure server since my hosting provider Siteground lists two options for server settings. One with secure and one without.
    The port they say to use is 995.
    Thank you,
    GG -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

  8. #418
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    618
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Re: Conky SSL Email Python Script

    OK got it - I need to use:
    Code:
    conkyEmail --ssl --port=995  --servertype=POP...
    NOT --SSL

    I'm slow.

    Thanks!!
    Thank you,
    GG -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

  9. #419
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky SSL Email Python Script

    Quote Originally Posted by GrouchyGaijin View Post
    OK got it - I need to use:
    Code:
    conkyEmail --ssl --port=995  --servertype=POP...
    NOT --SSL

    I'm slow.

    Thanks!!
    -e and --ssl do the same thing, use either

  10. #420
    Join Date
    Nov 2010
    Beans
    19

    Re: Conky SSL Email Python Script

    hi im running mint 12 and i love conky,
    but conkyemail doesn't work any more.

    ${execi 300 conkyEmail --servertype=IMAP --servername=imap.mail.com --username=my email --password=my password --ssl}

    if i change imap to pop it is working, but it shows me all the emails in my inbox,
    i like to have imap so i only see the new messages.

    im running conkyEmail 2.14

    terminal output


    $ conky
    Conky: /home/dominik/.conkyrc: 17: config file error
    Conky: desktop window (1000024) is subwindow of root window (15d)
    Conky: window type - normal
    Conky: drawing to created window (0x3000001)
    Conky: drawing to double buffer
    ERROR: getIMAPEmailData:Unexpected error:Traceback (most recent call last):
    File "/usr/share/conkyemail/conkyEmail.py", line 445, in getIMAPEmailData
    imap.shutdown()
    File "/usr/lib/python2.7/imaplib.py", line 1187, in shutdown
    self.file.close()
    File "/usr/lib/python2.7/socket.py", line 282, in close
    self._sock.close()
    AttributeError: 'NoneType' object has no attribute 'close'
    Last edited by scratch178; November 25th, 2011 at 06:14 PM.

Page 42 of 44 FirstFirst ... 324041424344 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •