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
301e25f9
Commit
301e25f9
authored
6 years ago
by
Oliver Wiese
Browse files
Options
Downloads
Patches
Plain Diff
improve autocrypt
remove print
parent
1a1bdc3c
No related branches found
No related tags found
1 merge request
!24
Improve mail fetching
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
enzevalos_iphone/Autocrypt.swift
+1
-1
1 addition, 1 deletion
enzevalos_iphone/Autocrypt.swift
enzevalos_iphone/ItunesHandler.swift
+0
-2
0 additions, 2 deletions
enzevalos_iphone/ItunesHandler.swift
enzevalos_iphone/OutgoingMail.swift
+1
-1
1 addition, 1 deletion
enzevalos_iphone/OutgoingMail.swift
with
2 additions
and
4 deletions
enzevalos_iphone/Autocrypt.swift
+
1
−
1
View file @
301e25f9
...
...
@@ -110,7 +110,7 @@ class Autocrypt {
if
let
key
=
pgp
.
exportKey
(
id
:
id
,
isSecretkey
:
false
,
autocrypt
:
true
)
{
var
string
=
"
\(
ADDR
)
="
+
adr
string
=
string
+
";
\(
ENCRYPTION
)
=
\(
encPref
.
name
)
"
string
=
string
+
";
\(
KEY
)
=
\n
"
+
key
string
=
string
+
";
\(
KEY
)
="
+
key
builder
.
header
.
setExtraHeaderValue
(
string
,
forName
:
AUTOCRYPTHEADER
)
}
}
...
...
This diff is collapsed.
Click to expand it.
enzevalos_iphone/ItunesHandler.swift
+
0
−
2
View file @
301e25f9
...
...
@@ -42,7 +42,6 @@ class ItunesKeyHandling {
var
creationDate
=
Date
()
if
let
attrs
=
try
?
fileManager
.
attributesOfItem
(
atPath
:
url
.
path
)
as
NSDictionary
,
let
date
=
attrs
.
fileCreationDate
()
{
creationDate
=
date
print
(
creationDate
)
}
keys
.
append
(
contentsOf
:
pgp
.
readKeys
(
data
:
data
,
importDate
:
creationDate
))
}
...
...
@@ -58,7 +57,6 @@ class ItunesKeyHandling {
var
keys
:
[
URL
]
=
[]
let
dirs
=
fileManager
.
urls
(
for
:
.
documentDirectory
,
in
:
.
userDomainMask
)
for
url
in
dirs
{
print
(
url
)
if
let
files
=
try
?
fileManager
.
contentsOfDirectory
(
at
:
url
,
includingPropertiesForKeys
:
nil
,
options
:
.
skipsHiddenFiles
)
{
let
keyFiles
=
files
.
filter
{
$0
.
pathExtension
==
"asc"
}
keys
.
append
(
contentsOf
:
keyFiles
)
...
...
This diff is collapsed.
Click to expand it.
enzevalos_iphone/OutgoingMail.swift
+
1
−
1
View file @
301e25f9
...
...
@@ -24,7 +24,7 @@ class OutgoingMail {
private
let
ccEntrys
:
[
MCOAddress
]
private
let
bccEntrys
:
[
MCOAddress
]
var
username
=
UserManager
.
loadUserValue
(
Attribute
.
accountname
)
as?
String
??
""
var
useraddr
=
UserManager
.
loadUserValue
(
Attribute
.
userAddr
)
as?
String
??
""
var
useraddr
=
(
UserManager
.
loadUserValue
(
Attribute
.
userAddr
)
as?
String
??
""
)
.
lowercased
()
var
userDisplayName
=
UserManager
.
loadUserValue
(
Attribute
.
userDisplayName
)
as?
String
var
sender
:
MCOAddress
{
...
...
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