]> git.mxchange.org Git - friendica.git/commitdiff
Imported mails were deleted the second time the poller ran - when moving or deleting...
authorMichael Vogel <icarus@dabo.de>
Thu, 14 Mar 2013 22:15:15 +0000 (23:15 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 14 Mar 2013 22:15:15 +0000 (23:15 +0100)
include/onepoll.php
view/theme/vier/style.css

index d5b1668d4fc8c5bb9211f895cd6d3c2f17dfcdea..bd20cfdb5300e5347f82170d4679d1650b9adc59 100644 (file)
@@ -331,13 +331,17 @@ function onepoll_run(&$argv, &$argc){
                                                );
 
                                                if(count($r)) {
-                                                       logger("Mail: Seen before ".$msg_uid." for ".$mailconf[0]['user'],LOGGER_DEBUG);
-                                                       if($meta->deleted && ! $r[0]['deleted']) {
-                                                               q("UPDATE `item` SET `deleted` = 1, `changed` = '%s' WHERE `id` = %d LIMIT 1",
-                                                                       dbesc(datetime_convert()),
-                                                                       intval($r[0]['id'])
-                                                               );
-                                                       }
+                                                       logger("Mail: Seen before ".$msg_uid." for ".$mailconf[0]['user']." UID: ".$importer_uid." URI: ".$datarray['uri'],LOGGER_DEBUG);
+
+                                                       // Only delete when mails aren't automatically moved or deleted
+                                                       if (($mailconf[0]['action'] != 1) AND ($mailconf[0]['action'] != 3))
+                                                               if($meta->deleted && ! $r[0]['deleted']) {
+                                                                       q("UPDATE `item` SET `deleted` = 1, `changed` = '%s' WHERE `id` = %d LIMIT 1",
+                                                                               dbesc(datetime_convert()),
+                                                                               intval($r[0]['id'])
+                                                                       );
+                                                               }
+
                                                        switch ($mailconf[0]['action']) {
                                                                case 0:
                                                                        logger("Mail: Seen before ".$msg_uid." for ".$mailconf[0]['user'].". Doing nothing.", LOGGER_DEBUG);
index 1595499ee01f73383feab23e1421cb5d58c04ac4..29863e744b66f33abdbe2dea8584e8b52e023dd3 100644 (file)
@@ -1117,7 +1117,7 @@ border-bottom: 1px solid #D2D2D2;
   font-size: 14px;
 }
 .wall-item-container .wall-item-bottom {
-  opacity: 0.5;
+  opacity: 0;
   -webkit-transition: all 0.2s ease-in-out;
   -moz-transition: all 0.2s ease-in-out;
   -o-transition: all 0.2s ease-in-out;