-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
55 lines (46 loc) · 2.56 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Server settings
SOURCE_HOST=imap.example.com
SOURCE_PASSWORD=your_password_here
TARGET_HOST=target.imap.example.com
TARGET_PASSWORD=your_target_password_here
# Connection settings
SSL1="true" # Enable SSL connection for source (true/false)
SSL2="true" # Enable SSL connection for target (true/false)
TLS1="false" # Enable TLS connection for source (true/false)
TLS2="false" # Enable TLS connection for target (true/false)
TIMEOUT1="120" # Connection timeout for source in seconds
TIMEOUT2="120" # Connection timeout for target in seconds
AUTH_MECH1="LOGIN" # Authentication mechanism for source (e.g., PLAIN, LOGIN, CRAM-MD5)
AUTH_MECH2="LOGIN" # Authentication mechanism for target
DEBUG_SSL="0" # SSL debug level (0 to 4, 0 for no output)
# Synchronization behavior
DELETE1="false" # Delete messages on source after successful transfer
DELETE2="false" # Delete messages on target not present on the source
DELETE2FOLDERS="false" # Delete folders on target not present on the source
SYNC_INTERNAL_DATES="true" # Sync internal dates
DRY_RUN="false" # Enable dry run (only displays actions without executing)
# Folder options
FOLDER="" # Select specific folder to sync
FOLDER_REC="" # Sync folder recursively
EXCLUDE="" # Folders to exclude (RegEx)
SUBFOLDER2="" # Move all folders under a specified target folder
INCLUDE="" # Sync only folders matching this RegEx
FOLDERFIRST="" # Folders to sync first
FOLDERLAST="" # Folders to sync last
# Message filters
MAXAGE="" # Sync only messages younger than MAXAGE days
MINAGE="" # Sync only messages older than MINAGE days
MAXSIZE="" # Sync only messages smaller than MAXSIZE bytes
MINSIZE="" # Sync only messages larger than MINSIZE bytes
# Debugging
DEBUG="false" # Enable imapsync debugging
DEBUG_IMAP="false" # Enable IMAP debugging
SHOW_PASSWORDS="false" # Show passwords in output (not recommended)
# General
LOGGING="true" # Enable logging (true/false)
# Apprise notifications (Telegram example)
APPRISE_URL="tgram://your_apprise_token_here/your_chat_id_here"
# Crontab schedule for sync.sh
CRON_SCHEDULE="0 * * * *"