Class: Nanobot::Config::EmailConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::EmailConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Email channel configuration for IMAP polling and SMTP replies
Instance Attribute Summary collapse
-
#allow_from ⇒ Object
Returns the value of attribute allow_from.
-
#auto_reply_enabled ⇒ Object
Returns the value of attribute auto_reply_enabled.
-
#consent_granted ⇒ Object
Returns the value of attribute consent_granted.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#from_address ⇒ Object
Returns the value of attribute from_address.
-
#imap_host ⇒ Object
Returns the value of attribute imap_host.
-
#imap_mailbox ⇒ Object
Returns the value of attribute imap_mailbox.
-
#imap_password ⇒ Object
Returns the value of attribute imap_password.
-
#imap_port ⇒ Object
Returns the value of attribute imap_port.
-
#imap_use_ssl ⇒ Object
Returns the value of attribute imap_use_ssl.
-
#imap_username ⇒ Object
Returns the value of attribute imap_username.
-
#mark_seen ⇒ Object
Returns the value of attribute mark_seen.
-
#max_body_chars ⇒ Object
Returns the value of attribute max_body_chars.
-
#poll_interval_seconds ⇒ Object
Returns the value of attribute poll_interval_seconds.
-
#smtp_host ⇒ Object
Returns the value of attribute smtp_host.
-
#smtp_password ⇒ Object
Returns the value of attribute smtp_password.
-
#smtp_port ⇒ Object
Returns the value of attribute smtp_port.
-
#smtp_use_ssl ⇒ Object
Returns the value of attribute smtp_use_ssl.
-
#smtp_use_tls ⇒ Object
Returns the value of attribute smtp_use_tls.
-
#smtp_username ⇒ Object
Returns the value of attribute smtp_username.
-
#subject_prefix ⇒ Object
Returns the value of attribute subject_prefix.
Instance Method Summary collapse
Constructor Details
#initialize(enabled: false, consent_granted: false, imap_host: nil, imap_port: 993, imap_username: nil, imap_password: nil, imap_mailbox: 'INBOX', imap_use_ssl: true, smtp_host: nil, smtp_port: 587, smtp_username: nil, smtp_password: nil, smtp_use_tls: true, smtp_use_ssl: false, from_address: nil, auto_reply_enabled: true, poll_interval_seconds: 30, mark_seen: true, max_body_chars: 12_000, subject_prefix: 'Re: ', allow_from: []) ⇒ EmailConfig
Returns a new instance of EmailConfig.
220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/nanobot/config/schema.rb', line 220 def initialize( enabled: false, consent_granted: false, imap_host: nil, imap_port: 993, imap_username: nil, imap_password: nil, imap_mailbox: 'INBOX', imap_use_ssl: true, smtp_host: nil, smtp_port: 587, smtp_username: nil, smtp_password: nil, smtp_use_tls: true, smtp_use_ssl: false, from_address: nil, auto_reply_enabled: true, poll_interval_seconds: 30, mark_seen: true, max_body_chars: 12_000, subject_prefix: 'Re: ', allow_from: [] ) super end |
Instance Attribute Details
#allow_from ⇒ Object
Returns the value of attribute allow_from
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def allow_from @allow_from end |
#auto_reply_enabled ⇒ Object
Returns the value of attribute auto_reply_enabled
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def auto_reply_enabled @auto_reply_enabled end |
#consent_granted ⇒ Object
Returns the value of attribute consent_granted
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def end |
#enabled ⇒ Object
Returns the value of attribute enabled
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def enabled @enabled end |
#from_address ⇒ Object
Returns the value of attribute from_address
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def from_address @from_address end |
#imap_host ⇒ Object
Returns the value of attribute imap_host
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def imap_host @imap_host end |
#imap_mailbox ⇒ Object
Returns the value of attribute imap_mailbox
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def imap_mailbox @imap_mailbox end |
#imap_password ⇒ Object
Returns the value of attribute imap_password
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def imap_password @imap_password end |
#imap_port ⇒ Object
Returns the value of attribute imap_port
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def imap_port @imap_port end |
#imap_use_ssl ⇒ Object
Returns the value of attribute imap_use_ssl
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def imap_use_ssl @imap_use_ssl end |
#imap_username ⇒ Object
Returns the value of attribute imap_username
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def imap_username @imap_username end |
#mark_seen ⇒ Object
Returns the value of attribute mark_seen
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def mark_seen @mark_seen end |
#max_body_chars ⇒ Object
Returns the value of attribute max_body_chars
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def max_body_chars @max_body_chars end |
#poll_interval_seconds ⇒ Object
Returns the value of attribute poll_interval_seconds
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def poll_interval_seconds @poll_interval_seconds end |
#smtp_host ⇒ Object
Returns the value of attribute smtp_host
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def smtp_host @smtp_host end |
#smtp_password ⇒ Object
Returns the value of attribute smtp_password
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def smtp_password @smtp_password end |
#smtp_port ⇒ Object
Returns the value of attribute smtp_port
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def smtp_port @smtp_port end |
#smtp_use_ssl ⇒ Object
Returns the value of attribute smtp_use_ssl
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def smtp_use_ssl @smtp_use_ssl end |
#smtp_use_tls ⇒ Object
Returns the value of attribute smtp_use_tls
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def smtp_use_tls @smtp_use_tls end |
#smtp_username ⇒ Object
Returns the value of attribute smtp_username
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def smtp_username @smtp_username end |
#subject_prefix ⇒ Object
Returns the value of attribute subject_prefix
189 190 191 |
# File 'lib/nanobot/config/schema.rb', line 189 def subject_prefix @subject_prefix end |