summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/fetch_mail2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/fetch_mail b/.local/bin/fetch_mail
index 743d027..eaee5fb 100755
--- a/.local/bin/fetch_mail
+++ b/.local/bin/fetch_mail
@@ -35,7 +35,6 @@ sub get_new_mail
my ($acc) = @_;
my $ret;
- system('killall mbsync >/dev/null 2>&1');
$ret = system('mbsync', $acc);
if ($ret != 0) {
notify(" $acc: failed to sync mails");
@@ -109,6 +108,7 @@ sub fetch_mail
if ($ret != 0) {
return;
}
+ system('killall mbsync >/dev/null 2>&1');
my @accs = get_all_accounts();
for (@accs) {
my $pid = fork();