Project

General

Profile

Actions

Bug #2206

closed

RRD Report Email HTML has incorrect file paths for attachments

Added by Dainel Spisak almost 13 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
RRD Graphs
Target version:
-
Start date:
02/15/2012
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0.1
Affected Architecture:
i386

Description

The HTML created by the RRD Report Email package is listing the graphs as:

<img src="cid:WANGW-quality.rrd-8hour.png" />

but then the graph is attached like so in the email:

Content-Type: application/octet-stream; name="/tmp/WANGW-quality.rrd-8hour.png" 
Content-Transfer-Encoding: base64
Content-ID: <WANGW-quality.rrd-8hour.png>
Content-Disposition: inline; filename="/tmp/WANGW-quality.rrd-8hour.png" 

This causes email clients rendering email HTML inline to show broken images.

I attempted to reset the RRD database to see if this would fix the problem, it did not. After the RRD database was deleted I tried to delete the graph items from an individual email report. This did not fix the issue. Next I tried deleting the whole RRD Email Report itself and creating it from scratch. This too did not fix the issue.

Not sure if this is a problem with the RRD backend or the RRD Email Report package.


Files

rrd_report_error_email.eml (210 KB) rrd_report_error_email.eml Dainel Spisak, 02/15/2012 05:32 PM
Actions #1

Updated by Jim Pingle almost 13 years ago

  • Status changed from New to Feedback

What e-mail client are you using? Because it renders them fine for me in both Thunderbird and K9.

Actions #2

Updated by Jim Pingle almost 13 years ago

Try to change line 198 of /etc/inc/mail_reports.inc from:

$mail->AddEmbeddedImage("$filename", $shortname, "$filename");

to:

$mail->AddEmbeddedImage("$filename", $shortname, $shortname);

If that works for you I'll test it here as well and commit.

Actions #3

Updated by Jim Pingle almost 13 years ago

  • % Done changed from 0 to 100

Applied in changeset commit:a2c86c6b8e7c7ebef9fa22eb46264f1dcf511734.

Actions #4

Updated by Jim Pingle over 12 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF