Like us on Facebook!

Monday, 8 April 2013

IMAP - Useful Commands

  • Login
    • a1 LOGIN "tux" "hidden"
  • List all available directories
    • a2 LIST "" ""*
  • List specific directories
    • a3 LIST "" "INBOX.Priv"*
  • Select a specific FOLDER
    • a4 SELECT INBOX.Test
  • View ALL
    • a5 FETCH 1:3 ALL
  • View BODY
    • a6 FETCH 2 BODY[]
  • Download individual header lines
    • a7 FETCH 2 BODY[HEADER.FIELDS Message-ID
  • Copy a message either to another FOLDER or back in the same FOLDER
    • a8 COPY 2:3 INBOX.Test
  • Searching for Email Contents
    • a11 SEARCH UNSEEN
  • Find messages marked for DELETION
    • a12 SEARCH 1:4 DELETED
  • Search message contents
    • a13 SEARCH ALL TEXT Heinlein
  • Account migration
    • imapsync --hostl oldmail.example.com --userl tux \
      --passwordl "secret" --host2 newmail.example.com --user2 t.tux \
      --password2 "secret"
  • Account migration with a password file
    • imapsync --host1 oldmail.example.com --userl tux \
      --passfile1 /root/pw1 --host2 newmail.example.com --user2 t.tux \
      --passfile2 /root/pw2

No comments:

Post a Comment

Have your say!