Skip to content

Commit 39b4768

Browse files
authored
fix: fix regression introduced in PR #12 (#19)
1 parent be4a173 commit 39b4768

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

QuoteFixMacro.bas

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ catch:
900900
'The real condensing is made below, where CONDENSE_EMBEDDED_QUOTED_OUTLOOK_HEADERS is checked
901901
'Disabling getOutlookHeader leads to an unmodified lineCounter, which in turn gets the header included in "quotedText"
902902
Else
903-
OutlookHeader = getOutlookHeader(BodyLines, lineCounter)
903+
OutlookHeader = getOutlookHeader(BodyLines, lineCounter, MailMode)
904904
End If
905905

906906
Dim quotedText As String
@@ -1354,7 +1354,7 @@ Private Sub getNamesFromMeeting(ByVal item As MeetingItem, ByRef senderName As S
13541354
End Sub
13551355

13561356

1357-
Private Function getOutlookHeader(ByRef BodyLines() As String, ByRef lineCounter As Long) As String
1357+
Private Function getOutlookHeader(ByRef BodyLines() As String, ByRef lineCounter As Long, ByRef MailMode As ReplyType) As String
13581358
' parse until we find the header finish "> " (Outlook_Headerfinish)
13591359

13601360
For lineCounter = lineCounter To UBound(BodyLines)
@@ -1364,8 +1364,10 @@ Private Function getOutlookHeader(ByRef BodyLines() As String, ByRef lineCounter
13641364
getOutlookHeader = getOutlookHeader & BodyLines(lineCounter) & vbCrLf
13651365
Next
13661366

1367-
'skip OUTLOOK_HEADERFINISH
1368-
'lineCounter = lineCounter + 1
1367+
'skip OUTLOOK_HEADERFINISH for replies
1368+
If Not MailMode = TypeForward Then
1369+
lineCounter = lineCounter + 1
1370+
End If
13691371

13701372
End Function
13711373

0 commit comments

Comments
 (0)