summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes b/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
index 2b3a23a..e8446e4 100644
--- a/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
+++ b/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
@@ -26,7 +26,8 @@ fi
HOSTNAME=$(/bin/hostname --fqdn)
SUBJECT="Notification of incoming .changes file on $HOSTNAME"
CHANGES_CONTENT="$(cat ${CHANGES_FILE})"
+UPLOADER="$(cat ${CHANGES_FILE} | sed -nr 's/Changed-By:\ .*<(.*)>/\1/p')"
-printf 'From: %s\nTo: %s\nSubject: %s\n%s' "$MAILFROM" "$MAILTO" "$SUBJECT" "$CHANGES_CONTENT" | /usr/sbin/sendmail -t
+printf 'From: %s\nTo: %s\nCc: %s\nSubject: %s\n%s' "$MAILFROM" "$MAILTO" "$UPLOADER" "$SUBJECT" "$CHANGES_CONTENT" | /usr/sbin/sendmail -t
printf 'Incoming change detected: %s\n' "$CHANGES_FILE"