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.

@@ -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
- """Check if an e-mail address belongs to a known and unblocked contact."""
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
  Metadata-Version: 2.4
2
2
  Name: deltachat-rpc-client
3
- Version: 2.8.0
3
+ Version: 2.10.0
4
4
  Summary: Python client for Delta Chat core JSON-RPC interface
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: Intended Audience :: Developers
@@ -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=rgCdXo4oF7_cckBci_t03NFS0VEx-mZ5uk5rkvP9qwI,18090
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.8.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
- deltachat_rpc_client-2.8.0.dist-info/METADATA,sha256=k1poPDXHWlw27LffUHyHHPyGK2c_Ykr9QM-tLD1psYw,2173
16
- deltachat_rpc_client-2.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- deltachat_rpc_client-2.8.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
- deltachat_rpc_client-2.8.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
- deltachat_rpc_client-2.8.0.dist-info/RECORD,,
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,,