Exemple #1
0
 def read_message( cls, folder, msg_handle ):
    msg_id = message.id_from_message_path( msg_handle )
    msg_ts = message.timestamp_from_message_path( msg_handle )
    msg = message.read_message( cls.config['volume'], cls.publicKeyStr(), cls.privateKeyStr(), cls.config['gateway_privkey_pem'], folder, msg_ts, msg_id )
    
    msg_json = dict( [(attr, getattr(msg, attr)) for attr in msg._fields] )
    return msg_json
Exemple #2
0
 def delete_message( cls, folder, msg_handle ):
    msg_id = message.id_from_message_path( msg_handle )
    msg_ts = message.timestamp_from_message_path( msg_handle )
    return message.delete_message( folder, msg_ts, msg_id )