Search found 6 matches

by Vovan
Wed Aug 31, 2022 9:10 pm
Forum: Developers
Topic: SAOP API WaitSetResponse
Replies: 0
Views: 1796

SAOP API WaitSetResponse

Hi! I used versions for testing Release 8.8.15_GA_3869.RHEL7_64_20190917004220 RHEL7_64 FOSS edition, Patch 8.8.15_P9. Release 9.0.0_ZEXTRAS_20220713.RHEL7_64_20220705100521 RHEL7_64 FOSS edition. from the SOAP documentation WaitSetResponse <AdminWaitSetResponse waitSet="{waitset-id}" [can...
by Vovan
Wed Aug 31, 2022 8:53 pm
Forum: Developers
Topic: Change user mail status read/unread
Replies: 2
Views: 2902

Re: Change user mail status read/unread

PHP library https://github.com/zimbra-api/mail/ Unread $account = new AccountSelector(AccountBy::NAME(), $args["email"]); $preAuth = new PreAuth(time() * 1000, null, 0); $preAuth->computeValue($account, ZIMBRA_API_PREAUTH_KEY ); $api = MailFactory::instance(ZIMBRA_API_URL); $api->auth($acc...
by Vovan
Wed Dec 09, 2020 3:08 pm
Forum: Developers
Topic: intercept incoming and outgoing mail
Replies: 5
Views: 9760

Re: intercept incoming and outgoing mail

I found a way to intercept emails through python. (https://github.com/Zimbra-Community/python-zimbra) info_request.add_request( 'WaitSetRequest', { 'waitSet': waitset, 'seq': seq, 'block': '1', 'defTypes': defTypes, 'timeout': "1000000", 'expand': '1', 'update': { 'a': { 'name': 'admin@bla...
by Vovan
Fri Jan 31, 2020 2:02 pm
Forum: Русский язык-фор
Topic: Обработка входящих и исходящих через API
Replies: 0
Views: 2588

Обработка входящих и исходящих через API

Добрый день. Есть необходимость отлавливать новые письма в ящиках. создаю AdminCreateWaitSetRequest <env:Body> <urn1:AdminCreateWaitSetRequest allAccounts=\"true\" defTypes=\"f\"/> </env:Body> затем делаю через SOAP запрос <?xml version="1.0"?> <env:Envelope xmlns:env=&...
by Vovan
Fri Jan 31, 2020 9:51 am
Forum: Developers
Topic: intercept incoming and outgoing mail
Replies: 5
Views: 9760

Re: intercept incoming and outgoing mail

Hello everybody! I used AdminWaitSetRequest (XML) i try create WaitSet ... send to server <?xml version="1.0"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:zimbra" xmlns:urn1="urn:zimbraAdmin"> <env:Header><urn:context><urn...
by Vovan
Thu Jan 16, 2020 12:00 pm
Forum: Developers
Topic: intercept incoming and outgoing mail
Replies: 5
Views: 9760

intercept incoming and outgoing mail

Hi!
How i can intercept incoming and outgoing mail header with a script to add mail events to my SQL table?
I would also like to have in the script an absolute link on the disk to the new letter.