Command Line Email Client for IBM Notes (CLENotes or NotesCLI) is a command line tool to access IBM Notes
email.
Functions include reading mail, sending mail, listing mail and searching mail.
Command Line Email Client for IBM Notes v5.0.7 has following requirements:
Command Line Email Client for IBM Notes v5.0.7 was developed using IBM Notes 8.5.3, Java 1.6.0_29
and Windows 7.
CLENotes may also work on other platforms where IBM Notes 8.0.2 is supported
(please check clenotes.cmd for Java syntax).
CLENotes has been developed with Xtend-language, a dialect of Java that compiles in the Java-code. Development is done using Eclipse IDE.
Source code of the application is in src/xtend-directory and and generated Java-code is in src/java-directory.
Usage: Usage: clenotes.cmd [OPTIONS] [CMD [CMD-OPTIONS] [CMD ...] ]. See sample commands.
Commands include:
Command Line Email Client for IBM Notes v5.0.7 Copyright (C) 2002, 2014 by IBM Corporation. Licensed under the Apache License v2.0. Usage: clenotes.cmd [global-options] [cmd [cmd-options]] Global options (common for one or more commands): --help This help. --log Enabled logging for current session. --noheader Do not print header. --version Version info. --password=ARG Users Notes ID password --replica-id=ARG Select local database by specifying replica ID of the local database. Use "maildbinfo" command to get replica ID of local mail database. --local Use local mail database. --output-format=ARG Custom output format string when listing emails. Formatting options: "d=Date", "t=time", "Z=timezone", "g=GMT time", "s=subject", "f=from", "I=from (inet address)", "m=mailer", "D=message id", "S=message size", "!=do not print index number", "a=list attachments". For example: --output-format=dts print email date, time and subject in one line. --tab Use tab as delimiter when using output-format option. --delim=ARG Custom delimiter when formatting mail with --output-format option. Default delimiter is ';' --adjust-day=ARG Adjust cutoff day. Use integer value (1=mail today and yesterday, 2=mail from day before yesterday until today, and so on). No cutoff date means either "no cutoff date" or "today only" and it depends on command context. --exec-time Display elapsed time of the program execution. Does not include Java start-up time. --no-striphtmltags Do not strip HTML tags when reading HTML emails. --all-mime-texts Print all MIME text parts when reading emails. By default prints only the first mime text part, usually text/plain. --server-name=ARG Domino server name where database is located. --database-name=ARG Name of the database to be opened. Commands: help This help. today Read todays mail. --all Print all todays documents, not only mails. --read=ARG Read specific mail (given as index, or '*' for all mails) from result set. See also read-command options. --list List mail from result set. See also list-command options. search Search mail. --subject=ARG Search mails with subject. --from=ARG Search mails with sender address. --formula=ARG Search mails using Notes formula. --formula-file=ARG Search mails using Notes formula in specified file. --fulltext=ARG Search mails using full text. --read=ARG Read specific mail (given as index, or '*' for all mails) from result set. See also read-command options. --list List mail from result set. See also list-command options. read Read latest mail or use with today or search commands --dxl Exports specific mail as DXL. --fields Print all fields and their types in mail document. --fieldvalues=ARG Print value(s) of given field. --no-body Do not print mail body. --detach-file=ARG Detach specified attachment to current directory or directory specified with --detach-dir option. --detach-all Detach all attachment to current directory. --detach-dir=ARG Specify directory for detached attachments. --replace Replace attached file, if it already exists. By default, if file exists, a sequence number is appended to file name. --move-to-folder=ARG Move mail to specified folder. --delete Delete mail. --no-confirmation Do not confirm mail delete. --reply Reply email to sender. --all Reply email to all recipients. --body=ARG Body in reply mail. replicate Replicate local database to server. --server=ARG Specify server for replication. Default is mail database server. --database=ARG Specify local database file path for replication. Default is mail database. --replica-id=ARG Replica ID of database. Default is mail database replica ID. send Send mail. --to=ARG Comma separated list of recipients. For example: --to=="recp1@com,recp2@another.com" --file-to=ARG Path to text file that includes comma separated list of recipients. --cc=ARG Comma separated list of CC recipients. For example: --cc=="recp1@com,recp2@another.com" --file-cc=ARG Path to text file that includes comma separated list of CC recipients. --bcc=ARG Comma separated list of BCC recipients. For example: --bcc=="recp1@com,recp2@another.com" --file-bcc=ARG Path to text file that includes comma separated list of BCC recipients. --attach=ARG Command separated list of files to be attached. --subject=ARG Mail subject. --body=ARG Mail body. --file-body=ARG Mail body read from specified text file. --charset=ARG Charset of --file-body file. Default is UTF-8. --html Send mail as HTML. --urgent Send mail as urgent. --encrypt Encrypt mail. --sign Sign mail. --nosave Do not save mail. --replyto=ARG Set reply-to parameter to email. --principal=ARG Override email sender. Remember to add Notes domain after email, for example: sender@somewhere.com@NotesDomain. --signature=ARG Add signature to email. --file-signature=ARG Add signature to email from specified file. list List all mail in mail database. --all List all documents, not only mails. --read=ARG Read specific mail (given as index, or '*' for all mails) from result set. See also read-command options. --start=ARG Start index when listing mail. --end=ARG End index when listing mail. --sortorder=ARG Sort mails. Use value ASC or DESC. Default is ASC --sortfield=ARG Sort mails by field. Use values DATE, SUBJECT or FROM. Default is DATE. --folder=ARG Specify mail folder to be used. Default is inbox. maildbinfo Mail database information. Use --server-name, --replica-id or --database-name to specify database other than mail database. notes-version The release of Domino the session is running on. appointments Show appointments. --today List only todays appointments. --week List appointments in next 7 days. --sincedate=ARG List appointments since specified date. Date format is "DD/MM/YYYY". --desc Show appointment description. --required List required participants. --optional List optional participants.
Some sample commands to get started:
Mail database information Title : My Name Replica ID : E22957FEBC4AA6FA File path : maildir\mymail.NSF ODS version : 43 Server : SERVER1/ORG Size (used %) : 720.75 MB (94.60%) Created : 05.01.2006 13:41:59 GMT Modified : 10.12.2008 08:05:26 GMT HTTP URL : Notes URL : notes://SERVER1@ORG/__E22957FEBC4AA6FA.nsf?OpenDatabase
3 mails since yesterday. [0] 09.12.2008 02:50:29 ZE2 From: sender@somewhere.org Subject: Re: responding mail Attachments: [1] 09.12.2008 04:36:20 ZE2 From: another.sender@anywhere.org Subject: Question to you? Attachments: [2] 09.12.2008 01:24:42 ZE2 From: yetanothersender@nowhere.org Subject: Fw: This is good stuff Attachments: FunnyStuffFromReliableSource.txt.vbs
Search returned 2 mails. [0] 17.11.2008 10:59:27 ZE2 From: yetanothersender@nowhere.org Subject: Re: responding to your question Attachments: answerdocument.txt.vbs [1] 09.12.2008 01:24:42 ZE2 From: yetanothersender@nowhere.org Subject: Fw: This is good stuff Attachments: FunnyStuffFromReliableSource.txt.vbsYou can do search also by subject, formula or fulltext.
0;09.12.2008;02:50:29;Lotus Notes Release 8.0.1 HF105 April 10, 2008 1;09.12.2008;04:36:20;Lotus Notes Build V85_M1_05262008 May 26, 2008 2;09.12.2008;01:24:42;Lotus Notes Release 7.0 HF400 February 20, 2008The default delimiter is ';'. Option '--delim' is used to specify custom delimiter.
0 | 09.12.2008 | 02:50:29 | Lotus Notes Release 8.0.1 HF105 April 10, 2008 1 | 09.12.2008 | 04:36:20 | Lotus Notes Build V85_M1_05262008 May 26, 2008 2 | 09.12.2008 | 01:24:42 | Lotus Notes Release 7.0 HF400 February 20, 2008
CLENotes is licensed under the Apache License, Version 2.0.
http://www.apache.org/licenses/