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

Provide any non-platform specific implementation details about using Outlook 2010 that differ from a generic email client or Outlook broadly.

Parameters:

  • system: the <no title> object to communicate with the remote 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

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

Forward the currently selected message to at least one recipient optionally with an additional message added to the email.

Parameters:

  • to: the string to enter in the TO: field

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

  • msg: optionally the string to add to the body before sending

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

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

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

reply_all(msg, attach=(), subject='')

Press the reply-to-all button (or similar) and add a message.

Parameters:

  • msg: the string message to type

  • 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 on the current message to the given directory.

Parameters:

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