Gonzih / feeds2imap.clj

Pull RSS/Atom feeds to your IMAP folders with Clojure on JVM.
http://feeds2imap.gonzih.me/
MIT License
31 stars 6 forks source link

Option to disable GPG usage #9

Closed vitalyster closed 9 years ago

vitalyster commented 9 years ago

I have set up feeds2imap as cron job on remote VPS, in this case I think encrypting imap settings is meaningless: I need to expose my key passphrase in plain text, which is the same as store imap settings unencrypted. The only problem is - I want to see cron alerts when some error happened, but it spams me on every feeds2imap launch because gpg errors are on stderr. Is it possible to add an option to skip reading encrypted imap settings?

Gonzih commented 9 years ago

It will read encrypted setting only if encrypted file exists.

— Regards, Max

On Fri, Feb 20, 2015 at 12:38 PM, vitalyster notifications@github.com wrote:

I have set up feeds2imap as cron job on remote VPS, in this case I think encrypting imap settings is meaningless: I need to expose my key passphrase in plain text, which is the same as store imap settings unencrypted.

The only problem is - I want to see cron alerts when some error happened, but it spams me on every feeds2imap launch because gpg errors are on stderr. Is it possible to add an option to skip reading encrypted imap settings?

Reply to this email directly or view it on GitHub: https://github.com/Gonzih/feeds2imap.clj/issues/9

vitalyster commented 9 years ago

Then it is broken:

$ ls ~/.config/feeds2imap.clj/
imap.clj  read-items.clj  urls.clj
[vt@my ~]$ ~/bin/lein feeds2imap pull
Could not decrypt credentials from /home/vt/.config/feeds2imap.clj/imap.clj.gpg
gpg: can't open `/home/vt/.config/feeds2imap.clj/imap.clj.gpg'
gpg: decrypt_message failed: file open error