-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.example.yaml
More file actions
73 lines (66 loc) · 2.66 KB
/
rules.example.yaml
File metadata and controls
73 lines (66 loc) · 2.66 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Example rules configuration
# Copy this file to rules.yaml and customize
rules:
# Example: Redirect messages from a sender to multiple recipients
- name: "Forward Netflix to family"
type: redirect
from_sender: "NETFLIX"
to_receivers:
- "+33722335544"
- "+33755442211"
enabled: true
# Example: Auto-reply to a specific sender (immediate reply)
- name: "Auto reply example"
type: auto_reply
from_sender: "+33233556699"
reply_text: "I will answer you shortly"
enabled: true
# Example: Auto-reply after silence period (e.g., 1 hour)
# This tracks BOTH incoming and outgoing messages. If either you or the sender
# messages within the silence period, the timer resets.
# After router restart: 1st message starts tracking, 2nd message checks if enough time passed.
- name: "Auto reply after 1 hour of silence"
type: auto_reply_after_silence
from_sender: "+33611223344"
reply_text: "I will reply you soon"
silence_duration_secs: 3600 # 1 hour = 3600 seconds (1h), 7200 = 2h, 1800 = 30mins
enabled: true
# Example: Scheduled message - Every day at 9:00 AM
- name: "Daily morning reminder"
type: scheduled_message
schedule: "0 0 9 * * *" # Cron: sec min hour day month weekday
message_text: "Good morning! Don't forget your daily tasks."
to_receivers:
- "+33611223344"
- "+33722335544"
enabled: false
# Example: Scheduled message - Every Saturday at 3:30 PM
- name: "Weekly Saturday message"
type: scheduled_message
schedule: "0 30 15 * * 6" # Every Saturday at 15:30:00
message_text: "Happy Saturday! Hope you're having a great weekend."
to_receivers:
- "+33611223344"
- "+33722335544"
- "+33755442211"
enabled: false
# Example: Scheduled message - Every hour at 55 minutes
- name: "Hourly reminder"
type: scheduled_message
schedule: "0 55 * * * *" # At 55 minutes past every hour
message_text: "Hourly check-in reminder"
to_receivers:
- "+33611223344"
enabled: false
# Example: Forward emails from a specific sender to SMS
- name: "Forward important emails to SMS"
type: redirect_emails
email_server: "mail.my-server.com:993" # IMAP server with port (993 for SSL)
username: "postmaster@my-server.com" # Your email address
password: "change_me" # Your email password or app password
from_sender: "contact@company.com" # Optional: filter by sender (leave empty for all)
to_receivers:
- "+33755442211"
- "+33611223344"
check_interval_secs: 5 # Check every 5 seconds (default)
enabled: true # Set to true to enable