[Bps-public-commit] cpan2rt branch, master, updated. ca503adbbdcda2a4adfe3397059c9ea8f43be4c9

Dianne Skoll dianne at bestpractical.com
Tue Mar 16 09:29:36 EDT 2021


The branch, master has been updated
       via  ca503adbbdcda2a4adfe3397059c9ea8f43be4c9 (commit)
      from  ee6b8c2d3e80bb072553416498f2a0448998f65e (commit)

Summary of changes:
 bin/sync-queues-to-pobox | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit ca503adbbdcda2a4adfe3397059c9ea8f43be4c9
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Tue Mar 16 13:29:09 2021 +0000

    Maximum queue name length supportable on pobox is 70 characters

diff --git a/bin/sync-queues-to-pobox b/bin/sync-queues-to-pobox
index e691801..2100ea0 100755
--- a/bin/sync-queues-to-pobox
+++ b/bin/sync-queues-to-pobox
@@ -26,8 +26,10 @@ fi
 
 
 # Maximum pobox alias length is 90 characters.  We prefix with "bug-" which
-# leaves 86 characters and "comment-" which leaves 82.
-psql -U admin -h 127.0.0.1 -c "SELECT Name FROM Queues WHERE LENGTH(Name) < 82" --tuples-only --no-align rt5 | \
+# leaves 86 characters and "comment-" which leaves 82.  We then postfix
+# with '@rt.cpan.org' which eats up another 12 characters, for a final
+# maximum queue name length of 70.
+psql -U admin -h 127.0.0.1 -c "SELECT Name FROM Queues WHERE LENGTH(Name) <= 70" --tuples-only --no-align rt5 | \
     egrep -v '[ :+]' | grep -v '^___Approvals$' | grep -v '\.$' | \
     sed -e 's/\(.*\)/bug-\1,bug-\1 at rt-cpan-org.hostedrt.com\ncomment-\1,comment-\1 at rt-cpan-org.hostedrt.com/' | \
     /usr/local/go/bin/go run cmd/sync/sync.go --domain rt.cpan.org --timeout 600m0s --delay 0

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list