-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
packages/IMAPClient-Core.package/ICEmail.class/instance/dateFormatted.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
packages/IMAPClient-Core.package/ICEmail.class/instance/dateInSeconds.st
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/IMAPClient-Core.package/ICEmail.class/instance/dateInSecondsSince1980.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
dateInSecondsSince1980 | ||
"MailMessage parses in UTC" | ||
|
||
^ MailMessage new timeFrom: self date |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Core.package/ICEmail.class/instance/dateInSecondsSinceSqueakEpoch.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
dateInSecondsSinceSqueakEpoch | ||
|
||
^ self dateInSecondsSince1980 + (DateAndTime year: 1980 day: 1) asSeconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICFolder.class/instance/emails.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
emails | ||
|
||
^ emails ifNil: [emails := (SortedCollection sortBlock: [:first :second | first dateInSeconds >= second dateInSeconds])] | ||
^ emails ifNil: [emails := (SortedCollection sortBlock: [:first :second | first dateInSecondsSinceSqueakEpoch >= second dateInSecondsSinceSqueakEpoch])] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/emailDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
emailDate | ||
|
||
^ DateAndTime year: 2016 month: 6 day: 10 hour: 10 minute: 51 second: 42 |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/expected1980Seconds.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
expected1980Seconds | ||
|
||
^ self emailDate asSeconds - (DateAndTime year: 1980 day: 1) asSeconds |
4 changes: 0 additions & 4 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/expectedParsedDate.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/expectedParsedMESZDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
expectedParsedMESZDate | ||
|
||
^ '10.06.2016 12:51' |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/expectedParsedUTCDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
expectedParsedUTCDate | ||
|
||
^ '10.06.2016 10:51' |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/expectedSqueakEpochSeconds.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
expectedSqueakEpochSeconds | ||
|
||
^ self emailDate asSeconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/instance/testDateInSecondsSince1980.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
testDateInSecondsSince1980 | ||
|
||
self assert: self email dateInSecondsSince1980 equals: self class expected1980Seconds. |
4 changes: 4 additions & 0 deletions
4
.../IMAPClient-Tests.package/ICEmailTest.class/instance/testDateInSecondsSinceSqueakEpoch.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
testDateInSecondsSinceSqueakEpoch | ||
|
||
self assert: self email dateInSecondsSinceSqueakEpoch equals: self class expectedSqueakEpochSeconds. |
10 changes: 8 additions & 2 deletions
10
packages/IMAPClient-Tests.package/ICEmailTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
{ | ||
"class" : { | ||
"emailDate" : "tg 7/19/2019 12:40", | ||
"expected1980Seconds" : "tg 7/19/2019 09:33", | ||
"expectedBody" : "DH 6/9/2018 15:33", | ||
"expectedMinimalHeaderAsString" : "DH 6/9/2018 15:32", | ||
"expectedParsedDate" : "DH 6/6/2018 19:52", | ||
"expectedParsedMESZDate" : "tg 7/19/2019 10:36", | ||
"expectedParsedUTCDate" : "tg 7/19/2019 10:36", | ||
"expectedSqueakEpochSeconds" : "tg 7/19/2019 09:29", | ||
"expectedStringRepresentation" : "DH 6/9/2018 15:23" }, | ||
"instance" : { | ||
"email" : "C.G. 7/25/2018 17:52", | ||
"email:" : "pm 6/9/2019 17:16", | ||
"setUp" : "C.G. 7/25/2018 17:53", | ||
"testAsString" : "mw 5/11/2018 12:06", | ||
"testDateFormatted" : "pm 6/3/2019 18:52", | ||
"testDateFormatted" : "tg 7/19/2019 08:36", | ||
"testDateInSecondsSince1980" : "tg 7/19/2019 09:26", | ||
"testDateInSecondsSinceSqueakEpoch" : "tg 7/19/2019 09:27", | ||
"testMinimalHeaderAsString" : "C.G. 7/25/2018 17:53", | ||
"testRetrieveBody" : "DH 7/9/2018 15:39" } } |