View Single Post
Old 02-10-2015, 02:04 PM   #3715
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by JimmXinu View Post
Okay, attached is a new test version with code to fetch story URLs from your email.
Testing with my local Postfix/Dovecot mail stack (so, mainstream IMAP protocol, no GMail surprises). Works very well.

One strange thing: I have a space in my folder name. For mail.select() to work, I had to put the folder's name inside quotes in the new preferences panel.

Quote:
Originally Posted by JimmXinu View Post
WARNING There's very little data protect in Python--once you've given FFDL your password, any plugin or other part of calibre could read it if it knows to look for it.
Maybe calling EmailPassDialog directly in get_urls_from_imap's parameters? Sure, the user would have to reenter his password each time they click the menu, but I don't think the function would be used at such a frequency that it would be a hassle.

I haven't tested it, mind.

Perhaps even ask the user: "You have tried to retrieve your mail three times in less than three minutes. Do you want me to remember your password until you restart Calibre? Y/N (Warning: this can be a security risk)". Or something like that.

N.
aleyx is offline