Update of /cvsroot/squirrelmail/squirrelmail/src
In directory usw-pr-cvs1:/tmp/cvs-serv23988
Modified Files:
view_header.php
Log Message:
support for viewing headers of message/rfc822 attachments
Index: view_header.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/view_header.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- view_header.php 29 Jul 2002 20:57:21 -0000 1.4
+++ view_header.php 29 Jul 2002 22:26:29 -0000 1.5
@@ -12,14 +12,18 @@
*/
-function parse_viewheader($imapConnection,$id) {
+function parse_viewheader($imapConnection,$id, $passed_ent_id) {
global $uid_support;
$header_full = array();
-
+ if (!$passed_ent_id) {
$read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]",
true, $a, $b, $uid_support);
-
+ } else {
+ $query = "FETCH $id BODY[".$passed_ent_id.'.HEADER]';
+ $read=sqimap_run_command ($imapConnection, $query,
+ true, $a, $b, $uid_support);
+ }
$cnum = 0;
for ($i=1; $i < count($read); $i++) {
$line = htmlspecialchars($read[$i]);
|