X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d2ec840058a6de4eaafe57fe66953ede542815e6..291910cdb61718058e81d938fb6dc1da7cc9cfff:/imap.md?ds=sidebyside diff --git a/imap.md b/imap.md index b0d5375..403a61a 100644 --- a/imap.md +++ b/imap.md @@ -31,9 +31,9 @@ Variable | Meaning | Type | Default Let's focus better on `is_plain`. -The reason why it's false by default is to discourage the habit of storing passwords in plain files. +The reason why it's false by default is to discourage the habit of storing passwords in plain. -You can set your password in plain like this: +So you can set your password in plain like this: myimapcheck = lain.widgets.imap({ is_plain = true, @@ -46,10 +46,8 @@ and you'll have the same security provided by `~/.netrc`. **Or** you can use a keyring, like [python keyring](https://pypi.python.org/pypi/keyring): myimapcheck = lain.widgets.imap({ - is_plain = true, - password = "myplainpassword", - server = "mail.autistici.org", - mail = "dada@anche.no", + password = "keyring get mymail", + [...] }) When `is_plain == false`, it *executes* `password` before using it, so you can also use whatever password fetching solution you want.