首页 > 代码库 > zimbra mailbox相关的命令

zimbra mailbox相关的命令

zmmailbox -z -m 123@tzx.com.cn
mailbox: 123@tzx.com.cn, size: 56.76 MB, messages: 544, unread: 3
authenticated as 123@tzx.com.cn

mbox 123@tzx.com.cn> ls
ERROR: zclient.CLIENT_ERROR (Unknown command: (ls) Type: ‘help commands‘ for a list)
mbox 123tzx.com.cn> help
 zmmailbox is used for mailbox management. Try:

     zmmailbox help admin           help on admin-related commands
     zmmailbox help account         help on account-related commands
     zmmailbox help appointment     help on appoint-related commands
     zmmailbox help commands        help on all commands
     zmmailbox help contact         help on contact-related commands
     zmmailbox help conversation    help on conversation-related commands
     zmmailbox help filter          help on filter-realted commnds
     zmmailbox help folder          help on folder-related commands
     zmmailbox help item            help on item-related commands
     zmmailbox help message         help on message-related commands
     zmmailbox help misc            help on misc commands
     zmmailbox help right           help on right commands
     zmmailbox help search          help on search-related commands
     zmmailbox help tag             help on tag-related commands

mbox 123@tzx.com.cn> zmmailbox help commands 
ERROR: zclient.CLIENT_ERROR (Unknown command: (zmmailbox) Type: ‘help commands‘ for a list)
mbox 123@tzx.com.cn> help commands           

  addFilterRule(afrl)          [opts] {name}  [*active|inactive] [any|*all] {conditions}+ {actions}+
    -a/--after <arg>             add after filter-name
    -b/--before <arg>            add before filter-name
    -f/--first                   add as first filter rule
    -l/--last                    add as last filter rule

  addOutgoingFilterRule(aofrl) [opts] {name}  [*active|inactive] [any|*all] {conditions}+ {actions}+
    -a/--after <arg>             add after filter-name
    -b/--before <arg>            add before filter-name
    -f/--first                   add as first filter rule
    -l/--last                    add as last filter rule

  addMessage(am)               [opts] {dest-folder-path} {filename-or-dir} [{filename-or-dir} ...]
    -T/--tags <arg>              list of tag ids/names
    -d/--date <arg>              received date (msecs since epoch)
    -F/--flags <arg>             flags
    --noValidation               don‘t validate file content

  adminAuthenticate(aa)        [opts] {admin-name} {admin-password}
    -u/--url <arg>               url to connect to

  authenticate(a)              [opts] {auth-account-name} {password} [target-account-name]
    -u/--url <arg>               url to connect to

  autoComplete(ac)             [opts] {query}
    -v/--verbose                 verbose output

  autoCompleteGal(acg)         [opts] {query}
    -v/--verbose                 verbose output

  checkRight(ckr)              [opts] {name} {right}
    -v/--verbose                 verbose output

  createContact(cct)           [opts] [attr1 value1 [attr2 value2...]]
    -T/--tags <arg>              list of tag ids/names
    -f/--folder <arg>            folder-path-or-id
    -i/--ignore                  ignore unknown contact attrs

  createFolder(cf)             [opts] {folder-path}
    -c/--color <arg>             color
    -u/--url <arg>               url to connect to
    -V/--view <arg>              default type for folder (appointment,contact,conversation,document,message,task,wiki)
    -F/--flags <arg>             flags

  createIdentity(cid)          {identity-name} [attr1 value1 [attr2 value2...]]

  createMountpoint(cm)         [opts] {folder-path} {owner-id-or-name} {remote-item-id-or-path} [{reminder-enabled (0*|1)}]
    -c/--color <arg>             color
    -V/--view <arg>              default type for folder (appointment,contact,conversation,document,message,task,wiki)
    -F/--flags <arg>             flags

  createSearchFolder(csf)      [opts] {folder-path} {query}
    -s/--sort <arg>              sort order TODO
    -c/--color <arg>             color
    -t/--types <arg>             list of types to search for (message,conversation,contact,appointment,document,task,wiki)

  createSignature(csig)        {signature-name} [signature-value}

  createTag(ct)                [opts] {tag-name}
    -c/--color <arg>             color

  deleteContact(dct)           {contact-ids}

  deleteConversation(dc)       {conv-ids}

  deleteItem(di)               {item-ids}

  deleteIdentity(did)          {identity-name}

  deleteFilterRule(dfrl)       {name}

  deleteOutgoingFilterRule(dofrl) {name}

  deleteFolder(df)             {folder-path}

  deleteMessage(dm)            {msg-ids}

  deleteSignature(dsig)        {signature-name|signature-id}

  deleteTag(dt)                {tag-name}

  dumpsterDeleteItem(ddi)      {item-ids}

  emptyDumpster                

  emptyFolder(ef)              {folder-path}

  exit(quit)                   

  flagContact(fct)             {contact-ids} [0|1*]

  flagConversation(fc)         {conv-ids} [0|1*]

  flagItem(fi)                 {item-ids} [0|1*]

  flagMessage(fm)              {msg-ids} [0|1*]

  getAllContacts(gact)         [opts] [attr1 [attr2...]]
    -v/--verbose                 verbose output
    -f/--folder <arg>            folder-path-or-id

  getAllFolders(gaf)           [opts] 
    -v/--verbose                 verbose output

  getAllTags(gat)              [opts] 
    -v/--verbose                 verbose output

  getAppointmentSummaries(gaps) [opts] {start-date-spec} {end-date-spec} {folder-path}
    -v/--verbose                 verbose output

  getContacts(gct)             [opts] {contact-ids} [attr1 [attr2...]]
    -v/--verbose                 verbose output

  getConversation(gc)          [opts] {conv-id}
    -v/--verbose                 verbose output

  getIdentities(gid)           [opts] 
    -v/--verbose                 verbose output

  getFilterRules(gfrl)         

  getOutgoingFilterRules(gofrl) 

  getFolder(gf)                [opts] {folder-path}
    -v/--verbose                 verbose output

  getFolderRequest(gfr)        [opts] {folder-id}
    -v/--verbose                 verbose output

  getFolderGrant(gfg)          [opts] {folder-path}
    -v/--verbose                 verbose output

  getMessage(gm)               [opts] {msg-id}
    -v/--verbose                 verbose output

  getMailboxSize(gms)          [opts] 
    -v/--verbose                 verbose output

  getRights(gr)                [opts] [right1 [right2...]]
    -v/--verbose                 verbose output

  getRestURL(gru)              [opts] {relative-path}
    -u/--url <arg>               url to connect to
    --startTime <arg>            start time for ics export
    --endTime <arg>              end time for ics export
    -o/--output <arg>            output filename

  getSignatures(gsig)          [opts] 
    -v/--verbose                 verbose output

  grantRight(grr)              {account {name}|group {name}|domain {name}||all|public|guest {email} [{password}]|key {email} [{accesskey}] {[-]right}}

  help(?)                      [opts] commands
    -v/--verbose                 verbose output

  importURLIntoFolder(iuif)    {folder-path} {url}

  listRights(lr)               [opts] 
    -v/--verbose                 verbose output

  markConversationRead(mcr)    {conv-ids} [0|1*]

  markConversationSpam(mcs)    {conv} [0|1*] [{dest-folder-path}]

  markItemRead(mir)            {item-ids} [0|1*]

  markFolderRead(mfr)          {folder-path}

  markMessageRead(mmr)         {msg-ids} [0|1*]

  markMessageSpam(mms)         {msg} [0|1*] [{dest-folder-path}]

  markTagRead(mtr)             {tag-name}

  modifyContactAttrs(mcta)     [opts] {contact-id} [attr1 value1 [attr2 value2...]]
    -r/--replace                 replace contact (default is to merge)
    -i/--ignore                  ignore unknown contact attrs

  modifyFilterRule(mfrl)       {name} [*active|inactive] [any|*all] {conditions}+ {actions}+

  modifyOutgoingFilterRule(mofrl) {name} [*active|inactive] [any|*all] {conditions}+ {actions}+

  modifyFolderChecked(mfch)    {folder-path} [0|1*]

  modifyFolderColor(mfc)       {folder-path} {new-color}

  modifyFolderExcludeFreeBusy(mfefb) {folder-path} [0|1*]

  modifyFolderFlags(mff)       {folder-path} {folder-flags}

  modifyFolderGrant(mfg)       {folder-path} {account {name}|group {name}|cos {name}|domain {name}|all|public|guest {email}|key {email} [{accesskey}] {permissions|none}}

  modifyFolderURL(mfu)         {folder-path} {url}

  modifyIdentity(mid)          {identity-name} [attr1 value1 [attr2 value2...]]

  modifyItemFlags(mif)         {item-ids} {item-flags}

  modifyMountpointEnableSharedReminder(mmesr) {mountpoint-path} {0|1}

  modifySignature(msig)        {signature-name|signature-id} {value}

  modifyTagColor(mtc)          {tag-name} {tag-color}

  moveContact(mct)             {contact-ids} {dest-folder-path}

  moveConversation(mc)         {conv-ids} {dest-folder-path}

  moveItem(mi)                 {item-ids} {dest-folder-path}

  moveMessage(mm)              {msg-ids} {dest-folder-path}

  noOp(no)                     

  postRestURL(pru)             [opts] {relative-path} {file-name}
    -c/--contentType <arg>       content-type
    -u/--url <arg>               url to connect to
    -i/--ignore                  ignore and continue on error during ics import
    --preserveAlarms             preserve existing calendar alarms during ics import (default is to use alarms in ics file)

  recoverItem(ri)              {item-ids} {dest-folder-path}

  renameFolder(rf)             {folder-path} {new-folder-path}

  renameSignature(rsig)        {signature-name|signature-id} {new-name}

  renameTag(rt)                {tag-name} {new-tag-name}

  revokeRight(rvr)             {account {name}|group {name}|domain {name}||all|public|guest {email} [{password}]|key {email} [{accesskey}] {[-]right}}

  search(s)                    [opts] {query}
    -p/--previous                previous page of search results
    -s/--sort <arg>              sort order TODO
    -c/--current                 current page of search results
    -t/--types <arg>             list of types to search for (message,conversation,contact,appointment,document,task,wiki)
    -v/--verbose                 verbose output
    -l/--limit <arg>             max number of results to return (1-1000, default=25)
    --dumpster                   search in dumpster
    -n/--next                    next page of search results

  searchConv(sc)               [opts] {conv-id} {query}
    -p/--previous                previous page of search results
    -s/--sort <arg>              sort order TODO
    -c/--current                 current page of search results
    -t/--types <arg>             list of types to search for (message,conversation,contact,appointment,document,task,wiki)
    -v/--verbose                 verbose output
    -l/--limit <arg>             max number of results to return (1-1000, default=25)
    -n/--next                    next page of search results

  selectMailbox(sm)            [opts] {name}
    -A/--admin-priv              execute requests with admin privileges
    --auth <arg>                 account to auth as

  syncFolder(sf)               {folder-path}

  tagContact(tct)              {contact-ids} {tag-name} [0|1*]

  tagConversation(tc)          {conv-ids} {tag-name} [0|1*]

  tagItem(ti)                  {item-ids} {tag-name} [0|1*]

  tagMessage(tm)               {msg-ids} {tag-name} [0|1*]

  whoami                       


mbox 123@tzx.com.cn> help commands


zimbra mailbox相关的命令