aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael <icarus@dabo.de>2012-02-25 19:40:05 +0100
committerMichael <icarus@dabo.de>2012-02-25 19:40:05 +0100
commit1cf1870512de474208ce3682450c047e027d6c38 (patch)
treea276c8efee335237261b990dc0b6dffa1b29fdb0 /include
parent3c68bf25ac9176ccfbc9f2e658dcc360431c46cc (diff)
downloadvolse-hubzilla-1cf1870512de474208ce3682450c047e027d6c38.tar.gz
volse-hubzilla-1cf1870512de474208ce3682450c047e027d6c38.tar.bz2
volse-hubzilla-1cf1870512de474208ce3682450c047e027d6c38.zip
poller.php: Test for moving to archive, vier-style: notifications fixed
Diffstat (limited to 'include')
-rwxr-xr-xinclude/poller.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index 9cf12ed9c..d79079fcd 100755
--- a/include/poller.php
+++ b/include/poller.php
@@ -454,6 +454,11 @@ function poller_run($argv, $argc){
intval($r[0]['id'])
);
}
+ //logger("Mail: Deleting ".$msg_uid);
+ //imap_delete($mbox, $msg_uid, FT_UID);
+ imap_setflag_full($mbox, $msg_uid, "\\Seen", ST_UID);
+ logger("Mail: Moving ".$msg_uid);
+ imap_mail_move($mbox, $msg_uid, "Archiv", FT_UID);
continue;
}
@@ -515,6 +520,11 @@ function poller_run($argv, $argc){
q("UPDATE `item` SET `last-child` = 1 WHERE `id` = %d LIMIT 1",
intval($stored_item)
);
+ //logger("Mail: Deleting ".$msg_uid);
+ //imap_delete($mbox, $msg_uid, FT_UID);
+ imap_setflag_full($mbox, $msg_uid, "\\Seen", ST_UID);
+ logger("Mail: Moving ".$msg_uid);
+ imap_mail_move($mbox, $msg_uid, "Archiv", FT_UID);
}
}
@@ -523,7 +533,7 @@ function poller_run($argv, $argc){
}
elseif($contact['network'] === NETWORK_FACEBOOK) {
// This is picked up by the Facebook plugin on a cron hook.
- // Ignored here.
+ // Ignored here.
}
if($xml) {