View Issue Details

IDProjectCategoryView StatusLast Update
0014406phplist applicationMessage Managementpublic29-05-08 20:33
Reporterelectrawn 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product VersionSVN 
Target Version4.0.xFixed in Version4.0.x 
Summary0014406: [MESSAGEID] Placeholder
DescriptionWe had a use to just return messageid in the footer so we could tag that with a url. Plugins may want it eventually too. More message attributes should be exposed as placeholders.

Example : foo.com/someother.php?m=[MESSAGEID]

Patch attached.
TagsNo tags attached.

Activities

07-05-08 20:20

 

messageidplaceholder.patch (1,530 bytes)
# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: phplist/public_html/lists/admin/sendemaillib.php
--- phplist/public_html/lists/admin/sendemaillib.php Base (1.42)
+++ phplist/public_html/lists/admin/sendemaillib.php Locally Modified (Based On 1.42)
@@ -161,6 +161,8 @@
   $url = getConfig("forwardurl");$sep = ereg('\?',$url)?'&':'?';
   $html["forward"] = sprintf('<a href="%s%suid=%s&mid=%d">%s</a>',$url,$sep,$hash,$messageid,$strThisLink);
   $text["forward"] = sprintf('%s%suid=%s&mid=%d',$url,$sep,$hash,$messageid);
+  $html["messageid"] = sprintf('%d',$messageid);
+  $text["messageid"] = sprintf('%d',$messageid);
   $html["forwardurl"] = sprintf('%s%suid=%s&mid=%d',$url,$sep,$hash,$messageid);
   $text["forwardurl"] = $text["forward"];
   $url = getConfig("public_baseurl");
@@ -317,6 +319,8 @@
     $html['footer'] = $text['footer'];
   }
 
+  $text["footer"] = eregi_replace("\[MESSAGEID\]",$text["messageid"],$text['footer']);
+  $html["footer"] = eregi_replace("\[MESSAGEID\]",$html["messageid"],$html['footer']);
   $text["footer"] = eregi_replace("\[SUBSCRIBE\]",$text["subscribe"],$text['footer']);
   $html["footer"] = eregi_replace("\[SUBSCRIBE\]",$html["subscribe"],$html['footer']);
   $text["footer"] = eregi_replace("\[PREFERENCES\]",$text["preferences"],$text["footer"]);

user1308

29-05-08 20:33

  ~0048249

Added to 2.11.4