Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
6783395e
Commit
6783395e
authored
Feb 18, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add drop_mailq scripts
parent
4df8b4f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
drop_mailq_from.sh
mail/drop_mailq_from.sh
+5
-0
drop_mailq_to.sh
mail/drop_mailq_to.sh
+5
-0
drop_mailq_to_new.sh
mail/drop_mailq_to_new.sh
+2
-0
No files found.
mail/drop_mailq_from.sh
0 → 100755
View file @
6783395e
#!/bin/sh
EMAIL
=
$1
#mailq | grep "$EMAIL" | sed -e "s| .*||g" | sed -e "s|\*\$||g" | sort -u | postsuper -d -
mailq |
grep
"
$EMAIL
"
|
sed
-e
"s| .*||g"
|
sed
-e
"s|
\*\$
||g"
| postsuper
-d
-
#mailq | grep "^[0-9A-F]" | sed -e "s|.*||g" | sed -e "s|\*\$||g" | sort -un
mail/drop_mailq_to.sh
0 → 100755
View file @
6783395e
mailq |
grep
-v
'^ *('
|
awk
'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($8 == "'
$1
'" && $9 == "")
print $1 }
'
|
tr
-d
'*!'
| postsuper
-v
-d
-
mail/drop_mailq_to_new.sh
0 → 100755
View file @
6783395e
#!/bin/sh
postqueue
-p
|
tail
-n
+2 |
awk
'BEGIN { RS = "" } / '
$1
'/ { print $1 }'
|
tr
-d
'*!'
| postsuper
-v
-d
-
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment