21 lines
648 B
Bash
Executable File
21 lines
648 B
Bash
Executable File
#!/bin/bash
|
|
############################################################
|
|
# Decription: Read mailbox via file system
|
|
# Author: Gilles Mouchet (gmo@ville-ge.ch)
|
|
# Creation Date: 13-Nov-2022
|
|
# Version: 1.0
|
|
# Usage: ./readAllMailbox.sh <num_stagiaire>
|
|
# Changelog:
|
|
# V1.0 - 13-Nov-2022 - GMo
|
|
# Added
|
|
# - Creation of script from scratch
|
|
#
|
|
############################################################
|
|
|
|
if [[ $# -eq 0 ]] ; then
|
|
for numero in 1 2 3 4 5 6 7 8 9 10; do
|
|
find /var/spool/imap/s/user/stagiaire$numero -type f -exec cat *. \{\} \;
|
|
done
|
|
else
|
|
find /var/spool/imap/s/user/stagiaire$1 -type f -exec cat *. \{\} \;
|
|
fi |