Module: Teamlab::MailFolders

Included in:
Mail
Defined in:
lib/teamlab/modules/mail/mail_folders.rb

Overview

Methods for working with mail folders

Instance Method Summary collapse

Instance Method Details

#get_folder_change_date(folder_id) ⇒ Object



10
11
12
# File 'lib/teamlab/modules/mail/mail_folders.rb', line 10

def get_folder_change_date(folder_id)
  @request.get(['folders', folder_id.to_s, 'modify_date'])
end

#get_folders(options = {}) ⇒ Object



6
7
8
# File 'lib/teamlab/modules/mail/mail_folders.rb', line 6

def get_folders(options = {})
  @request.get(%w[folders], options)
end

#remove_all_messages_from_folder(folder_id) ⇒ Object



14
15
16
# File 'lib/teamlab/modules/mail/mail_folders.rb', line 14

def remove_all_messages_from_folder(folder_id)
  @request.delete(['folders', folder_id.to_s, 'messages'])
end