[ ijbswa-Feature Requests-3423792 ] Allow multi-line {} statements in actionsfiles

SourceForge.net <[email protected]>
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
Feature Requests item #3423792, was opened at 2011-10-14 16:14
Message generated for change (Comment added) made by fabiankeil
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=361118&aid=3423792&group_id=11118

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Configuration
Group: None
Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: dg1727 (dg1727)
Assigned to: Fabian Keil (fabiankeil)
Summary: Allow multi-line {} statements in actionsfiles

Initial Comment:
It would be nice if {} statements in the actionsfiles could include line breaks.  For example:  

{+block{Reason}
 +crunch-all-cookies} 

This is also how the CGI pages are formatted.  For example, view http://config.privoxy.org/show-url-info?url=somesite.com and, under "Matches for...," look in the match-all.action section.  

Presently, putting line breaks in the actionsfile like this causes Privoxy to fail on startup.  

This feature request could be thought of as part of TODO item 22 (http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/TODO), but I wanted to suggest this specific aspect of "verifying the action files properly."  Thanks for consideration.  

----------------------------------------------------------------------

>Comment By: Fabian Keil (fabiankeil)
Date: 2011-10-16 12:21

Message:
You're welcome.

I'll put the CGI page adjustment on the TODO list.

----------------------------------------------------------------------

Comment By: dg1727 (dg1727)
Date: 2011-10-15 20:41

Message:
Yes, line breaks work if they are escaped with a backslash.  

I had tried this, and it didn't seem to work, but when I try it now, it
works.  Thanks for responding.  

----------------------------------------------------------------------

Comment By: Fabian Keil (fabiankeil)
Date: 2011-10-14 16:41

Message:
Line break are allowed provided you escape them:

{\
 +block{Reason} \
 +crunch-all-cookies \
} 

The CGI page should probably show the matches that way as well.

I do not consider the fact that unescaped line breaks aren't allowed a
serious limitation.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=361118&aid=3423792&group_id=11118

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.