Fix the MIME type for vCards

This commit is contained in:
KnugiHK
2021-01-18 16:06:45 +08:00
parent 8ee07ef65b
commit 4fb8fd5210
2 changed files with 4 additions and 6 deletions

View File

@@ -249,7 +249,7 @@ def vcard(db, data):
data[row[1]]["messages"][row[0]]["data"] = row[3] + \
"{ The vCard file cannot be displayed here, however it " \
"should be located at " + file_path + "}"
data[row[1]]["messages"][row[0]]["mime"] = "x-vcard"
data[row[1]]["messages"][row[0]]["mime"] = "text/x-vcard"
print(f"Gathering vCards...({index + 1}/{total_row_number})", end="\r")