technique:adminserv:mattermost:comptes_inactifs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révisionLes deux révisions suivantes
technique:adminserv:mattermost:comptes_inactifs [2024/03/26 15:45] rdelaagetechnique:adminserv:mattermost:comptes_inactifs [2024/03/26 15:52] rdelaage
Ligne 44: Ligne 44:
  
 ```bash ```bash
-todo+#!/bin/env bash 
 + 
 +jq -c '.[]' inactive.json | while read i; do 
 + echo $i > entry.json 
 + ./gomplate -c ".=entry.json" -f inactive.tpl > entry.eml 
 + rcpt_to=$(echo $i | jq -r .email) 
 + # TODO: provide password 
 + curl -v --mail-from mattermost@picasoft.net --ssl --mail-rcpt "$rcpt_to" --user mattermost --upload-file entry.eml smtp://mail.picasoft.net:587/team.picasoft.net 
 + rm -f entry.json entry.eml 
 +done
 ``` ```
  
  • technique/adminserv/mattermost/comptes_inactifs.txt
  • de rdelaage