şunun yansıması
https://github.com/mail-in-a-box/mailinabox.git
eşitlendi 2026-03-26 19:27:23 +01:00
working notice
Bu işleme şunda yer alıyor:
7
management/announce_check.py
Normal dosya
7
management/announce_check.py
Normal dosya
@@ -0,0 +1,7 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
def download_announcements( ignorePrivacy=False ):
|
||||||
|
if( (ignorePrivacy == True) or ( ) ):
|
||||||
|
f =
|
||||||
|
|
||||||
|
subprocess.call("pullAnnouncements.sh", shell=True)
|
||||||
5
management/pullAnnouncements.py
Normal dosya
5
management/pullAnnouncements.py
Normal dosya
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd_command=`cat /usr/local/bin/mailinabox |grep cd`
|
||||||
|
|
||||||
|
if[[cd_command]]
|
||||||
@@ -25,9 +25,7 @@ if [ -z "${NONINTERACTIVE:-}" ]; then
|
|||||||
|
|
||||||
if [ -z "${I_AGREE_MAILINABOX:-}" ]; then
|
if [ -z "${I_AGREE_MAILINABOX:-}" ]; then
|
||||||
|
|
||||||
is_config_agreed=$( check_config_agreed && echo "true" || echo "false")
|
if [ "$(check_config_agreed; echo $?)" -eq "1"]; then
|
||||||
|
|
||||||
if [ "$is_config_agreed" -eq "false"]; then
|
|
||||||
|
|
||||||
#makes sure the user is aware of our legal stuff.
|
#makes sure the user is aware of our legal stuff.
|
||||||
message_box "Mail-in-a-Box Legal Notice" \
|
message_box "Mail-in-a-Box Legal Notice" \
|
||||||
@@ -47,9 +45,7 @@ if [ -z "${NONINTERACTIVE:-}" ]; then
|
|||||||
I_AGREE_MAILINABOX=$(/bin/true)
|
I_AGREE_MAILINABOX=$(/bin/true)
|
||||||
else
|
else
|
||||||
|
|
||||||
is_config_agreed=$( check_config_agreed && echo "true" || echo "false")
|
if [ "$(check_config_agreed; echo $?)" -eq "0"]; then
|
||||||
|
|
||||||
if [ "$is_config_agreed" -eq "true"]; then
|
|
||||||
I_AGREE_MAILINABOX=$(/bin/true)
|
I_AGREE_MAILINABOX=$(/bin/true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Yeni konuda referans
Bir kullanıcı engelle