git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2553
7612ce4b-ef26-0410-bec9-
ea0150e637f0
}
/* Register text-type attachments */
}
/* Register text-type attachments */
-register_attachment_common('message/rfc822', 'link_text');
+//register_attachment_common('message/rfc822', 'link_text');
+register_attachment_common('message/rfc822', 'link_message');
register_attachment_common('text/plain', 'link_text');
register_attachment_common('text/richtext', 'link_text');
register_attachment_common('text/plain', 'link_text');
register_attachment_common('text/richtext', 'link_text');
/* The link that we created needs a name. "view" will be displayed for
all text attachments handled by this plugin. */
$Args[1]['attachment_common']['text'] = _("view");
/* The link that we created needs a name. "view" will be displayed for
all text attachments handled by this plugin. */
$Args[1]['attachment_common']['text'] = _("view");
/* Each attachment has a filename on the left, which is a link.
Where that link points to can be changed. Just in case the link above
for viewing text attachments is not the same as the default link for
/* Each attachment has a filename on the left, which is a link.
Where that link points to can be changed. Just in case the link above
for viewing text attachments is not the same as the default link for
+function attachment_common_link_message(&$Args)
+{
+ $Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' .
+ $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
+ '&passed_ent_id=' . $Args[5] . '&override_type0=message&override_type1=rfc822';
+ /* The link that we created needs a name. "view" will be displayed for
+ all text attachments handled by this plugin. */
+ $Args[1]['attachment_common']['text'] = _("view");
+}
+
+
function attachment_common_link_html(&$Args)
{
$Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' .
function attachment_common_link_html(&$Args)
{
$Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' .