Sent message not in the good folder

I have two accounts, each with their own mail folders.Everything works fine for the second account, except for Sent e-mails : they all go into the main account Sent folder, and on the Server one too.How can I fix that ?Regards,Daniel