summaryrefslogtreecommitdiff
path: root/do-email
blob: 893418b9164dfc95f95a4a9821f0082d9657bc55 (plain)
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
#!/bin/sh

set -e
cd $HOME

while [ 1 ] ; do
	#for project in mixminion or freehaven debian.de oftc; do
	for project in mixminion or debian.de oftc; do
		for i in `( cd Maildir.$project/new ; ls -1)` ; do
			 bin/parse-mail $project Maildir.$project/new/$i && rm Maildir.$project/new/$i
		done
	done
	for project in or oftcw dsa; do
		for i in `( cd Maildir.$project-wiki/new ; ls -1)` ; do
			 bin/parse-wiki $project Maildir.$project-wiki/new/$i && rm Maildir.$project-wiki/new/$i
		done
	done
	for project in weasel oftc dsa; do
		for i in `( cd Maildir.$project-nagios/new ; ls -1)` ; do
			 bin/parse-nagios $project Maildir.$project-nagios/new/$i && rm Maildir.$project-nagios/new/$i
		done
	done
	for project in oftc vidalia; do
		for i in `( cd Maildir.$project-trac/new ; ls -1)` ; do
			 bin/parse-trac $project Maildir.$project-trac/new/$i && rm Maildir.$project-trac/new/$i
		done
	done
	for project in dsa; do
		for i in `( cd Maildir.$project-bzr/new ; ls -1)` ; do
			 bin/parse-bzr $project Maildir.$project-bzr/new/$i && rm Maildir.$project-bzr/new/$i
		done
	done
	sleep 10
done