Patch level : 12.0 1214

Files correlati     : ba1.exe ba7.exe ba7100a.msk

Commento:
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:
Simoe 2022-11-17 17:32:32 +01:00
parent 5d9322548f
commit b5f77ee410
3 changed files with 25 additions and 14 deletions

View File

@ -1087,6 +1087,9 @@ int TMailer_mask::exec_app(const TString& appname, TMail_message& msg, TToken_st
}
TString command_line(appname);
if (get_bool(F_BATCH))
command_line << " -b";
command_line << " /i" << tmp;
err = run_sync(command_line);
xvt_sys_sleep(1000);
@ -1431,14 +1434,9 @@ void TMailer_mask::save_all_lines()
TBrowsefile_field& bf = (TBrowsefile_field&)field(F_LOG);
enable(DLG_DELLOG, bf.lines() > 0);
enable(DLG_DELREC);
#ifdef DBG
if (one_saved)
one_saved = yesno_box("Si desidera eliminare i messaggi processati?");
#endif
_mail_semaphore = 0;
if (one_saved)
if (get_bool(F_DELELAB) && one_saved)
{
test_delete();
fill_messages();
@ -1754,7 +1752,7 @@ bool TMailer::create()
TString arg2 = main_app().argv(3);
TString arg3 = main_app().argv(4);
bool multiple_instances = arg1.starts_with("-m") || arg2.starts_with("-m") || arg3.starts_with("-m");
bool multiple_instances = arg1.starts_with("-m") || arg2.starts_with("-m") || arg3.starts_with("-m") ;
_start_full_screen = arg1.starts_with("-f") || arg2.starts_with("-f") || arg3.starts_with("-f");
if (!multiple_instances && xvt_vobj_get_attr(NULL_WIN, ATTR_APPL_ALREADY_RUNNING))

View File

@ -5,12 +5,14 @@
#define F_TIMER 205
#define F_TRACKING 206
#define F_BACKUP 207
#define F_DELCANCEL 208
#define F_BATCH 208
#define F_DELELAB 209
#define F_DELCANCEL 210
#define F_MESSAGES 210
#define F_ADDRESSES 211
#define F_PARAMS 212
#define F_SCRIPTS 213
#define F_MESSAGES 300
#define F_ADDRESSES 301
#define F_PARAMS 302
#define F_SCRIPTS 303
#define F_LOG 220
#define DLG_DELLOG 221

View File

@ -81,7 +81,7 @@ END
NUMBER F_TIMER 5
BEGIN
PROMPT 41 0 "Controlla la posta ogni "
PROMPT 41 0 "Controlla ogni "
FLAGS "UG"
GROUP G_SUPERUSER
END
@ -126,9 +126,20 @@ BEGIN
PROMPT 55 3 "Elimina transazioni annullate"
END
BOOLEAN F_BATCH
BEGIN
PROMPT 1 4 "Registrazione automatica"
END
BOOLEAN F_DELELAB
BEGIN
PROMPT 55 4 "Elimina transazioni elaborate"
END
SPREADSHEET F_MESSAGES 0 -1
BEGIN
PROMPT 0 4 ""
PROMPT 0 5 ""
ITEM "@1"
ITEM "Da@40"
ITEM "Data@10"