summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-imap.scxml
blob: 13e4ec2b3a6e0539bfacd130a052992d12fa30ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<scxml datamodel="ecmascript">
	<script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
	<script>
//<![CDATA[
      someBinaryData1 = new ArrayBuffer(256);
      var view = new Uint8Array(someBinaryData1);
      for (var i = 0; i < view.length; i++) {
              view[i] = i;
      }
//]]>
	</script>

	<state id="main">
		
		<invoke type="imap" id="imap">
			<param name="ssl" expr="'true'" />
			<param name="username" expr="'sradomski'" />
			<param name="password" expr="''" />
			<param name="server" expr="'imap://localhost'" />
			<finalize><script>dump(_event)</script></finalize>
		</invoke>

		<onentry>
			<send event="continue" delay="200ms" />
		</onentry>

		<transition event="continue">
			<send target="#_imap" event="select">
				<param name="verbose" expr="'off'" />
				<param name="mailbox" expr="'Bar.Test1'" />
			</send>

			<!-- <send target="#_imap" event="list">
				<param name="verbose" expr="'off'" />
				<param name="reference" expr="'*'" />
				<param name="mailbox" expr="''" />
			</send> -->

		</transition>

	</state>
</scxml>