summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feed2imap/feed2imap.rb')
-rw-r--r--lib/feed2imap/feed2imap.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index 38046e9..a20eeed 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -46,6 +46,10 @@ class Feed2Imap
@logger.fatal("Configuration file #{configfile} not found.")
exit(1)
end
+ if (File::stat(configfile).mode & 044) != 0
+ @logger.warn("Configuration file is readable by other users. It" +
+ "probably contains your password.")
+ end
begin
File::open(configfile) {
|f| @config = F2IConfig::new(f)