Skip to content

Commit

Permalink
fix(imap): Log MessageMapper not finding full text
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
ChristophWurst committed Dec 13, 2024

Verified

This commit was signed with the committer’s verified signature.
ChristophWurst Christoph Wurst
1 parent 93bd41d commit c389327
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/IMAP/MessageMapper.php
Original file line number Diff line number Diff line change
@@ -492,6 +492,7 @@ public function getFullText(Horde_Imap_Client_Socket $client,
}

if (($message = $result->first()) === null) {
\OCP\Log\logger('mail')->info('Found ' . $result->count() . ' results');

Check failure on line 495 in lib/IMAP/MessageMapper.php

GitHub Actions / static-psalm-analysis dev-master

UndefinedFunction

lib/IMAP/MessageMapper.php:495:4: UndefinedFunction: Function OCP\Log\logger does not exist (see https://psalm.dev/021)

Check warning on line 495 in lib/IMAP/MessageMapper.php

Codecov / codecov/patch

lib/IMAP/MessageMapper.php#L495

Added line #L495 was not covered by tests
return null;
}

0 comments on commit c389327

Please sign in to comment.