Dependency Graph View Issue Relation Graph Vertical
related to child of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0015495phpList 3 plugins[All Projects] Generalpublic06-02-19 11:35
Reporteradrian15 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0015495: Rssmanager hack on sendemaillib cached variable
DescriptionThis is a workaround so that rssmanager works ok.
As long as iWantToProcess function is defined and many other plugin functions, the plugin needs to know the rsstemplate value and the id value (because it expects a message-a-like array).

I use $cached variable in order to save both values so that the rsstemplate plugin can read both values when the function iWantToProcess is called.

Probably it can be improved but the code does work and does not make the current code too much complex.
Additional InformationBased on revision 1703.
TagsNo tags attached.

Activities

27-05-10 18:45

 

G07_rssmanager_sendemaillib_cache_fix.patch (1,085 bytes)
diff -urN rssfixes_G06_plugins_sendemaillib_ProcessSuccesFailure_check_fix/lists/admin/sendemaillib.php rssfixes_G07_rssmanager_sendemaillib_cache_fix/lists/admin/sendemaillib.php
--- rssfixes_G06_plugins_sendemaillib_ProcessSuccesFailure_check_fix/lists/admin/sendemaillib.php	2010-05-17 07:56:20.000000000 +0200
+++ rssfixes_G07_rssmanager_sendemaillib_cache_fix/lists/admin/sendemaillib.php	2010-05-17 08:40:08.000000000 +0200
@@ -33,6 +33,8 @@
     $message = Sql_query("select * from {$GLOBALS["tables"]["message"]} where id = $messageid");
     $cached[$messageid] = array();
     $message = Sql_fetch_array($message);
+    $cached[$messageid]["rsstemplate"] = $message["rsstemplate"]; # Hack so that rssmanager plugin works ok. TODO: To be improved.
+    $cached[$messageid]["id"] = $message["id"]; # Hack so that rssmanager plugin works ok. TODO: To be improved.
     if (ereg("([^ ]+@[^ ]+)",$message["fromfield"],$regs)) {
       # if there is an email in the from, rewrite it as "name <email>"
       $message["fromfield"] = ereg_replace($regs[0],"",$message["fromfield"]);

Issue History

Date Modified Username Field Change
27-05-10 18:45 adrian15 New Issue
27-05-10 18:45 adrian15 File Added: G07_rssmanager_sendemaillib_cache_fix.patch
27-05-10 19:06 h2b2 Relationship added child of 0015498
10-05-11 21:57 michiel Project phpList 3 application => rssmanager
06-02-19 11:35 erion Project rssmanager => phpList 3 plugins
06-02-19 11:35 erion Category Plugin API => General