Command line options
Wednesday, 17 June 2009
SCLEC/2.3.1 - Softabar Command Line Email Client
Copyright (c) 2005, 2009 Softabar (www.softabar.com)

Usage: java -jar sclec-2.3.1.jar [GLOBAL-OPTIONS] [CMD [CMD-OPTIONS] ...]

Global options:
  -help                                This help.
  -version                             Version information.
  -error-codes                         Show error codes for commands.
  -noheader                            Do not print header.
  -silent                              Do not print to system out.

Commands:
  license                              License handler.
      -install=FILENAME                Install license file.
      -uninstall                       Uninstall currently installed license
                                       file.
      -view                            View currently installed license.
      -verify=FILENAME                 Verify given license file.
  send                                 Send mail using SMTP.
      -server=HOSTNAME                 SMTP server host name.
      -serverport=PORT                 SMTP server port number.
      -user=SMTPUSER                   SMTP server user name.
      -password=PASSWORD               SMTP server password.
      -from=EMAIL                      Sender address  (and optionally name
                                       specified as "SOME NAME
                                       < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >").
      -replyto=EMAIL                   Reply-to address  (and optionally name
                                       specified as "SOME NAME
                                       < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >").
      -to=EMAIL                        Recipient address  (and optionally
                                       name specified as "SOME NAME
                                       < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >").
      -cc=EMAIL                        CC recipient address  (and optionally
                                       name specified as "SOME NAME
                                       < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >").
      -bcc=EMAIL                       BCC recipient address  (and optionally
                                       name specified as "SOME NAME
                                       < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >").
      -subject=SUBJECT                 Email subject.
      -body=MSG                        Email body (message).
      -bodyfile=FILENAME               Read email body from file.
      -html                            Send email as HTML.
      -alt-body=MSG                    Plain text email body when sending
                                       HTML message.
      -tls                             Use TLS when sending mail.
      -ssl                             Use SSL when sending mail.
      -sslport=PORT                    SSL port number. If omitted, uses
                                       default port 465.
      -attach=FILENAME|URL             Attach file or URL content to email.
      -attach-del                      Delete attachment file(s) after
                                       sending. Use with attach option.
      -attach-zip                      ZIP attachment file(s) before sending.
      -attach-gzip                     GZIP attachment file(s) before sending.
      -csv=CSVFILENAME                 Read mails from a CSV-file that
                                       includes TAB-separated fields: to, cc,
                                       bcc, subject, body, bodyfile,
                                       attachment files. Use comma to
                                       separate entries within fields such as
                                       comma separated list of attachment
                                       files.
      -deletecsv                       Delete CSV-file after sending mails
      -header=NAME:VALUE               Add custom headers
      -importance=IMPORTANCE           Set mail importance. Allowed values
                                       are: [HIGHEST|HIGH|NORMAL|LOW|LOWEST]
      -debug                           Show debug info.
  list                                 List/read mail using POP3/IMAP.
      -server=HOSTNAME                 POP3/IMAP server host name.
      -serverport=PORT                 POP3/IMAP server port number.
      -user=USERNAME                   POP3/IMAP server user name.
      -password=PASSWORD               POP3/IMAP server password.
      -imap                            Read mail from IMAP (v4) server. If
                                       omitted, default protocol is POP3.
      -ssl                             Use SSL (pop3s, imaps) when reading
                                       mail.
      -debug                           Show debug info.
      -folder=FOLDERNAME               Read mails from specified folder
                                       (INBOX by default). Use with IMAP.
      -indexes=STARTINDEX,ENDINDEX     List only mails from start index to
                                       end index (colon separated values like
                                       '1:10').
      -latest=NBROFLATESTMAILS         List only specified number of latest
                                       mails (default is 1).
      -mailcount                       Display number of mails in specified
                                       folder.
      -count                           Display number of mails in result set
                                       (like search result).
      -readmessage=MESSAGESOURCEFILE   Read specified message. Message file
                                       must be email source.
      -read=MAILINDEX                  Read specified mail. If parameter
                                       omitted, reads latest mail. Use 'all'
                                       or '%' as index to read all mails.
      -view                            Read mail when listing mails (for
                                       example, search results).
      -detach                          Detach attachments to current dir or
                                       directory specified with --dir option.
                                       Use with --read option. If --read
                                       option is omitted it implies
                                       --read=all option to read all mails.
      -dir=DIRECTORY                   Detach attachments or save PDF to
                                       specified directory.
      -source                          Print mail source. Use with --read
                                       option.
      -headers                         Print only mail headers. Use with
                                       --read option.
      -delete                          Delete message. Use with --read option.
      -delete-after                    Delete message after it has been read.
                                       Use with --read option.
      -noconfirm                       Do not confirm delete. Use with
                                       --read, --delete and --delete-after
                                       options.
      -partinfo                        Print multipart info from mail body
                                       parts. Use with --read option.
      -pdf=PDFFILENAME                 Print mail as PDF. If parameter
                                       omitted, file name is generated from
                                       sender address and sent date. Use
                                       --dir option to specify directory for
                                       saved mails.
      -search=SEARCHPATTERN            Search mail using following syntax:
                                       [[!]SUBJECT CONTAINS <string>] |
                                       [[!]SUBJECT CONTAINS <string>]
                                       |[[!]BODY CONTAINS <string>] |[[!]FROM
                                       [CONTAINS | EQ] <string>] |[[!]TO EQ
                                       <string>] |[[!]CC EQ <string>]
                                       |[[!]SENTDATE [LE | GE | GT | LT | NE
                                       | EQ] <string>]  Use multiple search
                                       options to compine search terms.
                                       Default operator is AND. Use -or
                                       option for OR operator.
      -or                              Use OR operator when multiple search
                                       options are present. Default is AND
                                       operator.
      -format=FORMATSTRING             Custom format when listing mail.
                                       Format options are: 1=message
                                       number;s=subject;f=from
                                       address;F=sender address;d=sent date
                                       (use -dateformat option to
                                       customize);b=message body;B=message
                                       body where linefeed, tab and carriage
                                       return are replace by space;c=CC
                                       recipients;t=TO recipients;r=reply-to
                                       address;z=message size;a=attachment
                                       file names;I=message id;M=mailer;H=all
                                       message headers;S=email source
      -dateformat=DATEFORMAT           Custom date format when listing mail.
                                       Format may include: yy | yyyy = year;
                                       MM | MMM = month; dd = day in month;
                                       DD = day in year; HH = hour in day
                                       (0-23); hh = hour in am/pm (1-12); mm
                                       = minute in hour; ss = second in
                                       minute; SSS = millisecond; w = week in
                                       year; w = week in year; W = week in
                                       month; a = am/pm marker; z | Z | zzzz
                                       = time zone.
      -separator=STR                   Custom field separator when listing
                                       mails. Default is comma (,).
      -quotechar=STR                   Custom field quote character when
                                       listing mails. Default is none.
      -saveas=FILENAME                 Save mails when listing mail. Use
                                       format-option to modify output format,
                                       for example, CSV file.
      -append                          Append mails to existing file. Use
                                       with saveas-option.
Last Updated ( Friday, 06 November 2009 )