blob: eb939d1183617e11a2049b2ebfd26947e5ec0ce4 (
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
|
# NAME
App::ImapNotify - It's new $module
# SYNOPSIS
use App::ImapNotify;
# DESCRIPTION
App::ImapNotify is a simple notification script using IMAP NOTIFY. Note that it is very simple and
implements a custom IMAP client with very limited features. Mostly a proof of
concept and personal script.
# LICENSE
Copyright (C) Florian Pritz.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
# AUTHOR
Florian Pritz <bluewind@xinu.at>
### loop\_reconnect
$app->loop_reconnect();
Same as loop(), but automatcally calls loop() again if the connection is lost.
### loop
$app->loop();
Open a connection and wait for NOTIFY notifications. When a NOTIFY notification
arrives, show a notification to the user.
This method throws an exception when the connection to the server is lost. If
you want to continue waiting for new notifications, you may call this method
again. Also look at loop\_reconnect().
|