if ! grep -q '^.*qw/subject x-originating-ip message-id date x-original-to x-original-from.*$' "$MESSAGE_PM"; then
echo 'applying patch message pm'
echo 'applying x-original-from patch towards message pm'
/opt/miaou-bash/tools/append_or_replace '^.*qw/subject x-originating-ip message-id date x-original-to.*$' ' qw/subject x-originating-ip message-id date x-original-to x-original-from from to thread-topic content-type/' "$MESSAGE_PM"
FOUND=true
else
@ -31,6 +31,7 @@ function patch_message_pm {
fi
if [[ $(grep -n '$data->{sender} = $self->{sender};' /usr/share/sympa/lib/Sympa/Message.pm | cut -d: -f1) -ne 1540 ]]; then
echo 'applying sender + gecos patch towards message pm'