Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enzevalos_iphone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enzevalos
enzevalos_iphone
Commits
352214a4
Commit
352214a4
authored
4 years ago
by
cruxfilm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed merge conflict in IncomingMail, adapted Enum formatting to Google style guide.
parent
2537a508
Branches
Branches containing commit
No related tags found
1 merge request
!74
Integration of new ComposeView
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enzevalos_iphone/mail/IncomingMail.swift
+12
-7
12 additions, 7 deletions
enzevalos_iphone/mail/IncomingMail.swift
with
12 additions
and
7 deletions
enzevalos_iphone/mail/IncomingMail.swift
+
12
−
7
View file @
352214a4
...
...
@@ -9,7 +9,11 @@
import
Foundation
enum
PGPPart
{
case
MESSAGE
,
PUBLICKEY
,
SIGNATURE
,
SECRETKEY
,
SIGNEDMESSAGE
;
case
MESSAGE
case
PUBLICKEY
case
SIGNATURE
case
SECRETKEY
case
SIGNEDMESSAGE
var
start
:
String
{
get
{
...
...
@@ -90,7 +94,10 @@ enum PGPPart {
}
enum
PgpMIMEType
{
case
SIGNATURE
,
ENCRYPTED
,
OCTET
,
KEYS
;
case
SIGNATURE
case
ENCRYPTED
case
OCTET
case
KEYS
static
let
allValues
=
[
PgpMIMEType
.
ENCRYPTED
,
PgpMIMEType
.
KEYS
,
PgpMIMEType
.
OCTET
,
PgpMIMEType
.
SIGNATURE
]
...
...
@@ -148,10 +155,8 @@ class IncomingMail {
keyIds
.
append
(
contentsOf
:
newPublicKeys
)
if
let
fromAdr
=
from
?
.
mailbox
{
if
let
adr
=
PersistentDataProvider
.
dataProvider
.
generateFetchedAddressResultsController
(
address
:
fromAdr
)
.
fetchedObjects
?
.
first
{
for
k
in
adr
.
publicKeys
{
if
let
id
=
k
.
fingerprint
{
keyIds
.
append
(
id
)
}
for
id
in
adr
.
keyIDs
{
keyIds
.
append
(
id
)
}
}
}
...
...
@@ -204,6 +209,7 @@ class IncomingMail {
return
msgParser
.
data
()
}
}
var
decryptionKeyIDs
:
[
String
]
{
get
{
let
secretkeys
=
PersistentDataProvider
.
dataProvider
.
fetchedSecretKeyResultsController
.
fetchedObjects
??
[]
...
...
@@ -238,7 +244,6 @@ class IncomingMail {
}
}
init
(
rawData
:
Data
,
uID
:
UInt64
,
folderPath
:
String
,
flags
:
MCOMessageFlag
){
self
.
rawData
=
rawData
self
.
uID
=
uID
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment