Mail is automatically archiving every gmail email
I have three gmail accounts. All of them are going immediately into their respective archive folders so I can't see them in my inbox. Even when I try to physically move them into my inbox then stay in the archive folder. I have done fairly extensive research on this and it appears to be a Mac Mail issue and not a Gmail issue as this problem is most definitely related to Mac Mail and how it's handling Gmail messages. I think the problem is that Mail is assigning the Archive folder for the Inbox for all the Gmail accounts. I don't see a way to change the default folder for the inbox so how can I fix the problem?
MacBook Pro with Retina display, OS X El Capitan (10.11.3), null