Skip to content

Commit 585594b

Browse files
committed
temp
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
1 parent d8f9e95 commit 585594b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ex_app/lib/all_tools/mail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_mail_folder_list(account_id: int):
6363
:param account_id: The id of the account to list as integer, obtainable via get_mail_account_list
6464
"""
6565

66-
return nc.ocs('GET', '/ocs/v2.php/apps/mail/mailbox/list', json={'accountId': account_id})
66+
return nc.ocs('GET', '/ocs/v2.php/apps/mail/ocs/mailboxes', json={'accountId': account_id})
6767

6868

6969
@tool
@@ -75,7 +75,7 @@ def list_mails(folder_id: int, n_mails: int = 30):
7575
:param n_mails: The number of mails to receive. Optional, default is 30
7676
:return: a list of mails/messages, including timestamps
7777
"""
78-
return nc.ocs('GET', '/ocs/v2.php/apps/mail/mailbox/messages/list', json={'mailboxId': folder_id, 'limit': n_mails})
78+
return nc.ocs('GET', f'/ocs/v2.php/apps/mail/ocs/mailboxes/{folder_id}/messages', json={'limit': n_mails})
7979

8080

8181
return [

0 commit comments

Comments
 (0)