[Bps-public-commit] cpan2rt branch, master, updated. f072107eb8810d1a5e0b6cac7abbb12bd09c5541
Dianne Skoll
dianne at bestpractical.com
Fri Mar 12 15:57:16 EST 2021
The branch, master has been updated
via f072107eb8810d1a5e0b6cac7abbb12bd09c5541 (commit)
from 96bbcb71cd8c1d3cb8b5ecb47f6949142e43b9f9 (commit)
Summary of changes:
bin/sync-queues-to-pobox | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit f072107eb8810d1a5e0b6cac7abbb12bd09c5541
Author: Dianne Skoll <dianne at bestpractical.com>
Date: Fri Mar 12 20:56:36 2021 +0000
Filter out queue names longer than 90 characters
pobox.com cannot handle aliases longer than that.
diff --git a/bin/sync-queues-to-pobox b/bin/sync-queues-to-pobox
index 8e0872e..0c70f57 100755
--- a/bin/sync-queues-to-pobox
+++ b/bin/sync-queues-to-pobox
@@ -24,7 +24,7 @@ if test "$?" != 0 ; then
exit 1
fi
-psql -U admin -h 127.0.0.1 -c "SELECT Name FROM Queues" --tuples-only --no-align rt5 | \
+psql -U admin -h 127.0.0.1 -c "SELECT Name FROM Queues WHERE LENGTH(Name) < 90" --tuples-only --no-align rt5 | \
egrep -v '[ :+]' | grep -v '^___Approvals$' | grep -v '\.$' | \
sed -e 's/\(.*\)/\1,\1 at rt-cpan-org.hostedrt.com/' | \
/usr/local/go/bin/go run cmd/sync/sync.go --domain rt.cpan.org --timeout 60m0s --delay 0
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list