Lawrence Greenfield wrote:
>
> I thought we already did this correctly, so I'm surprised we ran into
> this.
I ran some tests myself with vacation, and it IS case-dependent w.r.t
domain. Take a look at look_for_me() and the VACATION case in eval()
(in script.c).
> The host part is always case-insensitive. The local part is case
> sensitive in cyrus (thus all the griping about leg+Foo not working)
> and needs to be compared in a case-sensitive fashion.
> (The local part isn't always case-sensitive, so other systems might do
> things differently.)
>
> This should go for all address comparisons internal. Explicit address
> comparisons, like "address" or "envelope", the user is given a chance
> to select a comparator and we should just use that comparator.
I agree. Should I go ahead and create an address comparison function
(as mentioned in the comments) and use this instead of strcmp()?
Ken
> Larry
>
> Date: Fri, 17 Nov 2000 11:50:32 -0500
> From: Ken Murchison <[EMAIL PROTECTED]>
>
> Gary Mills wrote:
> >
> > Eurika! I finally got a vacation response. Here's the problem:
> > My sieve script looked like this...
> >
> > require ["fileinto","vacation"];
> >
> > vacation :days 4 :addresses ["[EMAIL PROTECTED]",
>"[EMAIL PROTECTED]"] "Testing vacation for the next week";
> >
> > My test messages were sent to ``[EMAIL PROTECTED]''. When I changed
> > the addresses in the sieve script to have the four upper-case characters,
> > I got my first ever vacation response. Sendmail rewrites all of our
> > addresses in that format. However, case should not matter in hostnames.
> > Lmtpd should be doing a case-independant comparison!
>
> I think you're right, but before I make any changes, I want to make sure
> that I don't break anything else.
>
> Issues that come to mind:
>
> - do we compare the entire addresses case-independently or just the
> domain?
> - should the same be done for loop control mechanisms (ie, comparing
> envelope 'from' and envelope 'to', or comparing envelope 'from' and
> :addresses)?
>
> Any thoughts?
>
> Ken
> --
> Kenneth Murchison Oceana Matrix Ltd.
> Software Engineer 21 Princeton Place
> 716-662-8973 x26 Orchard Park, NY 14127
> --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp