NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/Dockerfiles/dovecot/imapsync_runner.pl

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

imapsync_runner.pl on main
Author Date Commit Line Code
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1
#!/usr/bin/perl
Open commit View diff
1 #!/usr/bin/perl
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
2
Open commit View diff
2
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
3
use DBI;
Open commit View diff
3 use DBI;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
4
use LockFile::Simple qw(lock trylock unlock);
Open commit View diff
4 use LockFile::Simple qw(lock trylock unlock);
andryyy almost 9 years ago c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
5
use Proc::ProcessTable;
Open commit View diff
5 use Proc::ProcessTable;
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
6
use Data::Dumper qw(Dumper);
Open commit View diff
6 use Data::Dumper qw(Dumper);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
7
use IPC::Run 'run';
Open commit View diff
7 use IPC::Run 'run';
Markus Frosch about 9 years ago 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
8
use File::Temp;
Open commit View diff
8 use File::Temp;
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
9
use Try::Tiny;
Open commit View diff
9 use Try::Tiny;
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
10
use sigtrap 'handler' => \&sig_handler, qw(INT TERM KILL QUIT);
Open commit View diff
10 use sigtrap 'handler' => \&sig_handler, qw(INT TERM KILL QUIT);
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
11
Open commit View diff
11
André Peters about 7 years ago 081feca

Replacing trim by function

Full commit hash
081feca893ec54988d7413e2e062a4b1d90e82ab
Author
André Peters <[email protected]>
Date
about 7 years ago
Selected line
12
sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s };
Open commit View diff
12 sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s };
andryyy almost 9 years ago c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
13
my $t = Proc::ProcessTable->new;
Open commit View diff
13 my $t = Proc::ProcessTable->new;
andryyy over 6 years ago 701198b

[Dovecot] Fix check to determine running imapsync procs, todo: more jobs at the same time

Full commit hash
701198b8f402370e4f65c02d785dd49faecab2b3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
14
my $imapsync_running = grep { $_->{cmndline} =~ /imapsync\s/i } @{$t->table};
Open commit View diff
14 my $imapsync_running = grep { $_->{cmndline} =~ /imapsync\s/i } @{$t->table};
andryyy over 6 years ago 632d1ca

[Dovecot] Fix imapsync_cron

Full commit hash
632d1cabb3e2e59b423352802d59684ed94ea6e3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
if ($imapsync_running ge 1)
Open commit View diff
15 if ($imapsync_running ge 1)
andryyy almost 9 years ago c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
16
{
Open commit View diff
16 {
same change c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
17
  print "imapsync is active, exiting...";
Open commit View diff
17 print "imapsync is active, exiting...";
same change c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
18
  exit;
Open commit View diff
18 exit;
same change c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
19
}
Open commit View diff
19 }
same change c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
20
Open commit View diff
20
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
21
sub qqw($) {
Open commit View diff
21 sub qqw($) {
hunter-nl about 7 years ago d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
22
  my @params = ();
Open commit View diff
22 my @params = ();
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
23
  my @values = split(/(?=--)/, $_[0]);
Open commit View diff
23 my @values = split(/(?=--)/, $_[0]);
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
24
  foreach my $val (@values) {
Open commit View diff
24 foreach my $val (@values) {
hunter-nl about 7 years ago d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
25
    my @tmpparam = split(/ /, $val, 2);
Open commit View diff
25 my @tmpparam = split(/ /, $val, 2);
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
26
    foreach my $tmpval (@tmpparam) {
Open commit View diff
26 foreach my $tmpval (@tmpparam) {
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
27
        if ($tmpval ne '') {
Open commit View diff
27 if ($tmpval ne '') {
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
28
          push @params, $tmpval;
Open commit View diff
28 push @params, $tmpval;
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
29
        }
Open commit View diff
29 }
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
30
    }
Open commit View diff
30 }
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
31
  }
Open commit View diff
31 }
same change d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
32
  foreach my $val (@params) {
Open commit View diff
32 foreach my $val (@params) {
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
33
    $val=trim($val);
Open commit View diff
33 $val=trim($val);
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
34
  }
Open commit View diff
34 }
hunter-nl about 7 years ago d32f3e9

Fix processing imapsync custom parameters

Full commit hash
d32f3e9d16478ff341f7101ed864efc604b85fac
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
35
  return @params;
Open commit View diff
35 return @params;
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
36
}
Open commit View diff
36 }
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
37
Open commit View diff
37
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
38
$run_dir="/tmp";
Open commit View diff
38 $run_dir="/tmp";
andryyy over 5 years ago 971434d

[mailcow] Use ofelia instead of cron daemons (wip: remove init systems)

Full commit hash
971434ddd354a87208cbee87d399fc66be3e94ff
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
39
$dsn = 'DBI:mysql:database=' . $ENV{'DBNAME'} . ';mysql_socket=/var/run/mysqld/mysqld.sock';
Open commit View diff
39 $dsn = 'DBI:mysql:database=' . $ENV{'DBNAME'} . ';mysql_socket=/var/run/mysqld/mysqld.sock';
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
40
$lock_file = $run_dir . "/imapsync_busy";
Open commit View diff
40 $lock_file = $run_dir . "/imapsync_busy";
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
41
$lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1);
Open commit View diff
41 $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
42
$lockmgr->lock($lock_file) || die "can't lock ${lock_file}";
Open commit View diff
42 $lockmgr->lock($lock_file) || die "can't lock ${lock_file}";
andryyy over 5 years ago 971434d

[mailcow] Use ofelia instead of cron daemons (wip: remove init systems)

Full commit hash
971434ddd354a87208cbee87d399fc66be3e94ff
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
43
$dbh = DBI->connect($dsn, $ENV{'DBUSER'}, $ENV{'DBPASS'}, {
Open commit View diff
43 $dbh = DBI->connect($dsn, $ENV{'DBUSER'}, $ENV{'DBPASS'}, {
andryyy almost 9 years ago c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
44
  mysql_auto_reconnect => 1,
Open commit View diff
44 mysql_auto_reconnect => 1,
same change c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
45
  mysql_enable_utf8mb4 => 1
Open commit View diff
45 mysql_enable_utf8mb4 => 1
same change c748443

[Dovecot] Remove master.pid if not running; Check for active imapsync besides lock file; Reconnect MySQL connection in imapsync_cron.pl

Full commit hash
c7484434ddf96b212c4ec7df912260a07317bb44
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
46
});
Open commit View diff
46 });
andryyy over 6 years ago 632d1ca

[Dovecot] Fix imapsync_cron

Full commit hash
632d1cabb3e2e59b423352802d59684ed94ea6e3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
47
$dbh->do("UPDATE imapsync SET is_running = 0");
Open commit View diff
47 $dbh->do("UPDATE imapsync SET is_running = 0");
same change 632d1ca

[Dovecot] Fix imapsync_cron

Full commit hash
632d1cabb3e2e59b423352802d59684ed94ea6e3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
48
Open commit View diff
48
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
49
sub sig_handler {
Open commit View diff
49 sub sig_handler {
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
50
  # Send die to force exception in "run"
Open commit View diff
50 # Send die to force exception in "run"
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
51
  die "sig_handler received signal, preparing to exit...\n";
Open commit View diff
51 die "sig_handler received signal, preparing to exit...\n";
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
52
};
Open commit View diff
52 };
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
53
Open commit View diff
53
Kristian Feldsam over 3 years ago 802d304

Revert "[Dovecot] Disable imapsync job, when auth details are wrong. Fixes #4276 (#4540)" Closes #4711

Full commit hash
802d304579168bd5c66e057b237608d0067786e5
Author
Kristian Feldsam <[email protected]>
Date
over 3 years ago
Selected line
54
open my $file, '<', "/etc/sogo/sieve.creds"; 
Open commit View diff
54 open my $file, '<', "/etc/sogo/sieve.creds";
same change 802d304

Revert "[Dovecot] Disable imapsync job, when auth details are wrong. Fixes #4276 (#4540)" Closes #4711

Full commit hash
802d304579168bd5c66e057b237608d0067786e5
Author
Kristian Feldsam <[email protected]>
Date
over 3 years ago
Selected line
55
my $creds = <$file>; 
Open commit View diff
55 my $creds = <$file>;
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
56
close $file;
Open commit View diff
56 close $file;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
57
my ($master_user, $master_pass) = split /:/, $creds;
Open commit View diff
57 my ($master_user, $master_pass) = split /:/, $creds;
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
58
my $sth = $dbh->prepare("SELECT id,
Open commit View diff
58 my $sth = $dbh->prepare("SELECT id,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
59
  user1,
Open commit View diff
59 user1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
60
  user2,
Open commit View diff
60 user2,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
61
  host1,
Open commit View diff
61 host1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
62
  authmech1,
Open commit View diff
62 authmech1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
63
  password1,
Open commit View diff
63 password1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
64
  exclude,
Open commit View diff
64 exclude,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
65
  port1,
Open commit View diff
65 port1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
66
  enc1,
Open commit View diff
66 enc1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
67
  delete2duplicates,
Open commit View diff
67 delete2duplicates,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
68
  maxage,
Open commit View diff
68 maxage,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
69
  subfolder2,
Open commit View diff
69 subfolder2,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
70
  delete1,
Open commit View diff
70 delete1,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
71
  delete2,
Open commit View diff
71 delete2,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
72
  automap,
Open commit View diff
72 automap,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
73
  skipcrossduplicates,
Open commit View diff
73 skipcrossduplicates,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
74
  maxbytespersecond,
Open commit View diff
74 maxbytespersecond,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
75
  custom_params,
Open commit View diff
75 custom_params,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
76
  subscribeall,
Open commit View diff
76 subscribeall,
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
77
  timeout1,
Open commit View diff
77 timeout1,
DerLinkman over 2 years ago 547d2ca

Add Dry Mode Option for ImapSyncs (Button)

Full commit hash
547d2ca3087a9a3b1e383c8edd6c38fd02c455b9
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
78
  timeout2,
Open commit View diff
78 timeout2,
same change 547d2ca

Add Dry Mode Option for ImapSyncs (Button)

Full commit hash
547d2ca3087a9a3b1e383c8edd6c38fd02c455b9
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
79
  dry
Open commit View diff
79 dry
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
80
    FROM imapsync
Open commit View diff
80 FROM imapsync
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
81
      WHERE active = 1
Open commit View diff
81 WHERE active = 1
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
82
        AND is_running = 0
Open commit View diff
82 AND is_running = 0
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
83
        AND (
Open commit View diff
83 AND (
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
84
          UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(last_run) > mins_interval * 60
Open commit View diff
84 UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(last_run) > mins_interval * 60
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
85
          OR
Open commit View diff
85 OR
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
86
          last_run IS NULL)
Open commit View diff
86 last_run IS NULL)
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
87
  ORDER BY last_run");
Open commit View diff
87 ORDER BY last_run");
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
88
Open commit View diff
88
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
89
$sth->execute();
Open commit View diff
89 $sth->execute();
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
90
my $row;
Open commit View diff
90 my $row;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
91
Open commit View diff
91
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
92
while ($row = $sth->fetchrow_arrayref()) {
Open commit View diff
92 while ($row = $sth->fetchrow_arrayref()) {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
93
Open commit View diff
93
andre.peters over 8 years ago 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
94
  $id                  = @$row[0];
Open commit View diff
94 $id = @$row[0];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
95
  $user1               = @$row[1];
Open commit View diff
95 $user1 = @$row[1];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
96
  $user2               = @$row[2];
Open commit View diff
96 $user2 = @$row[2];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
97
  $host1               = @$row[3];
Open commit View diff
97 $host1 = @$row[3];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
98
  $authmech1           = @$row[4];
Open commit View diff
98 $authmech1 = @$row[4];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
99
  $password1           = @$row[5];
Open commit View diff
99 $password1 = @$row[5];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
100
  $exclude             = @$row[6];
Open commit View diff
100 $exclude = @$row[6];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
101
  $port1               = @$row[7];
Open commit View diff
101 $port1 = @$row[7];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
102
  $enc1                = @$row[8];
Open commit View diff
102 $enc1 = @$row[8];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
103
  $delete2duplicates   = @$row[9];
Open commit View diff
103 $delete2duplicates = @$row[9];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
104
  $maxage              = @$row[10];
Open commit View diff
104 $maxage = @$row[10];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
105
  $subfolder2          = @$row[11];
Open commit View diff
105 $subfolder2 = @$row[11];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
106
  $delete1             = @$row[12];
Open commit View diff
106 $delete1 = @$row[12];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
107
  $delete2             = @$row[13];
Open commit View diff
107 $delete2 = @$row[13];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
108
  $automap             = @$row[14];
Open commit View diff
108 $automap = @$row[14];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
109
  $skipcrossduplicates = @$row[15];
Open commit View diff
109 $skipcrossduplicates = @$row[15];
same change 04f9d74

[Web, Dovecot] Add new options to imapsync, other minor changes to forms, partly fixes #955

Full commit hash
04f9d7433917046343228293e78ce202035c6551
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
110
  $maxbytespersecond   = @$row[16];
Open commit View diff
110 $maxbytespersecond = @$row[16];
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
111
  $custom_params       = @$row[17];
Open commit View diff
111 $custom_params = @$row[17];
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
112
  $subscribeall        = @$row[18];
Open commit View diff
112 $subscribeall = @$row[18];
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
113
  $timeout1            = @$row[19];
Open commit View diff
113 $timeout1 = @$row[19];
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
114
  $timeout2            = @$row[20];
Open commit View diff
114 $timeout2 = @$row[20];
DerLinkman over 2 years ago 547d2ca

Add Dry Mode Option for ImapSyncs (Button)

Full commit hash
547d2ca3087a9a3b1e383c8edd6c38fd02c455b9
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
115
  $dry                 = @$row[21];
Open commit View diff
115 $dry = @$row[21];
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
116
Open commit View diff
116
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
117
  if ($enc1 eq "TLS") { $enc1 = "--tls1"; } elsif ($enc1 eq "SSL") { $enc1 = "--ssl1"; } else { undef $enc1; }
Open commit View diff
117 if ($enc1 eq "TLS") { $enc1 = "--tls1"; } elsif ($enc1 eq "SSL") { $enc1 = "--ssl1"; } else { undef $enc1; }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
118
Open commit View diff
118
Markus Frosch about 9 years ago 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
119
  my $template = $run_dir . '/imapsync.XXXXXXX';
Open commit View diff
119 my $template = $run_dir . '/imapsync.XXXXXXX';
same change 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
120
  my $passfile1 = File::Temp->new(TEMPLATE => $template);
Open commit View diff
120 my $passfile1 = File::Temp->new(TEMPLATE => $template);
same change 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
121
  my $passfile2 = File::Temp->new(TEMPLATE => $template);
Open commit View diff
121 my $passfile2 = File::Temp->new(TEMPLATE => $template);
Quiwy over 2 years ago 46b995f

fix: support utf-8 in password synchronization

Full commit hash
46b995f9e3c09bca82a8de60a6adac6df233d0db
Author
Quiwy <[email protected]>
Date
over 2 years ago
Selected line
122
  
Open commit View diff
122
same change 46b995f

fix: support utf-8 in password synchronization

Full commit hash
46b995f9e3c09bca82a8de60a6adac6df233d0db
Author
Quiwy <[email protected]>
Date
over 2 years ago
Selected line
123
  binmode( $passfile1, ":utf8" );
Open commit View diff
123 binmode( $passfile1, ":utf8" );
same change 46b995f

fix: support utf-8 in password synchronization

Full commit hash
46b995f9e3c09bca82a8de60a6adac6df233d0db
Author
Quiwy <[email protected]>
Date
over 2 years ago
Selected line
124
  
Open commit View diff
124
Markus Frosch about 9 years ago 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
125
  print $passfile1 "$password1\n";
Open commit View diff
125 print $passfile1 "$password1\n";
same change 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
126
  print $passfile2 trim($master_pass) . "\n";
Open commit View diff
126 print $passfile2 trim($master_pass) . "\n";
same change 4be67cc

dovecot/imapsync_cron: Use passfiles to hide passwords from ps

Full commit hash
4be67ccd6410e3ee697fce1a5e50b471c55b65fe
Author
Markus Frosch <[email protected]>
Date
about 9 years ago
Selected line
127
Open commit View diff
127
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
128
  my @custom_params_a = qqw($custom_params);
Open commit View diff
128 my @custom_params_a = qqw($custom_params);
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
129
  my $custom_params_ref = \@custom_params_a;
Open commit View diff
129 my $custom_params_ref = \@custom_params_a;
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
130
Open commit View diff
130
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
131
  my $generated_cmds = [ "/usr/local/bin/imapsync",
Open commit View diff
131 my $generated_cmds = [ "/usr/local/bin/imapsync",
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
132
  "--tmpdir", "/tmp",
Open commit View diff
132 "--tmpdir", "/tmp",
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
133
  "--nofoldersizes",
Open commit View diff
133 "--nofoldersizes",
andryyy over 5 years ago 84ba784

[Dovecot] Set --addheader by default, fixes #4025

Full commit hash
84ba784550eb074a6febbd3ab1c4553210d61095
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
134
  "--addheader",
Open commit View diff
134 "--addheader",
Paul Sütterlin 11 months ago 53c3549

fix: imapsync gets correct timeouts

Full commit hash
53c35493a5c673968db35e8eb47463f673cfe3c0
Author
Paul Sütterlin <[email protected]>
Date
11 months ago
Selected line
135
  ($timeout1 le "0" ? () : ('--timeout1', $timeout1)),
Open commit View diff
135 ($timeout1 le "0" ? () : ('--timeout1', $timeout1)),
same change 53c3549

fix: imapsync gets correct timeouts

Full commit hash
53c35493a5c673968db35e8eb47463f673cfe3c0
Author
Paul Sütterlin <[email protected]>
Date
11 months ago
Selected line
136
  ($timeout2 le "0" ? () : ('--timeout2', $timeout2)),
Open commit View diff
136 ($timeout2 le "0" ? () : ('--timeout2', $timeout2)),
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
137
  ($exclude eq "" ? () : ("--exclude", $exclude)),
Open commit View diff
137 ($exclude eq "" ? () : ("--exclude", $exclude)),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
138
  ($subfolder2 eq "" ? () : ('--subfolder2', $subfolder2)),
Open commit View diff
138 ($subfolder2 eq "" ? () : ('--subfolder2', $subfolder2)),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
139
  ($maxage eq "0" ? () : ('--maxage', $maxage)),
Open commit View diff
139 ($maxage eq "0" ? () : ('--maxage', $maxage)),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
140
  ($maxbytespersecond eq "0" ? () : ('--maxbytespersecond', $maxbytespersecond)),
Open commit View diff
140 ($maxbytespersecond eq "0" ? () : ('--maxbytespersecond', $maxbytespersecond)),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
141
  ($delete2duplicates ne "1" ? () : ('--delete2duplicates')),
Open commit View diff
141 ($delete2duplicates ne "1" ? () : ('--delete2duplicates')),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
142
  ($subscribeall  ne "1" ? () : ('--subscribeall')),
Open commit View diff
142 ($subscribeall ne "1" ? () : ('--subscribeall')),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
143
  ($delete1 ne "1" ? () : ('--delete')),
Open commit View diff
143 ($delete1 ne "1" ? () : ('--delete')),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
144
  ($delete2 ne "1" ? () : ('--delete2')),
Open commit View diff
144 ($delete2 ne "1" ? () : ('--delete2')),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
145
  ($automap ne "1" ? () : ('--automap')),
Open commit View diff
145 ($automap ne "1" ? () : ('--automap')),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
146
  ($skipcrossduplicates ne "1" ? () : ('--skipcrossduplicates')),
Open commit View diff
146 ($skipcrossduplicates ne "1" ? () : ('--skipcrossduplicates')),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
147
  (!defined($enc1) ? () : ($enc1)),
Open commit View diff
147 (!defined($enc1) ? () : ($enc1)),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
148
  "--host1", $host1,
Open commit View diff
148 "--host1", $host1,
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
149
  "--user1", $user1,
Open commit View diff
149 "--user1", $user1,
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
150
  "--passfile1", $passfile1->filename,
Open commit View diff
150 "--passfile1", $passfile1->filename,
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
151
  "--port1", $port1,
Open commit View diff
151 "--port1", $port1,
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
152
  "--host2", "localhost",
Open commit View diff
152 "--host2", "localhost",
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
153
  "--user2", $user2 . '*' . trim($master_user),
Open commit View diff
153 "--user2", $user2 . '*' . trim($master_user),
same change 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
154
  "--passfile2", $passfile2->filename,
Open commit View diff
154 "--passfile2", $passfile2->filename,
DerLinkman over 2 years ago 547d2ca

Add Dry Mode Option for ImapSyncs (Button)

Full commit hash
547d2ca3087a9a3b1e383c8edd6c38fd02c455b9
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
155
  ($dry eq "1" ? ('--dry') : ()),
Open commit View diff
155 ($dry eq "1" ? ('--dry') : ()),
hunter-nl about 7 years ago 4ebc871

Added noreleasecheck parameter

Full commit hash
4ebc871966e29b311d2c6a55e0057a84920980ad
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
156
  '--no-modulesversion',
Open commit View diff
156 '--no-modulesversion',
same change 4ebc871

Added noreleasecheck parameter

Full commit hash
4ebc871966e29b311d2c6a55e0057a84920980ad
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
157
  '--noreleasecheck'];
Open commit View diff
157 '--noreleasecheck'];
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
158
Open commit View diff
158
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
159
  try {
Open commit View diff
159 try {
Kristian Feldsam almost 5 years ago 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
160
    $is_running = $dbh->prepare("UPDATE imapsync SET is_running = 1, success = NULL, exit_status = NULL WHERE id = ?");
Open commit View diff
160 $is_running = $dbh->prepare("UPDATE imapsync SET is_running = 1, success = NULL, exit_status = NULL WHERE id = ?");
hunter-nl about 7 years ago b7b5327

Moved set "is_running" status

Full commit hash
b7b532768cd96ac7496bdbae99fbb29c23da1bc0
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
161
    $is_running->bind_param( 1, ${id} );
Open commit View diff
161 $is_running->bind_param( 1, ${id} );
same change b7b5327

Moved set "is_running" status

Full commit hash
b7b532768cd96ac7496bdbae99fbb29c23da1bc0
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
162
    $is_running->execute();
Open commit View diff
162 $is_running->execute();
Kristian Feldsam almost 5 years ago 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
163
Open commit View diff
163
andryyy about 7 years ago 189ea89

[Dovecot] Revert to previous imapsync cron script

Full commit hash
189ea89a7189a0fc3e20601e52254b563014f8ae
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
164
    run [@$generated_cmds, @$custom_params_ref], '&>', \my $stdout;
Open commit View diff
164 run [@$generated_cmds, @$custom_params_ref], '&>', \my $stdout;
Kristian Feldsam almost 5 years ago 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
165
Open commit View diff
165
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
166
    # check exit code and status
Open commit View diff
166 # check exit code and status
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
167
    ($exit_code, $exit_status) = ($stdout =~ m/Exiting\swith\sreturn\svalue\s(\d+)\s\(([^:)]+)/);
Open commit View diff
167 ($exit_code, $exit_status) = ($stdout =~ m/Exiting\swith\sreturn\svalue\s(\d+)\s\(([^:)]+)/);
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
168
Open commit View diff
168
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
169
    $success = 0;
Open commit View diff
169 $success = 0;
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
170
    if (defined $exit_code && $exit_code == 0) {
Open commit View diff
170 if (defined $exit_code && $exit_code == 0) {
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
171
      $success = 1;
Open commit View diff
171 $success = 1;
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
172
    }
Open commit View diff
172 }
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
173
Open commit View diff
173
Kristian Feldsam over 3 years ago 802d304

Revert "[Dovecot] Disable imapsync job, when auth details are wrong. Fixes #4276 (#4540)" Closes #4711

Full commit hash
802d304579168bd5c66e057b237608d0067786e5
Author
Kristian Feldsam <[email protected]>
Date
over 3 years ago
Selected line
174
    $update = $dbh->prepare("UPDATE imapsync SET returned_text = ?, success = ?, exit_status = ? WHERE id = ?");
Open commit View diff
174 $update = $dbh->prepare("UPDATE imapsync SET returned_text = ?, success = ?, exit_status = ? WHERE id = ?");
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
175
    $update->bind_param( 1, ${stdout} );
Open commit View diff
175 $update->bind_param( 1, ${stdout} );
Kristian Feldsam almost 5 years ago 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
176
    $update->bind_param( 2, ${success} );
Open commit View diff
176 $update->bind_param( 2, ${success} );
same change 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
177
    $update->bind_param( 3, ${exit_status} );
Open commit View diff
177 $update->bind_param( 3, ${exit_status} );
Kristian Feldsam over 3 years ago 802d304

Revert "[Dovecot] Disable imapsync job, when auth details are wrong. Fixes #4276 (#4540)" Closes #4711

Full commit hash
802d304579168bd5c66e057b237608d0067786e5
Author
Kristian Feldsam <[email protected]>
Date
over 3 years ago
Selected line
178
    $update->bind_param( 4, ${id} );
Open commit View diff
178 $update->bind_param( 4, ${id} );
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
179
    $update->execute();
Open commit View diff
179 $update->execute();
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
180
  } catch {
Open commit View diff
180 } catch {
Kristian Feldsam almost 5 years ago 54c4d7e

[Dovecot: Imapsync] Parse, save and show last run status (#4253)

Full commit hash
54c4d7e49c53fbbc4f5df697b27b9dfa37052533
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
181
    $update = $dbh->prepare("UPDATE imapsync SET returned_text = 'Could not start or finish imapsync', success = 0 WHERE id = ?");
Open commit View diff
181 $update = $dbh->prepare("UPDATE imapsync SET returned_text = 'Could not start or finish imapsync', success = 0 WHERE id = ?");
hunter-nl about 7 years ago 54a039f

Fix: Processing result of running imapsync command

Full commit hash
54a039fbd102e8df9ebf8a35925a1ab807973cb7
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
182
    $update->bind_param( 1, ${id} );
Open commit View diff
182 $update->bind_param( 1, ${id} );
same change 54a039f

Fix: Processing result of running imapsync command

Full commit hash
54a039fbd102e8df9ebf8a35925a1ab807973cb7
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
183
    $update->execute();
Open commit View diff
183 $update->execute();
same change 54a039f

Fix: Processing result of running imapsync command

Full commit hash
54a039fbd102e8df9ebf8a35925a1ab807973cb7
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
184
  } finally {
Open commit View diff
184 } finally {
same change 54a039f

Fix: Processing result of running imapsync command

Full commit hash
54a039fbd102e8df9ebf8a35925a1ab807973cb7
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
185
    $update = $dbh->prepare("UPDATE imapsync SET last_run = NOW(), is_running = 0 WHERE id = ?");
Open commit View diff
185 $update = $dbh->prepare("UPDATE imapsync SET last_run = NOW(), is_running = 0 WHERE id = ?");
André almost 8 years ago 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
186
    $update->bind_param( 1, ${id} );
Open commit View diff
186 $update->bind_param( 1, ${id} );
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
187
    $update->execute();
Open commit View diff
187 $update->execute();
same change 1115b82

[Dovecot] Various fixes for imapsync_cron, new imapsync version

Full commit hash
1115b826f9c60da166dd2c1fabd23c8fb950d963
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
188
  };
Open commit View diff
188 };
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
189
Open commit View diff
189
hunter-nl about 7 years ago 54a039f

Fix: Processing result of running imapsync command

Full commit hash
54a039fbd102e8df9ebf8a35925a1ab807973cb7
Author
hunter-nl <[email protected]>
Date
about 7 years ago
Selected line
190
Open commit View diff
190
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
191
}
Open commit View diff
191 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
192
Open commit View diff
192
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
193
$sth->finish();
Open commit View diff
193 $sth->finish();
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
194
$dbh->disconnect();
Open commit View diff
194 $dbh->disconnect();
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
195
Open commit View diff
195
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
196
$lockmgr->unlock($lock_file);
Open commit View diff
196 $lockmgr->unlock($lock_file);