Re: A question about procmailrc

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

 



On Friday 03 Feb 2006 22:31, Hongwei Li wrote:
> > On Friday 03 Feb 2006 21:04, Hongwei Li wrote:
> >> >> From: "Hongwei Li" <hongwei@xxxxxxxxx>
>
> ...
>
> >> > First of all, we have no control on Lotus Notes.  We don't use it, but
> >> > some departments in the school use it and it is useless to tell Lotus
> >> > users what they should do -- those junk emails are sent out
> >> > automatically by something, who knows who sends them out.  It is
> >> > Lotus's bug, but so far the Lotus Notes admins in the school have not
> >> > been able to figure it out what happended, why, and how to fix it. 
> >> > That is why I want to protect my users.
> >> >
> >> > I tested your suggestion -- thanks for that!  By these testing, I
> >> > found a new point that can explain all of my above tests!  That is:
> >> > the procmail has a limit to the length of the subject line!!!  It
> >> > counts only the first about 55 characters!
> >> >
> >> > Subject:.*is out of
> >> >  works for all cases, Re:, or [Fwd:, but
> >> > Subject:.*is out of the
> >> >  does not work at all.
> >> >
> >> > Then, I try to delete some letters in the middle of the subject line
> >> > -- As I said that the subject line has a long part
> >> > Aaaaaaaa Bbbbb/Ccccc Dddddddd/Eeee Ffffffffffffffffff is out of the
> >> > office
> >> >
> >> > If I delete some dddd ffff etc. to make it shorter, then any of my
> >> > procmail lines work well no matter it has Re: or [Fwd:, or others. 
> >> > The matching string "is out of the office" is at the end of the
> >> > subject line. So, if it is too long (I counted, if longer than about
> >> > 55 chars), then procmail could not match the string, and the email
> >> > goes to inbox.  Once I deleted some letters in the middle, it matches
> >> > and functions.  The Re: or [Fwd: just makes it "too long".
> >> >
> >> > Strange, but it is procmail's limit.
> >> >
> >> > Thanks!
> >> >
> >> > Hongwei
> >>
> >> A correction:  from the beginnig of the subject line to the last
> >> searching letter should not exceed 65 chars. For example, suppose the
> >> subject line is
> >>
> >> Acccc Bnnnn ..... Hhhhhh is out of the office
> >>
> >> and the matching string is "is out of the", then if the count from A
> >> (the first letter of the subject line) to e (the last letter of the
> >> matching string) is longer than 65, say 66, then the procmailrc does not
> >> function. Then, remove any one letter before "is out...", it works.
> >>
> >> Everybody can try it to see if that is the case.
> >>
> >> Is there anyway to lift this limit?  Since Lotus Notes may add very long
> >> and strang things in the subject line, it will be very usefull to lift
> >> this limit to 80 chars long or so.
> >>
> >> Thanks!
> >>
> >> Hongwei
> >
> > Try switching to the sh shell
> >
> > Something is tickling my memory about input line limits with bash.
> > Can't catch the memory, but if bash is the problem, try the shell
> > procmail recommend.
> >
> > TD
>
> Sorry that I don't understand your point well.  My users use squirrelmail
> to read/send emails.  How to "switch to the sh shell"?  How to "try the
> shell procmail"?
>
> Thanks.
>
> HL
John,
I don't see how it will help either ... its just a tickle somewhere at the 
back of my mind, and may be well out of line.
_____________________________________________
Hongwei
At the top of the procmail file is your shell definition.
SHELL=/bin/bash

Just to humour me, try switching it to 
SHELL=/bin/sh
and re-test will you?

TD


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux