[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[StrongED] Re: ModeWhen - News



In article <f992b0a656.fjgraute@xxxxxxxxx>,
   Fred Graute <fjgraute@xxxxxxxxx> wrote:
> In message <ef47abeeff4c892980ed1036f3fce3de@xxxxxxxxxxxxxxxxxxxx>
>           Jeremy Nicoll - ml sed <jn.ml.sed45@xxxxxxxxxxxxxxxxxxxx> wrote:

> > On 2017-12-07 08:37, Richard Torrens (lists) wrote:
> > 
> > > I've put some examples at
> > > http://diy.torrens.org/temp/
> > 
> > The two 'Freecycle' files don't have a line starting "From:" until
> > about 8 KB in (though 'others' has one much earlier).
> > 
> > How far into a file does StrongED look when doing ModeWhen tests?

> StrongED searches through the first 1kB of a loaded file to match
> against the ModeWhen expressions.

> In the case of the 'Freecycle' files the match would fail. A string
> needs to identified within the first 1kB that could be tested against
> in order for the files to be opened in News mode.

That 1Kb then is the clue. In my situation changing the From: to
Return-path: does the trick.

That won't work for News of course - but I can't see a problem.

-- 
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives at http://www.Torrens.org/RO/StrongED/index.html