mirror of
https://github.com/MailScanner/v5.git
synced 2024-09-20 15:26:08 +08:00
Fix Header Add (#249)
This commit is contained in:
parent
e67f8a7c0f
commit
f1da71c91c
|
@ -611,6 +611,7 @@ sub new {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$pos = $#{$message->{metadata}};
|
$pos = $#{$message->{metadata}};
|
||||||
|
$pos++;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Need to split the new header data into the 1st line and a list of
|
# Need to split the new header data into the 1st line and a list of
|
||||||
|
@ -721,6 +722,7 @@ sub new {
|
||||||
$oldlocation++;
|
$oldlocation++;
|
||||||
} while($linenum<$totallines &&
|
} while($linenum<$totallines &&
|
||||||
$message->{metadata}[$oldlocation] =~ /^H\s/);
|
$message->{metadata}[$oldlocation] =~ /^H\s/);
|
||||||
|
$oldlocation--;
|
||||||
|
|
||||||
my(@lines, $line, $firstline);
|
my(@lines, $line, $firstline);
|
||||||
@lines = split(/\n/, $newvalue);
|
@lines = split(/\n/, $newvalue);
|
||||||
|
|
Loading…
Reference in a new issue