deltachat-rpc-client 2.8.0__py3-none-any.whl → 2.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of deltachat-rpc-client might be problematic. Click here for more details.
- deltachat_rpc_client/account.py +15 -1
- {deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/METADATA +1 -1
- {deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/RECORD +7 -7
- {deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/WHEEL +0 -0
- {deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/entry_points.txt +0 -0
- {deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/licenses/LICENSE +0 -0
- {deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/top_level.txt +0 -0
deltachat_rpc_client/account.py
CHANGED
|
@@ -185,7 +185,21 @@ class Account:
|
|
|
185
185
|
return Contact(self, contact_id)
|
|
186
186
|
|
|
187
187
|
def get_contact_by_addr(self, address: str) -> Optional[Contact]:
|
|
188
|
-
"""
|
|
188
|
+
"""Looks up a known and unblocked contact with a given e-mail address.
|
|
189
|
+
To get a list of all known and unblocked contacts, use contacts_get_contacts().
|
|
190
|
+
|
|
191
|
+
**POTENTIAL SECURITY ISSUE**: If there are multiple contacts with this address
|
|
192
|
+
(e.g. an address-contact and a key-contact),
|
|
193
|
+
this looks up the most recently seen contact,
|
|
194
|
+
i.e. which contact is returned depends on which contact last sent a message.
|
|
195
|
+
If the user just clicked on a mailto: link, then this is the best thing you can do.
|
|
196
|
+
But **DO NOT** internally represent contacts by their email address
|
|
197
|
+
and do not use this function to look them up;
|
|
198
|
+
otherwise this function will sometimes look up the wrong contact.
|
|
199
|
+
Instead, you should internally represent contacts by their ids.
|
|
200
|
+
|
|
201
|
+
To validate an e-mail address independently of the contact database
|
|
202
|
+
use check_email_validity()."""
|
|
189
203
|
contact_id = self._rpc.lookup_contact_id_by_addr(self.id, address)
|
|
190
204
|
return contact_id and Contact(self, contact_id)
|
|
191
205
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
deltachat_rpc_client/__init__.py,sha256=zroJARiq9HBi7Ln03KlICOUJHSjm3CGIFkHfXILEdOQ,567
|
|
2
2
|
deltachat_rpc_client/_utils.py,sha256=v0iWVSa6S-s078GgnnhflCRhA9pfWI-CfK8mjZ4zjXc,6393
|
|
3
|
-
deltachat_rpc_client/account.py,sha256=
|
|
3
|
+
deltachat_rpc_client/account.py,sha256=RrZEf0jHegScCcmC2rP6c9JeQ_WQJxwP1T6W1-8bgU8,18938
|
|
4
4
|
deltachat_rpc_client/chat.py,sha256=LTZSYHC24bo5fDAX1XCDP79XaHIyuPZS_-zzD0vu1Rw,11238
|
|
5
5
|
deltachat_rpc_client/client.py,sha256=UeCJov-ZvB3WMzl_6aJEESGRQCdvS3UAKFL4Adar6cg,7206
|
|
6
6
|
deltachat_rpc_client/const.py,sha256=wwaXSt7gXdjveT_Hpy963WXz7AoUZ0hNS4-V9pmaX1U,6647
|
|
@@ -11,9 +11,9 @@ deltachat_rpc_client/message.py,sha256=o5XqsfwNS-MFv7ptjTA4no-OsIDliIopsMp3vs8qB
|
|
|
11
11
|
deltachat_rpc_client/py.typed,sha256=nGQ9Itq-bkXBn5Ri1JIR0oYnDNv7LDRfkowxBSSqVTM,60
|
|
12
12
|
deltachat_rpc_client/pytestplugin.py,sha256=asnQUJ9w386VS1OaHTWvzq8Yz0kD9p2RaJ_DqYXaJ1U,5737
|
|
13
13
|
deltachat_rpc_client/rpc.py,sha256=AUY8UJP7NlRSE5ewJs9jGxJdK8etKqsCEFWiIqnX5T8,6981
|
|
14
|
-
deltachat_rpc_client-2.
|
|
15
|
-
deltachat_rpc_client-2.
|
|
16
|
-
deltachat_rpc_client-2.
|
|
17
|
-
deltachat_rpc_client-2.
|
|
18
|
-
deltachat_rpc_client-2.
|
|
19
|
-
deltachat_rpc_client-2.
|
|
14
|
+
deltachat_rpc_client-2.10.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
15
|
+
deltachat_rpc_client-2.10.0.dist-info/METADATA,sha256=L5ecLzF_apu3-Fgq6Zeupwgh1wr96d7527k8yQi7V6Q,2174
|
|
16
|
+
deltachat_rpc_client-2.10.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
deltachat_rpc_client-2.10.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
|
|
18
|
+
deltachat_rpc_client-2.10.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
|
|
19
|
+
deltachat_rpc_client-2.10.0.dist-info/RECORD,,
|
|
File without changes
|
{deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.8.0.dist-info → deltachat_rpc_client-2.10.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|