Class: Imap::Backup::Email::Provider::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/imap/backup/email/provider/base.rb

Overview

Supplies defaults for email provider behaviour

Direct Known Subclasses

AppleMail, Fastmail, GMail, Purelymail, Unknown

Instance Method Summary collapse

Instance Method Details

#folder_ignore_tagsArray<Symbol>

Returns tags to ignore when listing folders.

Returns:

  • (Array<Symbol>)

    tags to ignore when listing folders



10
11
12
# File 'lib/imap/backup/email/provider/base.rb', line 10

def folder_ignore_tags
  []
end

#optionsHash

Returns defaults for the Net::IMAP connection.

Returns:

  • (Hash)

    defaults for the Net::IMAP connection



15
16
17
# File 'lib/imap/backup/email/provider/base.rb', line 15

def options
  {port: 993, ssl: {min_version: OpenSSL::SSL::TLS1_2_VERSION}}
end

#rootString?

By default, we query the server for this value. It is only fixed for Apple Mail accounts.

Returns:

  • (String, nil)

    any fixed value to use when requesting the list of account folders



22
23
# File 'lib/imap/backup/email/provider/base.rb', line 22

def root
end

#sets_seen_flags_on_fetch?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/imap/backup/email/provider/base.rb', line 25

def sets_seen_flags_on_fetch?
  false
end