human
Complete this python program:
def email_outbox():
assistant
#Here is the Python program you requested.

    """RESTful CRUD controller for the Email Outbox
    - all Outbound Email Messages are visible here
    """
    if (not auth.s3_logged_in()):
        session.error = T('Requires    Login!')
        redirect(URL(c='default', f='user', args='login'))
    tablename = 'msg_email'
    table = s3db.msg_email
    s3.filter = (table.inbound == False)
    table.inbound.readable = False
    s3.crud_strings[tablename] = Storage(title_display=T('Email    Details'), title_list=T('Sent    Emails'), label_list_button=T('View    Sent    Emails'), label_delete_button=T('Delete    Email'), msg_record_deleted=T('Email    deleted'), msg_list_empty=T('No    Emails    currently    in    Outbox'))
    def postp(r, output):
        if isinstance(output, dict):
            add_btn = A(T('Compose'), _class='action-btn', _href=URL(f='compose'))
            output['rheader'] = add_btn
        return output
    s3.postp = postp
    s3db.configure(tablename, editable=False, insertable=False, listadd=False, list_fields=['id', 'date', 'to_address', 'subject', 'body'])
    return s3_rest_controller(module, 'email')