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:
Alessandro Bonazzi 2022-11-21 09:06:24 +01:00
parent b5f77ee410
commit 730da6923a

View File

@ -1094,41 +1094,65 @@ int TMailer_mask::exec_app(const TString& appname, TMail_message& msg, TToken_st
err = run_sync(command_line);
xvt_sys_sleep(1000);
if (err == NOERR)
{
TConfig ini(tmp, "Transaction");
if (ini.get("Result").compare("OK", -1, true) == 0 ||
ini.get("Action").compare("RUN", -1, true) == 0)
err = 0;
else
if (get_bool(F_DELCANCEL) && ini.get("Result").compare("Cancel", -1, true) == 0)
{
TConfig ini(tmp, "Transaction");
if (err == NOERR)
{
if (ini.get("Result").compare("OK", -1, true) == 0 ||
ini.get("Action").compare("RUN", -1, true) == 0)
err = 0;
else
err = ini.get_int("Error");
else
if (get_bool(F_DELCANCEL) && ini.get("Result").compare("Cancel", -1, true) == 0)
err = 0;
else
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);
expand_sys_vars(backup);
if (backup.exist())
{
const TSheet_field& sf = sfield(F_MESSAGES);
TString id;
TFilename file;
expand_sys_vars(backup);
if (backup.exist())
{
const TSheet_field& sf = sfield(F_MESSAGES);
TString id;
TFilename file;
sh_row.get(sf.cid2index(F_ID), id);
sh_row.get(sf.cid2index(F_SENDER), file); // Cartella di provenienza
file.add(id);
file.ext("ini");
TFilename dest = backup;
dest.add(file.name());
fcopy(tmp, dest);
fcopy(tmp, dest);
}
}
}
tmp.fremove();
}
track(msg, appname, action, err);
return err;
}
@ -1379,8 +1403,12 @@ void TMailer_mask::save_all_lines()
bool one_saved = false;
TSheet_field& sf = sfield(F_MESSAGES);
TProgind p(sf.items(), TR("Elaborazione"));
FOR_EACH_SHEET_ROW(sf, nrow, row)
{
if (!p.addstatus(1L))
break;
msg.format("Messaggio %d ", nrow+1);
const char mark = *row->get(0);