SelectTools>Account Settingsfrom the menu.

Select theSynchronization & Storagecategory for the desired IMAP account.

CheckKeep messages for this account on this computer.

Thunderbird menu with Account Settings highlighted

CheckDownloadfor theInboxfolder and any others you want available offline.

Thunderbird Message Synchronizing

Advanced highlighted in Message Synchronizing

Selecting offline folders in Thunderbird