Skip to content
Snippets Groups Projects
Commit 301e25f9 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

improve autocrypt

remove print
parent 1a1bdc3c
No related branches found
No related tags found
1 merge request!24Improve mail fetching
......@@ -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)
}
}
......
......@@ -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)
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment