def main(): # Read the parts from the users inbox parts, time_stamp = inbox.get_recent_sessions(config.mailbox) # write the ics file. run_with_input(parts, time_stamp)
def get_events(): parts, time_stamp = inbox.get_recent_sessions(config.mailbox) return convert.get_events_from_parts(parts)