infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Stein (JIRA)" <>
Subject [jira] [Commented] (INFRA-14566) Add cronjob to send list of .qmail ids to whimsy-vm4
Date Thu, 13 Jul 2017 23:50:00 GMT


Greg Stein commented on INFRA-14566:

Note that we have about a half-dozen availid's that have hyphens in them.

I might also suggest "ls -a1" to ensure you get single-column output.

I would also suggest using a .sh file so that it can be manually run/tweaked/developed at
any point in time, rather than waiting for the cronjob (or a cut/paste to the cmdline). It
would also allow for much more complexity as needed.

And the final bit: the Infrastructure Team cannot think of a problem with this, so its concept

> Add cronjob to send list of .qmail ids to whimsy-vm4
> ----------------------------------------------------
>                 Key: INFRA-14566
>                 URL:
>             Project: Infrastructure
>          Issue Type: Project
>          Components: Identity Management, Mail (qmail)
>            Reporter: Sam Ruby
> Add a cronjob to hermes to extract list of taken qmail ids:
> ls -a | sed -n '/^\.qmail-[a-z0-9]*$/ s/.qmail-//p' | ssh 'cat
> /srv/subscriptions/qmail.ids'
> See for rationale.
> The resolution of may affect the actual
regular expression used.  sed doesn't support '+', but a tighter regular expression can be
used, for example: /^[a-z][a-z0-9][a-z0-9][a-z0-9]*$/
> Note: with this JIRA, I'm merely looking for review/approval.  The code is available
for review above, and I can do the deployment.

This message was sent by Atlassian JIRA

View raw message