def set_responder_everyone(self, user, resp_subject, resp_message, start, end):
     """this method takes the params to set the user\'s vacation response to be sent to everyone:
           user: the username of the acct whose vacation response you would like to set
           resp_subject: the subject line for the response email
           resp_message: the message body of the response email
           start: the start date of the vacation
           end: the end date of the vacation"""
     try:
         self.client.UpdateVacation(
             username=user,
             enable=True,
             subject=resp_subject,
             message=resp_message,
             start_date=plus_one(start),
             end_date=plus_one(end),
             contacts_only=False,
             domain_only=False,
         )
     except Exception, err:
         print "error setting vacation responder for user: " + str(user)
         print str(err)
 def set_responder(self, user, resp_subject, resp_message, start, end, just_contacts, just_domain):
     """this method takes all the params to set the user\'s vacation response to be sent to everyone:
           user: the username of the acct whose vacation response you would like to set
           resp_subject: the subject line for the response email
           resp_message: the message body of the response email
           start: the start date of the vacation
           end: the end date of the vacation
           just_contacts: boolean; should the vacation responder just be sent to existing contacts
           just_domain: boolean; should the vacation responder just be sent to other @pdx.edu
               addresses."""
     try:
         self.client.UpdateVacation(
             username=user,
             enable=True,
             subject=resp_subject,
             message=resp_message,
             start_date=plus_one(start),
             end_date=plus_one(end),
             contacts_only=just_contacts,
             domain_only=just_domain,
         )
     except Exception, err:
         print "error setting vacation responder for user: " + str(user)
         print str(err)