'Decode the folder id given that it has already lost the prefixed \'F\'.
:param encoded_folder_id: encoded id of the Folder object
:type  encoded_folder_id: string
:returns:  decoded Folder id
:rtype:    int
:raises: MalformedId'

def decode_folder_id(self, trans, encoded_folder_id):

    try:
        decoded_id = trans.security.decode_id(encoded_folder_id)
    except ValueError:
        raise MalformedId(('Malformed    folder    id    (    %s    )    specified,    unable    to    decode' % str(encoded_folder_id)))
    return decoded_id
