Page 34 of 44 FirstFirst ... 243233343536 ... LastLast
Results 331 to 340 of 438

Thread: Conky SSL Email Python Script

  1. #331
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Conky SSL Email Python Script

    I have added this in my conkyrc file,but its not working...

    ${voffset 4}${font Liberation Sans:style=Bold:size=8}EMAIL $stippled_hr${font}
    ${execi 60 ~/.conkycolors/bin/conkyEmail --servertype=IMAP --servername=imap.gmail.com --username=XXXXXX --password=XXXXXXX}

  2. #332
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Conky SSL Email Python Script

    I have added this in my conky script,

    ${voffset 4}${font Liberation Sans:style=Bold:size=8}EMAIL $stippled_hr${font}
    ${execi 1800 python ~/.Scripts/conkyEmail.py --servertype=IMAP --servername=imap.gmail.com --username=XXXXXX --password=XXXXXXXXX}

    but i am unable to view the output.
    Attached Images Attached Images
    Last edited by karthick87; June 16th, 2010 at 11:05 AM.

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

    Re: Conky SSL Email Python Script

    Try running the command part in the terminal like this first:

    Code:
    python /path/to/file/conkyEmail.py ...options... --verbose
    With the verbose flag you'll have more to go on

    The script works fine, it's been tried and tested over and over so it must be something you are doing wrong

    Cheers

  4. #334
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Conky SSL Email Python Script

    This is the terminal output,

    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.gmail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.gmail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.timeout'>
    ?

  5. #335
    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 getyourkarthick View Post
    This is the terminal output,

    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.gmail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.gmail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.timeout'>
    ?
    The mail server is too slow to respond, use this option:

    Code:
     -c NUMBER, --connectiontimeout=NUMBER
                            [default: 10] Define the number of seconds before a
                            connection timeout can occur. Not applicable at
                            command line when using templates.
    That should sort it out for you...the default connection timeout is only 10 seconds, I would try 30 then if no joy 60 seconds...

  6. #336
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Conky SSL Email Python Script

    Quote Originally Posted by kaivalagi View Post
    The mail server is too slow to respond, use this option:

    Code:
     -c NUMBER, --connectiontimeout=NUMBER
                            [default: 10] Define the number of seconds before a
                            connection timeout can occur. Not applicable at
                            command line when using templates.
    That should sort it out for you...the default connection timeout is only 10 seconds, I would try 30 then if no joy 60 seconds...

    Do you want me to add the above option??If so where to add the above script..?

  7. #337
    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 getyourkarthick View Post
    Do you want me to add the above option??If so where to add the above script..?
    Come on your using linux, this is linux basics...the option can go anywhere in the list of options you provide e.g.

    Code:
    python ~/.Scripts/conkyEmail.py -c 30 --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    But once working remember to lose the --verbose before using in conky

    You should also be able to use the --ssl option with gmail too!

  8. #338
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Conky SSL Email Python Script

    Still no use

    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py -c 30 --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.gmail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.gmail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.error'>
    ?
    Tried -c 60

    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py -c 60 --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.gmail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.gmail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.error'>
    ?
    Last edited by karthick87; June 18th, 2010 at 04:12 AM.

  9. #339
    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 getyourkarthick View Post
    Still no use

    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py -c 30 --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.gmail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.gmail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.error'>
    ?
    Tried -c 60

    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py -c 60 --servertype=IMAP --servername=imap.gmail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.gmail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.gmail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.error'>
    ?
    try imap.googlemail.com instead of imap.gmail.com, also do you have imap enabled within your gmail account settings...it is required to be setup though gmail first...

  10. #340
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Conky SSL Email Python Script

    Yes i have enabled IMAP in gmail...and also i have tried imap.googlemail.com


    Code:
    karthick@Ubuntu-desktop:~$ python ~/.Scripts/conkyEmail.py -c 60 --servertype=IMAP --servername=imap.googlemail.com --username=XXXX --password=XXXX --verbose
    *** INITIAL OPTIONS:
        servertype: IMAP
        servername: imap.googlemail.com
        ssl: False
        username: XXXX
        password: XXXX
        mailinfo: 0
        verbose: True
    *** INFO: Logging on to IMAP server: imap.googlemail.com
    *** ERROR:getIMAPEmailData:Unexpected error:  <class 'socket.error'>
    ?
    Attached Images Attached Images

Page 34 of 44 FirstFirst ... 243233343536 ... 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
  •