File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ async def get_mail_account_list():
5959 @safe_tool
6060 async def get_mail_folder_list (account_id : int ):
6161 """
62- Lists all mail folders for an account. You need to get the correct account id matching the request first before using this tool.
62+ Lists all mail folders for an email account
6363 :param account_id: The id of the account to list as integer, obtainable via get_mail_account_list
6464 """
6565 return await nc .ocs ('GET' , '/ocs/v2.php/apps/mail/ocs/mailboxes' , json = {'accountId' : account_id })
@@ -69,12 +69,11 @@ async def get_mail_folder_list(account_id: int):
6969 @safe_tool
7070 async def list_mails (folder_id : int , n_mails : int = 30 ):
7171 """
72- Lists all messages in a mailbox folder. You need to get the correct folder id matching the request first before using this tool.
72+ Lists all messages in a mailbox folder
7373 :param folder_id: The id of the folder to list as integer, obtainable via get_mail_folder_list
7474 :param n_mails: The number of mails to receive. Optional, default is 30
7575 :return: a list of mails/messages, including timestamps
7676 """
77- print (await nc .ocs ('GET' , f'/ocs/v2.php/apps/mail/ocs/mailboxes/{ folder_id } /messages' , json = {'limit' : n_mails }))
7877 return await nc .ocs ('GET' , f'/ocs/v2.php/apps/mail/ocs/mailboxes/{ folder_id } /messages' , json = {'limit' : n_mails })
7978
8079
You can’t perform that action at this time.
0 commit comments