Browse Source

applying

main
pvincent 7 days ago
parent
commit
d5be76354c
  1. 3
      sympa/recipe/sympa_fix_personalization.recipe

3
sympa/recipe/sympa_fix_personalization.recipe

@ -23,7 +23,7 @@ function fix_personalization {
function patch_message_pm {
if [[ -f $MESSAGE_PM ]]; then
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'
patch /usr/share/sympa/lib/Sympa/Message.pm << EOF
1539a1540,1541
> \$data->{sender} = \$self->{sender};

Loading…
Cancel
Save