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

helper-scripts/dev_tests/view_autodiscover.sh

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

view_autodiscover.sh on main
Author Date Commit Line Code
DerLinkman 7 months ago b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
2
Open commit View diff
2
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
3
# Autodiscover XML Debug Script
Open commit View diff
3 # Autodiscover XML Debug Script
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
4
# Usage: ./view_autodiscover.sh [OPTIONS] [[email protected]]
Open commit View diff
4 # Usage: ./view_autodiscover.sh [OPTIONS] [[email protected]]
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
5
Open commit View diff
5
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
6
# Function to display help
Open commit View diff
6 # Function to display help
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
7
show_help() {
Open commit View diff
7 show_help() {
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
8
    cat << EOF
Open commit View diff
8 cat << EOF
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
9
Autodiscover XML Debug Script
Open commit View diff
9 Autodiscover XML Debug Script
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
10
Open commit View diff
10
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
11
Usage: $0 [OPTIONS] [[email protected]]
Open commit View diff
11 Usage: $0 [OPTIONS] [[email protected]]
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
12
Open commit View diff
12
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
13
OPTIONS:
Open commit View diff
13 OPTIONS:
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
14
    -h, --help              Show this help message
Open commit View diff
14 -h, --help Show this help message
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
15
    -d, --domain FQDN       Override autodiscover domain (default: autodiscover.DOMAIN)
Open commit View diff
15 -d, --domain FQDN Override autodiscover domain (default: autodiscover.DOMAIN)
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
16
                            Example: -d mail.example.com
Open commit View diff
16 Example: -d mail.example.com
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
17
Open commit View diff
17
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
18
EXAMPLES:
Open commit View diff
18 EXAMPLES:
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
19
    $0 [email protected]
Open commit View diff
19 $0 [email protected]
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
20
        Test autodiscover for [email protected] using autodiscover.example.com
Open commit View diff
20 Test autodiscover for [email protected] using autodiscover.example.com
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
21
    
Open commit View diff
21
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
22
    $0 -d mail.example.com [email protected]
Open commit View diff
22 $0 -d mail.example.com [email protected]
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
23
        Test autodiscover for [email protected] using mail.example.com
Open commit View diff
23 Test autodiscover for [email protected] using mail.example.com
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
24
    
Open commit View diff
24
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
25
    $0 -d localhost:8443 [email protected]
Open commit View diff
25 $0 -d localhost:8443 [email protected]
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
26
        Test autodiscover using localhost:8443 (useful for development)
Open commit View diff
26 Test autodiscover using localhost:8443 (useful for development)
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
27
Open commit View diff
27
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
28
EOF
Open commit View diff
28 EOF
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
29
    exit 0
Open commit View diff
29 exit 0
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
30
}
Open commit View diff
30 }
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
31
Open commit View diff
31
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
32
# Initialize variables
Open commit View diff
32 # Initialize variables
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
33
EMAIL=""
Open commit View diff
33 EMAIL=""
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
34
DOMAIN_OVERRIDE=""
Open commit View diff
34 DOMAIN_OVERRIDE=""
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
35
Open commit View diff
35
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
36
# Parse command line arguments
Open commit View diff
36 # Parse command line arguments
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
37
while [[ $# -gt 0 ]]; do
Open commit View diff
37 while [[ $# -gt 0 ]]; do
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
38
    case $1 in
Open commit View diff
38 case $1 in
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
39
        -h|--help)
Open commit View diff
39 -h|--help)
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
40
            show_help
Open commit View diff
40 show_help
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
41
            ;;
Open commit View diff
41 ;;
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
42
        -d|--domain)
Open commit View diff
42 -d|--domain)
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
43
            DOMAIN_OVERRIDE="$2"
Open commit View diff
43 DOMAIN_OVERRIDE="$2"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
44
            shift 2
Open commit View diff
44 shift 2
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
45
            ;;
Open commit View diff
45 ;;
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
46
        -*)
Open commit View diff
46 -*)
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
47
            echo "Error: Unknown option $1"
Open commit View diff
47 echo "Error: Unknown option $1"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
48
            echo "Use -h or --help for usage information"
Open commit View diff
48 echo "Use -h or --help for usage information"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
49
            exit 1
Open commit View diff
49 exit 1
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
50
            ;;
Open commit View diff
50 ;;
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
51
        *)
Open commit View diff
51 *)
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
52
            EMAIL="$1"
Open commit View diff
52 EMAIL="$1"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
53
            shift
Open commit View diff
53 shift
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
54
            ;;
Open commit View diff
54 ;;
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
55
    esac
Open commit View diff
55 esac
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
56
done
Open commit View diff
56 done
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
57
Open commit View diff
57
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
58
# Check if xmllint is available
Open commit View diff
58 # Check if xmllint is available
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
59
if ! command -v xmllint &> /dev/null; then
Open commit View diff
59 if ! command -v xmllint &> /dev/null; then
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
60
    echo "WARNING: xmllint not found. Output will not be formatted."
Open commit View diff
60 echo "WARNING: xmllint not found. Output will not be formatted."
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
61
    echo "Install with: apt install libxml2-utils (Debian/Ubuntu) or yum install libxml2 (CentOS/RHEL)"
Open commit View diff
61 echo "Install with: apt install libxml2-utils (Debian/Ubuntu) or yum install libxml2 (CentOS/RHEL)"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
62
    echo ""
Open commit View diff
62 echo ""
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
63
    USE_XMLLINT=false
Open commit View diff
63 USE_XMLLINT=false
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
64
else
Open commit View diff
64 else
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
65
    USE_XMLLINT=true
Open commit View diff
65 USE_XMLLINT=true
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
66
fi
Open commit View diff
66 fi
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
67
Open commit View diff
67
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
68
# Get email address from user input if not provided
Open commit View diff
68 # Get email address from user input if not provided
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
69
if [ -z "$EMAIL" ]; then
Open commit View diff
69 if [ -z "$EMAIL" ]; then
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
70
    read -p "Enter email address to test: " EMAIL
Open commit View diff
70 read -p "Enter email address to test: " EMAIL
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
71
fi
Open commit View diff
71 fi
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
72
Open commit View diff
72
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
73
# Validate email format
Open commit View diff
73 # Validate email format
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
74
if [[ ! "$EMAIL" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ ]]; then
Open commit View diff
74 if [[ ! "$EMAIL" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ ]]; then
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
75
    echo "Error: Invalid email address format"
Open commit View diff
75 echo "Error: Invalid email address format"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
76
    exit 1
Open commit View diff
76 exit 1
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
77
fi
Open commit View diff
77 fi
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
78
Open commit View diff
78
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
79
# Extract domain from email
Open commit View diff
79 # Extract domain from email
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
80
EMAIL_DOMAIN="${EMAIL#*@}"
Open commit View diff
80 EMAIL_DOMAIN="${EMAIL#*@}"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
81
Open commit View diff
81
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
82
# Determine autodiscover URL
Open commit View diff
82 # Determine autodiscover URL
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
83
if [ -n "$DOMAIN_OVERRIDE" ]; then
Open commit View diff
83 if [ -n "$DOMAIN_OVERRIDE" ]; then
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
84
    AUTODISCOVER_URL="https://${DOMAIN_OVERRIDE}/Autodiscover/Autodiscover.xml"
Open commit View diff
84 AUTODISCOVER_URL="https://${DOMAIN_OVERRIDE}/Autodiscover/Autodiscover.xml"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
85
    echo "Testing Autodiscover for: $EMAIL"
Open commit View diff
85 echo "Testing Autodiscover for: $EMAIL"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
86
    echo "Override domain: $DOMAIN_OVERRIDE"
Open commit View diff
86 echo "Override domain: $DOMAIN_OVERRIDE"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
87
else
Open commit View diff
87 else
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
88
    AUTODISCOVER_URL="https://autodiscover.${EMAIL_DOMAIN}/Autodiscover/Autodiscover.xml"
Open commit View diff
88 AUTODISCOVER_URL="https://autodiscover.${EMAIL_DOMAIN}/Autodiscover/Autodiscover.xml"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
89
    echo "Testing Autodiscover for: $EMAIL"
Open commit View diff
89 echo "Testing Autodiscover for: $EMAIL"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
90
fi
Open commit View diff
90 fi
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
91
Open commit View diff
91
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
92
echo "URL: $AUTODISCOVER_URL"
Open commit View diff
92 echo "URL: $AUTODISCOVER_URL"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
93
echo "============================================"
Open commit View diff
93 echo "============================================"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
94
echo ""
Open commit View diff
94 echo ""
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
95
Open commit View diff
95
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
96
# Make the request
Open commit View diff
96 # Make the request
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
97
RESPONSE=$(curl -k -s -X POST "$AUTODISCOVER_URL" \
Open commit View diff
97 RESPONSE=$(curl -k -s -X POST "$AUTODISCOVER_URL" \
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
98
  -H "Content-Type: text/xml" \
Open commit View diff
98 -H "Content-Type: text/xml" \
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
99
  -d "<?xml version=\"1.0\" encoding=\"utf-8\"?>
Open commit View diff
99 -d "<?xml version=\"1.0\" encoding=\"utf-8\"?>
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
100
<Autodiscover xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/request/2006\">
Open commit View diff
100 <Autodiscover xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/request/2006\">
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
101
  <Request>
Open commit View diff
101 <Request>
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
102
    <EMailAddress>$EMAIL</EMailAddress>
Open commit View diff
102 <EMailAddress>$EMAIL</EMailAddress>
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
103
    <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
Open commit View diff
103 <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
104
  </Request>
Open commit View diff
104 </Request>
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
105
</Autodiscover>")
Open commit View diff
105 </Autodiscover>")
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
106
Open commit View diff
106
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
107
# Check if response is empty
Open commit View diff
107 # Check if response is empty
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
108
if [ -z "$RESPONSE" ]; then
Open commit View diff
108 if [ -z "$RESPONSE" ]; then
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
109
    echo "Error: No response received from server"
Open commit View diff
109 echo "Error: No response received from server"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
110
    exit 1
Open commit View diff
110 exit 1
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
111
fi
Open commit View diff
111 fi
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
112
Open commit View diff
112
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
113
# Format and display output
Open commit View diff
113 # Format and display output
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
114
if [ "$USE_XMLLINT" = true ]; then
Open commit View diff
114 if [ "$USE_XMLLINT" = true ]; then
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
115
    echo "$RESPONSE" | xmllint --format - 2>&1
Open commit View diff
115 echo "$RESPONSE" | xmllint --format - 2>&1
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
116
else
Open commit View diff
116 else
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
117
    echo "$RESPONSE"
Open commit View diff
117 echo "$RESPONSE"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
118
fi
Open commit View diff
118 fi
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
119
Open commit View diff
119
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
120
echo ""
Open commit View diff
120 echo ""
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
121
echo "============================================"
Open commit View diff
121 echo "============================================"
same change b005803

Add autodiscover debug script with domain override support

Full commit hash
b005803fe03a0036c1942303fd94a8014fe928ed
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
122
echo "Response length: ${#RESPONSE} bytes"
Open commit View diff
122 echo "Response length: ${#RESPONSE} bytes"