Improve exitrace parameter naming for better usability
- Add descriptive parameter names: -FROM, -TO, -DOMAIN, -MSGID, -GREP - Maintain backwards compatibility with old short forms (-f, -t, -D, -m, -G) - Update README with new examples and backwards compatibility section - More intuitive and self-documenting command line interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+18
-18
@@ -33,11 +33,11 @@ Zeitfenster (eine Option wählen):
|
||||
-r, --range A..B Datumsbereich (inkl.): YYYY-MM-DD..YYYY-MM-DD
|
||||
|
||||
Filter (beliebig kombinierbar):
|
||||
-f, --from ADDR Envelope-From / "from <...>"
|
||||
-t, --to REGEX Empfänger (Regex, matcht ' for <rcpt>' oder in '** rcpt')
|
||||
-D, --domain NAME Ziel-Domain (z. B. example.de)
|
||||
-m, --msgid ID Exim-Message-ID (z. B. 1uwRvz-000Fz2-CI)
|
||||
-G, --grep REGEX Zusätzlicher Regex auf Logzeilen
|
||||
-FROM, --from ADDR Envelope-From / "from <...>"
|
||||
-TO, --to REGEX Empfänger (Regex, matcht ' for <rcpt>' oder in '** rcpt')
|
||||
-DOMAIN, --domain NAME Ziel-Domain (z. B. example.de)
|
||||
-MSGID, --msgid ID Exim-Message-ID (z. B. 1uwRvz-000Fz2-CI)
|
||||
-GREP, --grep REGEX Zusätzlicher Regex auf Logzeilen
|
||||
|
||||
Sonstiges:
|
||||
--mx Zeigt MX-Einträge (und A/AAAA) für --domain
|
||||
@@ -45,9 +45,9 @@ Sonstiges:
|
||||
-h, --help Diese Hilfe
|
||||
|
||||
Beispiele:
|
||||
exitrace -f sender@example.com -D example.de -H 48
|
||||
exitrace -m 1uwRvz-000Fz2-CI
|
||||
exitrace -t '.*@example.de' -r 2025-09-09..2025-09-11 --mx
|
||||
exitrace -FROM sender@example.com -DOMAIN example.de -H 48
|
||||
exitrace -MSGID 1uwRvz-000Fz2-CI
|
||||
exitrace -TO '.*@example.de' -r 2025-09-09..2025-09-11 --mx
|
||||
|
||||
Note: Wird automatisch remote auf logger.in.nessus.at ausgeführt.
|
||||
USAGE
|
||||
@@ -118,23 +118,23 @@ while [[ $# -gt 0 ]]; do
|
||||
validate_date_range "$DATE_RANGE"
|
||||
REMOTE_ARGS+=("$1" "$2")
|
||||
shift 2 ;;
|
||||
-f|--from)
|
||||
-FROM|--from|-f)
|
||||
FROM="${2:-}"
|
||||
REMOTE_ARGS+=("$1" "$2")
|
||||
shift 2 ;;
|
||||
-t|--to)
|
||||
-TO|--to|-t)
|
||||
TO_REGEX="${2:-}"
|
||||
REMOTE_ARGS+=("$1" "$2")
|
||||
shift 2 ;;
|
||||
-D|--domain)
|
||||
-DOMAIN|--domain|-D)
|
||||
TARGET_DOMAIN="${2:-}"
|
||||
REMOTE_ARGS+=("$1" "$2")
|
||||
shift 2 ;;
|
||||
-m|--msgid)
|
||||
-MSGID|--msgid|-m)
|
||||
MSGID="${2:-}"
|
||||
REMOTE_ARGS+=("$1" "$2")
|
||||
shift 2 ;;
|
||||
-G|--grep)
|
||||
-GREP|--grep|-G)
|
||||
GREPEXTRA="${2:-}"
|
||||
REMOTE_ARGS+=("$1" "$2")
|
||||
shift 2 ;;
|
||||
@@ -284,11 +284,11 @@ while [[ $# -gt 0 ]]; do
|
||||
-DAYS|--days) DAYS="${2:-}"; shift 2 ;;
|
||||
-d|--date) DATE_ONE="${2:-}"; shift 2 ;;
|
||||
-r|--range) DATE_RANGE="${2:-}"; shift 2 ;;
|
||||
-f|--from) FROM="${2:-}"; shift 2 ;;
|
||||
-t|--to) TO_REGEX="${2:-}"; shift 2 ;;
|
||||
-D|--domain) TARGET_DOMAIN="${2:-}"; shift 2 ;;
|
||||
-m|--msgid) MSGID="${2:-}"; shift 2 ;;
|
||||
-G|--grep) GREPEXTRA="${2:-}"; shift 2 ;;
|
||||
-FROM|--from|-f) FROM="${2:-}"; shift 2 ;;
|
||||
-TO|--to|-t) TO_REGEX="${2:-}"; shift 2 ;;
|
||||
-DOMAIN|--domain|-D) TARGET_DOMAIN="${2:-}"; shift 2 ;;
|
||||
-MSGID|--msgid|-m) MSGID="${2:-}"; shift 2 ;;
|
||||
-GREP|--grep|-G) GREPEXTRA="${2:-}"; shift 2 ;;
|
||||
--mx) WANT_MX=1; shift ;;
|
||||
-n|--dry-run) DRYRUN=1; shift ;;
|
||||
*) shift ;;
|
||||
|
||||
Reference in New Issue
Block a user