Options
Tuesday, 29 January 2008


SCLEC/1.8.5 - Softabar Command Line Email Client
Copyright (C) 2005 - 2009 Softabar (www.softabar.com)

Usage:
Windows: SCLEC.bat <options>
Java : java -cp . LauncherBootstrap sclec <options>

Options:

-examples [<command name>] Print usage examples.
-help [<command name>] This help. Specify command name to get help for specified command.
-licenseemail <email> Install license key. Use with -licensekey option.
-licensekey <license key> Install license key. Use with -licenseemail option.
-optionsfile <file name> [,<file name>, ...]
Read options from specified file(s).
-pop3password <password> POP3 server password.
-pop3port <port> POP3 server port.
-pop3server <host name> POP3 server address.
-pop3user <user name> POP3 server user name.
-saveas <file name> Save current options to a file for use with -optionsfile option.
-silent Silent, does not print to system out.
-smtpdebug Show SMTP communication.
-smtppassword <password> SMTP server password.
-smtpport <port> SMTP server port.
-smtpserver <host name> SMTP server address.
-smtpuser <user name> SMTP server user name.
-ssl Enables SSL for SMTP and POP3.

-----------------------------------
-emailshell Email shell. Monitor specific email, execute commands in the mail body (must be text/plain) and reply output to sender. Use POP3 settings to specify monitored POP3 email address and SMTP settings to set settings for sending reply email.
-adminemail <email address>Administrator's email. Emails from this address may include valid commands.
-cmdsubject <subject> Subject of email that contains commands.
-interval <seconds> How often to check email. Default 60 seconds.
-nodelete Do not delete command email after receiving.
-save <directory> Save emails to specified directory.

-----------------------------------
-monitordir <directory name> Monitor specified directory and send files in the directory as attachments and deletes file from the directory. Use -sendmail options to set SMTP server and other parameters for sending mail.
-actionclass <class name> Custom class to execute when directory content changed.
-interval <seconds> How often to check directory. Default 60 seconds.
-nodelete Do not delete files in directory after sending. Use with caution, delete files manually as soon as possible.
-optionfiles Files in monitored directory are options separated by new line.

-----------------------------------
-monitoremail Monitor email. Save email to file 'inbox' in current directory and delete email from the server and either reply or forward mail (-reply and -forward options). Use POP3 options to set POP3 server and other settings.
-actionclass <class name> Custom class to execute when email received.
-forward Forward email. Use -sendmail options to set SMTP server, recipient and other parameters for sending mail.
-interval <seconds> How often to check email. Default 60 seconds.
-nodelete Do not delete email after receiving. Use with caution.
-nosave Do not save email after receiving.
-reply Reply email. Use -sendmail options to set SMTP server and other parameters for sending mail.
-savedir <directory> Directory for saved emails.

-----------------------------------
-monitorfile <file name> [,<file name>, ...]
Monitor specified file and send it as attachment to recipient. Use -sendmail options to set SMTP server and other parameters for sending mail.
-actionclass <class name> Custom class to execute when file(s) changed.
-interval <seconds> How often to check file changes. Default 60 seconds.

-----------------------------------
-readmail Read mail using POP3.
-colwidth <width> Column width (default 20). Used when listing mail.
-delete Delete mail after reading. Use with -read option.
-delim <delimeter> Field delimiter when listing mail.
-filter <filter string> Filter to be used when listing or reading emails. Syntax: "FIELD=value" where FIELD one of "from | subject".
-fwd <index> Forward mail with specified index. Use -sendmail options to specify SMTP server, recipient etc.
-mailseparator When saving mail with -savemail option, include mails between START OF MESSAGE and END OF MESSAGE separators.
-nodate Do not print date. Used when listing mail.
-noheader Do not print header. Used when listing mail.
-noindex Do not print index column. Used when listing mail.
-noquote Do not include quote characters when saving emails in CSV format. Use with -saveascsv and saveascsv2 options.

-nosender Do not print sender. Used when listing mail.
-nosubject Do not print subject. Used when listing mail.
-read <index> Read mail with specified index. Use '%' to read all mails.

-saveascsv      Save mails in CSV format ('from', 'YYYY-MM-DD HH:MM:SS', 'subject', 'body'). Body includes linefeeds.
-saveascsv2    Save mails in CSV format ('from', 'YYYY-MM-DD HH:MM:SS', 'subject', 'body'). Linefeeds are removed from body.
-saveassimple Save mails in simple format (from, date, subject, body).-saveattachment <directory>Save mail attachments to specified directory. Use with -read option.
-savemail <directory> Save mail to file named 'inbox' in specified directory. Use with -read option.
-savemailfilename <file name>
File name for saved emails. Default is 'inbox'. Use with -savemail option.
-separatemailfile Save mails to separate files.

-tosender Forward mail back to sender (reply). Use with -fwd option.

-----------------------------------
-sendmail Send mail using SMTP.
-attachment <file name> [,<file name>, ...]
Comma separated list of attachment file names.
-bcc <recipient> [,<recipient>, ...]
Comma separated list of BCC addresses.
-body <text> Mail body.
-bodyfile <file name> Read mail body from a file.
-cc <recipient> [,<recipient>, ...]
Comma separated list of CC addresses.
-csv <file name> Read mails from CSV file. Tab-separated file with fields (to, cc, bcc, subject, body, body file name). New line marks next mail.
-deleteattachment Delete attachment files after sending mail.
-from <sender> Sender email address.
-fromname <name> Sender name.
-header <name=value> [,<name=value>, ...]
Add custom header in format headerName=headerValue.
-html Send mail as HTML.
-importance <importance> Set mail importance. Use one of HIGHEST, HIGH, NORMAL, LOW, LOWEST.
-inlineimage <file name> [,<file name>, ...]
Add inline images to email. Used with HTML mail. Specify inline images "<img src='cid:<imageFileName>'>".
-nolog Do not log mail. By default, sent emails are logged in sent-emails.txt file in log-directory.
-replyto <reply address> Reply-to email address.
-replytoname <name> Reply-to name.
-subject <subject> Mail subject.
-to <recipient> [,<recipient>, ...]
Comma separated list of TO addresses.
-zip Zip attachments before sending.

-----------------------------------
-server Start socket server.
-password <password> Server password.
-port <port number> Server port. Default port is 42424.

Last Updated ( Sunday, 15 March 2009 )