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 YahooMail.YahooMail(system, config)

I am the abstract parent of using a browser to check Yahoo! email.

Parameters:

  • system: the <no title> object that is connected to the target system

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

compose_new(to, subject, msg, cc='', attach=[])

Compose a new mail message with the given fields filled in.

Parameters:

  • to: the string recipient(s) in the TO: field

  • subject: the string to enter as the subject field

  • msg: the message to type in the body of the message

  • cc: optionally the string to type in the CC: field

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

exit(save=False)

Close the browser to exit our email.

Parameters:

  • save: passed to browser for compatibility with prototype

open()

Open the browser, then go login to Yahoo Mail

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

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

select_message_by_subject(subject)

Find a message that has the given subject as at least part of it, then select it to read.

Parameters:

  • subject: the text to find