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/clean_q_aged.sh

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

clean_q_aged.sh on main
Author Date Commit Line Code
andryyy about 7 years ago de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
2
Open commit View diff
2
andryyy about 6 years ago 9078031

[Dovecot] WIP: Read env vars for cronjobs from prepared file

Full commit hash
9078031255b8e21cd5bbf9905859788ec0bb9be3
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
3
source /source_env.sh
Open commit View diff
3 source /source_env.sh
same change 9078031

[Dovecot] WIP: Read env vars for cronjobs from prepared file

Full commit hash
9078031255b8e21cd5bbf9905859788ec0bb9be3
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
4
Open commit View diff
4
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
5
MAX_AGE=$(redis-cli --raw -h redis-mailcow -a ${REDISPASS} --no-auth-warning GET Q_MAX_AGE)
Open commit View diff
5 MAX_AGE=$(redis-cli --raw -h redis-mailcow -a ${REDISPASS} --no-auth-warning GET Q_MAX_AGE)
andryyy about 7 years ago de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
6
Open commit View diff
6
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
7
if [[ -z ${MAX_AGE} ]]; then
Open commit View diff
7 if [[ -z ${MAX_AGE} ]]; then
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
8
  echo "Max age for quarantine items not defined"
Open commit View diff
8 echo "Max age for quarantine items not defined"
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
9
  exit 1
Open commit View diff
9 exit 1
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
10
fi
Open commit View diff
10 fi
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
11
Open commit View diff
11
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
12
NUM_REGEXP='^[0-9]+$'
Open commit View diff
12 NUM_REGEXP='^[0-9]+$'
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
13
if ! [[ ${MAX_AGE} =~ ${NUM_REGEXP} ]] ; then
Open commit View diff
13 if ! [[ ${MAX_AGE} =~ ${NUM_REGEXP} ]] ; then
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
14
  echo "Max age for quarantine items invalid"
Open commit View diff
14 echo "Max age for quarantine items invalid"
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
15
  exit 1
Open commit View diff
15 exit 1
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
16
fi
Open commit View diff
16 fi
same change de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
17
Open commit View diff
17
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
18
TO_DELETE=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT COUNT(id) FROM quarantine WHERE created < NOW() - INTERVAL ${MAX_AGE//[!0-9]/} DAY" -BN)
Open commit View diff
18 TO_DELETE=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT COUNT(id) FROM quarantine WHERE created < NOW() - INTERVAL ${MAX_AGE//[!0-9]/} DAY" -BN)
same change 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
19
mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "DELETE FROM quarantine WHERE created < NOW() - INTERVAL ${MAX_AGE//[!0-9]/} DAY"
Open commit View diff
19 mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "DELETE FROM quarantine WHERE created < NOW() - INTERVAL ${MAX_AGE//[!0-9]/} DAY"
andryyy about 7 years ago de03e41

[Dovecot] Run cronjob at 4:15 AM to remove max aged quarantine items (default: 365 days)

Full commit hash
de03e4178ae40e095fa93f1f68c3d7907673c0cd
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
20
echo "Deleted ${TO_DELETE} items from quarantine table (max age is ${MAX_AGE//[!0-9]/} days)"
Open commit View diff
20 echo "Deleted ${TO_DELETE} items from quarantine table (max age is ${MAX_AGE//[!0-9]/} days)"