Added even more debug output

Signed-off-by: Tyrolyean <>
This commit is contained in:
Tyrolyean 2020-04-30 22:18:51 +02:00
parent c614aafa7f
commit a9f30b9ff0
No known key found for this signature in database
GPG Key ID: 81EC9BAC5E9667C6
1 changed files with 5 additions and 3 deletions

View File

@ -136,15 +136,17 @@ int remove_mail(struct email_t* mail){
size_t remove_len = end - mail->message;
size_t remove_offset = mail->message - root->message;
propagate_size_change(mail, -remove_len);
if(!remove_string(root->message, root->message_length,
remove_offset, remove_len)){
fprintf(stderr, "Unwilling to remove string from message at "
"offset %lu with len %lu!\n", remove_offset,
"offset %lu with len %lu total length is %lu!\n",
return -1;
propagate_size_change(mail, -remove_len);
propagate_insert_delete(root, root->message+remove_offset, -remove_len);