lib/imap/backup/setup/account/header.rb in imap-backup-6.0.1 vs lib/imap/backup/setup/account/header.rb in imap-backup-6.1.0
- old
+ new
@@ -19,11 +19,11 @@
email #{space}#{account.username}
password#{space}#{masked_password}
path #{space}#{local_path}
folders #{space}#{folders.map { |f| f[:name] }.join(', ')}#{multi_fetch_size}
- server #{space}#{account.server}#{connection_options}
+ server #{space}#{account.server}#{connection_options}#{reset_seen_flags_after_fetch}
Choose an action
HEADER
end
@@ -49,9 +49,15 @@
return nil if !account.connection_options
escaped = JSON.generate(account.connection_options)
escaped.gsub!('"', '\"')
"\nconnection options '#{escaped}'"
+ end
+
+ def reset_seen_flags_after_fetch
+ return nil if !account.reset_seen_flags_after_fetch
+
+ "\nchanges to unread flags will be reset during download"
end
def space
account.connection_options ? " " * 12 : " " * 4
end