Skip to Content.
Sympa Menu

en - Re: [sympa-users] archiving html attachments

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün - CRU <address@concealed>
  • To: Peter Farmer <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] archiving html attachments
  • Date: Fri, 20 Oct 2006 09:37:01 +0200

Peter,

Peter Farmer wrote:
I've just been trying to change the default mhonarc behaviour to get html attachments to postings archived as seperate files that are then linked to by the archived (plain text body)	mail page. This was easy enough to achieve by modifying the mhonarc_resources file. However, the resulting linkage to the attachment is broken. The wwsympa tt2 setup doesnt know how to deliver	raw html files as is and you get an error when following the generated links  
( e.g. http://testsite.com/updates/arc/testlist/2006-10/htmlpA3GuSYmpG.html )

Sympa could not deliver the requested page for the following reason :
file error - /address@concealed/2006-10/htmlpA3GuSYmpG.html: absolute paths are not allowed (set ABSOLUTE option)
  
This is a TT2 error : for security reason, the default behavior is to forbid inclusion/parsing of files within TT2 templates using absolute path. To go ahead, you should :
  • either add the path to your attachements to the allowed path (using tt2::add_include_path()) in wwsympa::do_arc()
  • or allow absolute paths to be used (using tt2::allow_absolute_path()) also in wwsympa::do_arc()
The drawback of each solution is that you'll have to patch Sympa ; it might bring you into troubles the next time you upgrade Sympa.

If you explain your needs (ie why you need attachements to be stored elsewhere), then we might find a standard way (=natively in the software) to meet your needs.
I am going down the path of creating web server aliases to the archive directory, and adjusting the <AttachmentURL> parameter in mhonarc config to use those aliases. Is this the best way to handle this or can I get wwsympa to handle the delivery of the html files directly ?
  




Archive powered by MHonArc 2.6.19+.

Top of Page