dmc

dynamic mail client
git clone git://git.suckless.org/dmc
Log | Files | Refs | README | LICENSE

random (1974B)


      1 IMAP handling:
      2 --------------
      3   Usage: dmc-imap [options] [host] [port] < commands > output
      4   dmc-imap -a plain -d ~/mail [host] [port]
      5 
      6   options:
      7     -a : auth method
      8     -d : base user mail directory
      9 
     10   commands:
     11     cd [folder]
     12        # SELECT "folder"
     13  1003 [20:47:15] IMAP4> 51 SELECT "Sent Messages"
     14  1004 [20:47:15] IMAP4< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded)
     15  1005 [20:47:15] IMAP4< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded \*)] Flags permitted.
     16  1006 [20:47:15] IMAP4< * 340 EXISTS
     17  1007 [20:47:15] IMAP4< * 2 RECENT
     18  1008 [20:47:15] IMAP4< * OK [UIDVALIDITY 1230118148] UIDs valid
     19  1009 [20:47:15] IMAP4< * OK [UIDNEXT 341] Predicted next UID
     20  1010 [20:47:15] IMAP4< 51 OK [READ-WRITE] Select completed.
     21 
     22     st : show status
     23  2508 [20:48:11] IMAP4> 60 STATUS "Spam.learn-ham" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN)
     24  2509 [20:48:12] IMAP4< * STATUS "Spam.learn-ham" (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1211795420 UNSEEN 0)
     25  2510 [20:48:12] IMAP4< 60 OK Status completed.
     26 
     27     ls [num] : list num mails (can be used to check for new mail)
     28     cp = copy a mail from one folder to other
     29     mv = copy+remove
     30     rm = remove mail
     31     lt = list folder tree
     32 
     33 LOGIN
     34    Example:    C: a001 LOGIN SMITH SESAME
     35                S: a001 OK LOGIN completed
     36 SELECT
     37    Example:    C: A142 SELECT INBOX
     38                S: * 172 EXISTS
     39                S: * 1 RECENT
     40                S: * OK [UNSEEN 12] Message 12 is first unseen
     41                S: * OK [UIDVALIDITY 3857529045] UIDs valid
     42                S: * OK [UIDNEXT 4392] Predicted next UID
     43                S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
     44                S: * OK [PERMANENTFLAGS (\Deleted \Seen \*)] Limited
     45                S: A142 OK [READ-WRITE] SELECT completed
     46 CREATE
     47    Example:    C: A003 CREATE owatagusiam/
     48                S: A003 OK CREATE completed
     49                C: A004 CREATE owatagusiam/blurdybloop
     50                S: A004 OK CREATE completed
     51