Adjusted doc imap