X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=ctdlphp%2Fctdlelements.php;h=e165b71eb2500bde159c69cb38590661e962c7ad;hb=b3ce7e70991dcb568968d653a927633641feffc3;hp=8834601c4e7657a03c4cd235cefd8d127072e8d2;hpb=f4a48de30e62eec0899802d7f96e2789f3d45c79;p=citadel.git
diff --git a/ctdlphp/ctdlelements.php b/ctdlphp/ctdlelements.php
index 8834601c4..e165b71eb 100644
--- a/ctdlphp/ctdlelements.php
+++ b/ctdlphp/ctdlelements.php
@@ -59,6 +59,25 @@ function display_message($msgnum) {
echo '
' ;
}
+function get_message_partlist($msgnum) {
+
+ // Fetch the message from the server
+ list($ok, $response, $fields) = ctdl_fetch_message($msgnum);
+
+ // Bail out gracefully if the message isn't there.
+ if (!$ok) {
+ echo "Error: " . htmlspecialchars($response) . "
" ;
+ return false;
+ }
+ if (isset($fields['part']))
+ {
+ $parts = explode('|', $fields['part']);
+ return $parts;
+
+ }
+ return false;
+}
+
?>