Patch level : 12.0 1214
Files correlati : ba1.exe ba7.exe ba7100a.msk cg0.exe ve0.exe ve2.exe Commento: La conversione era lenta in partenza Il postino diventa trasferimenti. aggiunto il profilo e un parametro per caricarlo (-p<nome profilo>) Cambiato il parametro istanze multiple da -f a -m Cambiato il parametro full screen da -v a -f
This commit is contained in:
parent
b5f77ee410
commit
730da6923a
@ -1094,9 +1094,11 @@ int TMailer_mask::exec_app(const TString& appname, TMail_message& msg, TToken_st
|
|||||||
err = run_sync(command_line);
|
err = run_sync(command_line);
|
||||||
xvt_sys_sleep(1000);
|
xvt_sys_sleep(1000);
|
||||||
|
|
||||||
if (err == NOERR)
|
|
||||||
{
|
{
|
||||||
TConfig ini(tmp, "Transaction");
|
TConfig ini(tmp, "Transaction");
|
||||||
|
|
||||||
|
if (err == NOERR)
|
||||||
|
{
|
||||||
if (ini.get("Result").compare("OK", -1, true) == 0 ||
|
if (ini.get("Result").compare("OK", -1, true) == 0 ||
|
||||||
ini.get("Action").compare("RUN", -1, true) == 0)
|
ini.get("Action").compare("RUN", -1, true) == 0)
|
||||||
err = 0;
|
err = 0;
|
||||||
@ -1105,8 +1107,31 @@ int TMailer_mask::exec_app(const TString& appname, TMail_message& msg, TToken_st
|
|||||||
err = 0;
|
err = 0;
|
||||||
else
|
else
|
||||||
err = ini.get_int("Error");
|
err = ini.get_int("Error");
|
||||||
|
}
|
||||||
|
|
||||||
|
int nerr = 0;
|
||||||
|
|
||||||
|
TString msg = ini.get("ErrorMsg", "Transaction", nerr++);
|
||||||
|
|
||||||
|
while (msg.full())
|
||||||
|
{
|
||||||
|
msg.insert("Errore : ");
|
||||||
|
log(msg);
|
||||||
|
msg = ini.get("ErrorMsg", "Transaction", nerr++);
|
||||||
|
}
|
||||||
|
|
||||||
|
int nwarn = 0;
|
||||||
|
|
||||||
|
msg = ini.get("WarningMsg", "Transaction", nwarn++);
|
||||||
|
while (msg.full())
|
||||||
|
{
|
||||||
|
msg.insert("Segnalazione : ");
|
||||||
|
log(msg);
|
||||||
|
msg = ini.get("WarningMsg", "Transaction", nwarn++);
|
||||||
|
}
|
||||||
|
|
||||||
TFilename backup = get(F_BACKUP);
|
TFilename backup = get(F_BACKUP);
|
||||||
|
|
||||||
expand_sys_vars(backup);
|
expand_sys_vars(backup);
|
||||||
if (backup.exist())
|
if (backup.exist())
|
||||||
{
|
{
|
||||||
@ -1120,15 +1145,14 @@ int TMailer_mask::exec_app(const TString& appname, TMail_message& msg, TToken_st
|
|||||||
file.ext("ini");
|
file.ext("ini");
|
||||||
|
|
||||||
TFilename dest = backup;
|
TFilename dest = backup;
|
||||||
|
|
||||||
dest.add(file.name());
|
dest.add(file.name());
|
||||||
fcopy(tmp, dest);
|
fcopy(tmp, dest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tmp.fremove();
|
tmp.fremove();
|
||||||
}
|
}
|
||||||
|
|
||||||
track(msg, appname, action, err);
|
track(msg, appname, action, err);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1379,8 +1403,12 @@ void TMailer_mask::save_all_lines()
|
|||||||
|
|
||||||
bool one_saved = false;
|
bool one_saved = false;
|
||||||
TSheet_field& sf = sfield(F_MESSAGES);
|
TSheet_field& sf = sfield(F_MESSAGES);
|
||||||
|
TProgind p(sf.items(), TR("Elaborazione"));
|
||||||
|
|
||||||
FOR_EACH_SHEET_ROW(sf, nrow, row)
|
FOR_EACH_SHEET_ROW(sf, nrow, row)
|
||||||
{
|
{
|
||||||
|
if (!p.addstatus(1L))
|
||||||
|
break;
|
||||||
msg.format("Messaggio %d ", nrow+1);
|
msg.format("Messaggio %d ", nrow+1);
|
||||||
const char mark = *row->get(0);
|
const char mark = *row->get(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user