lib/itrp/export/monitor.rb in itrp-export-monitor-1.0.4 vs lib/itrp/export/monitor.rb in itrp-export-monitor-1.0.5

- old
+ new

@@ -48,10 +48,11 @@ # - imap_ssl: Set to +false+ to disabled SSL (default: true) # - imap_user_name: *required* The user name to access the IMAP server # - imap_password: *required* The password to access the IMAP server # - imap_mailbox: The mailbox to monitor for ITRP export mails (default: 'INBOX') # - imap_archive: The archive mailbox to store the processed ITRP export mails (default: '[Gmail]/All Mail') + # - imap_search: The query used to search for emails from ITRP containing export data (default: `'FROM ITRP HEADER X-ITRP-ExportID ""'`) # - on_exception: A Proc that takes an exception and the mail as an argument: Proc.new{ |ex, mail| ... } module Monitor include GemConfig::Base with_configuration do @@ -78,9 +79,10 @@ has :imap_user_name, classes: String has :imap_password, classes: String has :imap_mailbox, classes: String, default: 'INBOX' has :imap_archive, classes: String, default: '[Gmail]/All Mail' + has :imap_search, classes: String, default: 'FROM ITRP HEADER X-ITRP-ExportID ""' has :on_exception, classes: Proc has :csv_row_sep, classes: String has :csv_col_sep, classes: String