Skip to content

Commit

Permalink
[Enh]: Email Display String - No Error if Mail Parse Fails
Browse files Browse the repository at this point in the history
  • Loading branch information
seandenigris committed May 23, 2024
1 parent bafca98 commit 2b9c5ef
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/ResourcesLive/RlEmail.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,21 @@ RlEmail >> displayStringOn: aStream [

self file exists ifFalse: [ ^ 'Email - file does not exist' ].

msg := self mailMessage.
self timestamp ifNotNil: [ :stamp |
aStream
nextPutAll: stamp asDate yyyymmdd;
space;
nextPutAll: stamp asTime print24 ].
aStream
nextPutAll: ' [';
nextPutAll: msg from;
nextPutAll: '] ';
nextPutAll: msg subject withBlanksCondensed.
[
msg := self mailMessage.
self timestamp ifNotNil: [ :stamp |
aStream
nextPutAll: stamp asDate yyyymmdd;
space;
nextPutAll: stamp asTime print24 ].
aStream
nextPutAll: ' [';
nextPutAll: msg from;
nextPutAll: '] ';
nextPutAll: msg subject withBlanksCondensed
]
on: Error
do: [ ].

displayString := aStream contents.
]
Expand Down

0 comments on commit 2b9c5ef

Please sign in to comment.