Skip to Content.
Sympa Menu

en - [sympa-users] Archive section and html messages with referenced css and embedded images

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Nestor Oviedo <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] Archive section and html messages with referenced css and embedded images
  • Date: Wed, 14 Dec 2011 02:32:57 -0300

Hi all!
I have a Sympa 6.1b.4 and I'm facing two big problems with the archive section. Maybe someone can help me on this. I'll try to resume the issue.
When a user sends a message in HTML format, with images embedded, MHonArc archives it and generates the msgxxx.html file and many jpg[random].jpg files (all in the same directory).

The first problem is MHonArc doesn't seems to be considering the css file referenced in the html head section; i.e. the msgxxx.html file doesn't contain any reference to the css file. The obvious consequence is the message presentation in Sympa Archive section is broken.

The second problem is related with the session_id renewal process made in SympaSession.pm (invoked from wwsympa.fcgi). MHonArc replaces the "src" attribute from all the embedded <img> elements in the msgxxx.html with the jpg[random].jpg filename generated. When the message is displayed in the Sympa Archive section, the browser makes a request for every <img> element to an URL like http://[host]/arc/[list]/[year-month]/jpg[random].jpg, and that is a "do_archive" action in the wwsympa.fcgi for the image.
The problem is that the image requests are very close one to another and that doesn't allow the browser to update the sympa_session cookie with the renewed session_id (it sends the previous seesion_id). 
The log shows the line "SympaSession::new ignoring unknown session cookie 'xxxxx'" (where xxxxx is the previous seesion_id).
Because of this, the server creates a new empty session, and instead retrieves the "I'm not a spammer" page. Also, if the user is logged in, it is logged out.

I have no clue for the first problem. For the second I've thinking in make some modification to the MHonArc archival process to specificy the "-attachmenturl" parameter and then use the mod_alias or mod_rewrite module from apache in order to "bypass" the "do_arc" action.

Any clue? any idea?

Thanks in advance!
Nestor




Archive powered by MHonArc 2.6.19+.

Top of Page