Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-2011, 08:24 AM
Member
 
Posts: 10
Default auto-send 15minute before appo

Hello, I'd like to send a message to the person invited to the appointment 15 minutes before it. I think using CLI but I do not know how, if the appointment is a recurrence. I tried the following code:
Code:
#!/bin/bash

#start date
DATE=`/bin/date +%D' '%H:%M` 
D=`/bin/date +%M`
let D+=16
DATE2=`/bin/date +%D' '%H:`+D

# for all user
for i in `zmprov -l gaa`
do
    # for appointement 
    for app in `zmmailbox -z -m $i s -t appo date:\<DATE2&&\>DATE
       do
			echo $app
	   done
done
Reply With Quote
  #2 (permalink)  
Old 05-19-2011, 07:32 AM
Member
 
Posts: 10
Default

Or it's not possible to change the create appointement and add attendees email in red section?
Code:
<CreateAppointmentRequest xmlns="urn:zimbraMail">
<m xmlns="" l="10">
<inv>
<comp status="CONF" fb="B" class="PUB" transp="O" draft="0" allDay="0" name="xxxx" loc="">
<s tz="Europe/Belgrade" d="20110520T143000"/>
<e tz="Europe/Belgrade" d="20110520T160000"/>
<or a="test5@zimbratest.local.tec6.net" d="test"/>
<recur>
<add>
<rule freq="DAI">
<interval ival="1"/>
</rule>
</add>
</recur>
<alarm action="DISPLAY">
<trigger>
<rel m="5" related="START" neg="1"/>
</trigger>
</alarm>
<alarm action="EMAIL">
<trigger>
<rel m="5" related="START" neg="1"/>
</trigger>
<at a="lol@zimbratest.local.tec6.net;test@zimbratest.local.tec6.net"/>
</alarm>
</comp>
</inv>
<su>
xxxx</su>
<mp ct="multipart/alternative">
<mp ct="text/plain">
<content>
</content>
</mp>
<mp ct="text/html">
<content>
&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;</content>
</mp>
</mp>
</m>
</CreateAppointmentRequest>
Reply With Quote
  #3 (permalink)  
Old 05-31-2011, 04:11 AM
Zimbra Employee
 
Posts: 70
Default

The email alarm section in CreateAppointmentRequest currently supports sending a reminder only to the email address registered under Preferences > Notification.

If you are creating the appointment using the SOAP API then you try this - Invoke a SaveDraftRequest (after CreateAppointmentRequest) containing your message content and specify the time when the draft should be auto-sent by the server (refer docs/soap.txt).
Reply With Quote
  #4 (permalink)  
Old 06-01-2011, 12:24 AM
Member
 
Posts: 10
Default

Thank you for your reply, but if the appointment is a recurrence. How to do?
Code:
<SaveDraftRequest>
  <m [id="{existing-draft-id}"] [origid="..." rt="r|w"] [idnt="{identity-id}"] [l="{folder}"] [f="{flags}"] [t="{tag-id-list}"] [color="{color}"] [autoSendTime="{millis-since-epoch}"]>
    <e t="{type}" a="{email-address}" p="{personal-name}"/>+
    <su>{subject}</su>*
    [<irt>{Message-ID header for message being replied to}</irt>]
    <mp ct="{content-type}">
      <content>...</content>
    </mp>
    <attach [aid="{attach-upload-id}"]>
      [<m id="{message-id}" [optional="0|1"]/>]*
      [<mp mid="{message-id}" part="{part-id}" [optional="0|1"]/>]*
      [<cn id="{contact-id}" [optional="0|1"]/>]*
      [<doc (id="{document-id}" | path="{document-path}") [optional="0|1"]/>]*
    </attach>
  </m>
</SaveDraftRequest>
I must create as many SaveDraftRequest as recurrence? But if the recurrence has no end?

Regards,...
Rémi
__________________
Release 7.0.1_GA_3105.UBUNTU10_64 UBUNTU10_64 FOSS edition.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.