ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class RainLoop.RainLoop(system, config)

This class provides the implementation for interacting with the RainLoop webmail server, independent of the actual way the service is being accessed.

Parameters:

  • system: the <no title> object to control the target computer

  • config: the <no title> object defining this user

close_subwindow()

Many tasks in RainLoop will open messages or the like in subwindows. Unlike many desktop mail readers, we cannot do some tasks without one, nor can we just alt-tab to find the main window if there is a subwindow. This will close such a window if one is showing.

has_attachments()

Return: whether or not there are attachments on the currently selected message

has_subwindow()

Many tasks in RainLoop will open messages or the like in subwindows. Unlike many desktop mail readers, we cannot do some tasks without one, nor can we just alt-tab to find the main window if there is a subwindow. This will check if such a window is showing.

open()

Launch the browser and login this user to the webmail site

read()

Read the currently selected message, this may involve opening the message in a new window (and closing it when done) or scrolling a viewing area, or seeming to be idle for a while.

reply(msg, to='', cc='', attach=(), subject='')

Reply to the currently selected message, optionally responding to additional recipients.

Parameters:

  • msg: the (string) message to type as the reply

  • to: optionally a string to add to the TO: field

  • cc: optionally a string to add to the CC: field

  • attach: optionally a list of paths to files to attach to the message

  • subject: option new subject to use instead of the default

save_attachments(directory)

Save the attachments. If the browser accepts it, save them to the given directory.

Parameters:

  • directory: the directory into which the attachments should be saved

select_folder(title)

Select the first folder that is found that matches the given title.

Parameters:

  • title: the title of the mail Folder to select