aboutsummaryrefslogtreecommitdiffstats
path: root/mod/mail.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-15 20:40:24 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-15 20:40:24 -0700
commit3f7ee613fcecb57f68d55905fef886c9ad8453d6 (patch)
tree18b473e842ea9815a0dac6f34acdb59117d0477c /mod/mail.php
parent93f061f78a8b914a731838058a38354a62d002de (diff)
downloadvolse-hubzilla-3f7ee613fcecb57f68d55905fef886c9ad8453d6.tar.gz
volse-hubzilla-3f7ee613fcecb57f68d55905fef886c9ad8453d6.tar.bz2
volse-hubzilla-3f7ee613fcecb57f68d55905fef886c9ad8453d6.zip
mail sync debugging
Diffstat (limited to 'mod/mail.php')
-rw-r--r--mod/mail.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/mail.php b/mod/mail.php
index 2fbd96fdb..884c41565 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -98,6 +98,7 @@ function mail_post(&$a) {
$ret = send_message(0, $recipient, $body, $subject, $replyto, $expires);
if($ret['success']) {
+ xchan_mail_query($ret['mail']);
build_sync_packet(0,array('conv' => array($ret['conv']),'mail' => array(encode_mail($ret['mail'],true))));
}
else {
@@ -152,6 +153,14 @@ function mail_content(&$a) {
intval(argv(3)),
intval(local_channel())
);
+ $x = q("select * from mail where id = %d and channel_id = %d",
+ intval(argv(3)),
+ intval(local_channel())
+ );
+ if($x) {
+ build_sync_packet(local_channel(),array('mail' => encode_mail($x[0],true)));
+ }
+
proc_run('php','include/notifier.php','mail',intval(argv(3)));
if($r) {