|
|
**--get-msg**
|
|
|
* *dmID* - Message ID. Maximal length 20 characters. [Mandatory]
|
|
|
* *dmType* - Type of messages. Values: {sent,received}, default is received. [Mandatory]
|
|
|
* *zfoFile* - Full path where message ZFO file will be saved. If not specified, message will be stored only to database. [Optional]
|
|
|
* *attachmentDir* - Full path to folder where attachment files will be saved. If not specified, message will be stored only to database without files saving. Must be terminated by \ or /. [Optional]
|
|
|
* *download* - Values: {yes,no,ondemand}. Specifies whether to download the message from ISDS server (no = never download, use from database if present; yes = always download even if does already exist in database; ondemand = download only if doesn't exist in database). Default is ondemand. [Optional]
|
|
|
* *markDownload* - Set message as locally read. Values: {yes,no}, default is no. [Optional]
|
|
|
|
|
|
Return
|
|
|
* [status] - 0 is success, 1 error.
|
|
|
* Insert/update message data in the message database and set message as locally read if it was set.
|
|
|
* Message ZFO file saved to target path if was set.
|
|
|
* All attachment files saved to target path if was set.
|
|
|
* if an error then error code and its description are writing into stderr.
|
|
|
|
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --login "username='xxxxxx'" --get-msg "dmID='123456789',dmType='received',zfoFile='C:\temp\message.zfo',attachmentDir='C:\temp\save\'"
|
|
|
``` |