@@ -6,6 +6,8 @@ module Agents |
||
| 6 | 6 |
class ImapFolderAgent < Agent |
| 7 | 7 |
cannot_receive_events! |
| 8 | 8 |
|
| 9 |
+ can_dry_run! |
|
| 10 |
+ |
|
| 9 | 11 |
default_schedule "every_30m" |
| 10 | 12 |
|
| 11 | 13 |
description <<-MD |
@@ -311,7 +313,7 @@ module Agents |
||
| 311 | 313 |
|
| 312 | 314 |
if boolify(interpolated['mark_as_read']) |
| 313 | 315 |
log 'Marking as read' |
| 314 |
- mail.mark_as_read |
|
| 316 |
+ mail.mark_as_read unless dry_run? |
|
| 315 | 317 |
end |
| 316 | 318 |
} |
| 317 | 319 |
end |