Mail keeps setting "Save drafts on the server" checked I open "Preferences" in Mail, uncheck "Store drafts on server" and save (Gmail account). However, when I open the preferences again, the "Store drafts on server" (or whatever it says in English version) is checked again.
It really pisses me off. How can turn it off permanently?

I use OS X Mavericks.
Another good option that fixed the problem for me is as follows:


Quit Mail.app.
Log into Gmail in your favorite web browser.
Click on the gear menu and select Settings.
Click on the Labels tab.
Under System Labels, next to Drafts, click on show if unread and uncheck the Show in IMAP box. Now disable Store draft messages on the server.
Launch Mail.app.
Select Mail → Preferences…
Click on the Accounts button in the toolbar.
Click once on the account name and then click the Mailbox Behaviors tab.
Uncheck the Store draft messages on the server box.
Close the window and opt to save your changes when prompted.


Source: Apple Support Communities: Mavericks Mail app and Gmail Drafts folder