Hi Dario,
If you search the forum for Firefox and Thunderbird you'll find a number of posts relating to this issue.
I have given an explanation of why it occurs
here and given instructions for avoiding it.
There is also an alternative procedure
here which also works.
Terry