Microsoft has fixed an issue with Office 365 which sent users' emails to junk folders instead of inboxes.