Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fichiers_configuration
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Membres actifs
fichiers_configuration
Commits
6c90d80d
Commit
6c90d80d
authored
Mar 11, 2015
by
Vincent Le gallic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[.procmailrc] Commentaires++. Parce que sed 6 mois après, ça fait mal à la tête.
parent
153fa2cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
.procmailrc
.procmailrc
+4
-0
No files found.
.procmailrc
View file @
6c90d80d
...
...
@@ -961,9 +961,13 @@ ${CABLAGEDIR}/
## Gestion des autres mailing-listes ##
#################################################################
# On récupère le nom de domaine et le nom de la ML
# Le nom de domaine, c'est le mot (sans .) qui précède le TLD
DOMAIN=`echo "${ML}" | sed 's/.*\.\([^\.]\+\)\.[^\.]\+$/\1/'`
# On ne sait jamais ce qu'on peut rencontrer…
DOMAIN_=`echo "${DOMAIN}" | sed 's/ /_/g'`
# On vire le domain et le TLD
# On vire .list ou .lists si c'est la composante la plus à droite
# du subdomain
# On prend garde à ne pas créer un sous-dossier
# si jamais le List-Id contient un . ou un espace
ML_=`echo "${ML}" | sed 's/\.[^\.]\+\.[^\.]\+$//;s/\.lists\?$//;s/\(\.\| \)/_/g'`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment