Skip to content

Instantly share code, notes, and snippets.

@mikepage
Created June 19, 2025 12:04
Show Gist options
  • Save mikepage/4c4c63826bfc8554bffa6dbb8b980511 to your computer and use it in GitHub Desktop.
Save mikepage/4c4c63826bfc8554bffa6dbb8b980511 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Description:
# This script searches for lines containing 'redirect' in all managesieve.sieve files
# located in /home/**/imap/**/**/sieve/ paths.
# Find and grep lines containing 'redirect'
find /home -type f -path "*/imap/*/*/sieve/managesieve.sieve" -exec grep -Hn 'redirect' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment