Hi Trpp,

Ok, but my last attempt does not work either so....

>From a recent mail, this is in the headers.
List-Id: <openvpn-users.lists.sourceforge.net>
I want all those mails to end up in the folder "Other lists\OpenVpn-Users" 
Currently the rule in my rules.ima file is:
<OpenVPNUsers>H~List-Id\: <openvpn-users\.lists\.sourceforge\.net>:Other 
lists\OpenVpn-Users
but that does not seem to work either. And as far as I know I've escaped any {} 
() | * + , . : \  in the rule that need escaping

Wat also does not work, for different reasons is:
<OpenVPNUsers>H~List-Id\:\ \<openvpn-users.lists.sourceforge.net\>:Other 
lists\OpenVpn-Users
<OpenVPNUsers>H~List-Id\: \<openvpn-users.lists.sourceforge.net\>:Other 
lists\OpenVpn-Users
This one should have worked I think, but didn't:

<OpenVPNUsers>H~List-Id\: <openvpn-users.lists.sourceforge.net>:Other 
lists\OpenVpn-Users



What is the correct syntax? I'm about to give up and go back to 

<OpenVPNUsers>S~\[Openvpn-users\]:Other lists\OpenVpn-Users




Met vriendelijke groet,
Bonno Bloksma
hoofd systeembeheer



tio hogeschool hotelmanagement en toerisme 
begijnenhof 8-12 / 5611 el eindhoven
t 040 296 28 28 / f 040 237 35 20
[EMAIL PROTECTED]  / www.tio.nl 
  ----- Original Message ----- 
  From: Tripp Allen 
  To: [email protected] 
  Sent: Sunday, July 29, 2007 9:18 PM
  Subject: Re: [IMail Forum] rule does not work


  The engine uses a standard regular expression parser so a '.' means match any 
character in that position. If you want to match a period exactly, you have to 
escape it.

  Tripp

    ----- Original Message ----- 
    From: Bonno Bloksma 
    To: [email protected] 
    Sent: Sunday, July 29, 2007 1:41 PM
    Subject: Re: [IMail Forum] rule does not work


    Hi,

    Hmm, indeed the manual states I need to escape those periods but......
    These two rules DO work:
    <DecludeVirus>H~listid.declude.virus:Other lists\Declude antivirus
    <DecludeJunkmail>H~listid.declude.junkmail:Other lists\Declude junkmail

    Mails for both mailinglists are indeed moved to the right folder and the 
periods are NOT escaped. I've just checked, there are no other rules moving 
mail to these two folders. Also, in the local headers of a mail I find:
    X-IMail-Rule: <DecludeVirus>H~listid.declude.virus:Other lists\Declude 
antivirus Data- LISTID.DECLUDE.VIRUS.-16710038
    So that rule is indeed applied to move the mail to the proper folder.

    Trip/Tom, any idea what's going on?

    I'll adjust the rule for the Openvpn list once more, this time I'll try:
    <OpenVPNUsers>H~List-Id\: <openvpn-users\.lists\.sourceforge\.net>:Other 
lists\OpenVpn-Users



    Met vriendelijke groet,
    Bonno Bloksma
    hoofd systeembeheer



    tio hogeschool hotelmanagement en toerisme 
    begijnenhof 8-12 / 5611 el eindhoven
    t 040 296 28 28 / f 040 237 35 20
    [EMAIL PROTECTED]  / www.tio.nl 
      ----- Original Message ----- 
      From: John T (lists) 
      To: [email protected] 
      Sent: Saturday, July 28, 2007 5:33 PM
      Subject: RE: [IMail Forum] rule does not work


      I did not catch this before, you have periods, those have to be escaped.

       

      <openVPNUsers>H~List-Id\: <openvpn-users\.lists\.sourceforge\.net>:Other 
lists\OpenVPN-Users

       

      John T

       

      From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bonno 
Bloksma
      Sent: Saturday, July 28, 2007 12:43 AM
      To: [email protected]
      Subject: Re: [IMail Forum] rule does not work

       

      Hi,

       

      Well, 

      <OpenVPNUsers>H~List-Id\: <openvpn-users.lists.sourceforge.net>:Other 
lists\OpenVpn-Users

      dit not work. I'll try some else next. I'll try 

      <OpenVPNUsers>H~List-Id\: \<openvpn-users.lists.sourceforge.net\>:Other 
lists\OpenVpn-Users

      and see if maybe I DID have to escape the brackets.

       

      Met vriendelijke groet,
      Bonno Bloksma
      hoofd systeembeheer

       

      tio hogeschool hotelmanagement en toerisme 

      begijnenhof 8-12 / 5611 el eindhoven
      t 040 296 28 28 / f 040 237 35 20
      [EMAIL PROTECTED]  / www.tio.nl 

        ----- Original Message ----- 

        From: Bonno Bloksma 

        To: [email protected] 

        Sent: Friday, July 27, 2007 3:09 PM

        Subject: Re: [IMail Forum] rule does not work

         

        Hi,

         

        The on-line manual states:

        Note: The following characters have special meaning in a rule: {} () | 
* + , . : \    If you want to use one of these characters in a search string, 
precede it with a backslash. For example, to search for a plus sign, enter \+ 
in the search string.

         

        So, escaping the space might have been the error in that rule. I 
thought I needed tot escape the < and > because they now too have a special 
meaning, the name of the rule. But, indeed tha manual does not say so.

         

        I'll change the rule to  

        <OpenVPNUsers>H~List-Id\: <openvpn-users.lists.sourceforge.net>:Other 
lists\OpenVpn-Users

        and see what that will do.

         

        Met vriendelijke groet,
        Bonno Bloksma
        hoofd systeembeheer

         

        tio hogeschool hotelmanagement en toerisme 

        begijnenhof 8-12 / 5611 el eindhoven
        t 040 296 28 28 / f 040 237 35 20
        [EMAIL PROTECTED]  / www.tio.nl 

          ----- Original Message ----- 

          From: John T (lists) 

          To: [email protected] 

          Sent: Friday, July 27, 2007 8:38 AM

          Subject: RE: [IMail Forum] rule does not work

           

          Why did you escape the space that is between List-Id\: and \<openvpn?

           

          Also, I do not think you have to escape the < or > characters, do you?

           

          John T

           

          From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bonno 
Bloksma
          Sent: Thursday, July 26, 2007 10:27 PM
          To: IMail_Forum
          Subject: [IMail Forum] rule does not work

           

          Hi,

           

          Why does this rule not work:

          <OpenVPNUsers>H~List-Id\:\ 
\<openvpn-users.lists.sourceforge.net\>:Other lists\OpenVpn-Users

          As far as I know I have escaped all the special chars

          This is part of the header of a message in that list:

          ....

          X-Mailman-Version: 2.1.8
          Precedence: list
          List-Id: <openvpn-users.lists.sourceforge.net>
          List-Unsubscribe: 
<https://lists.sourceforge.net/lists/listinfo/openvpn-users>, 
           <mailto:[EMAIL PROTECTED]>
          ....

           

          This message was not transferred to proper folder. Another similar 
rule:

          <DecludeJunkmail>H~listid.declude.junkmail:Other lists\Declude 
junkmail

          does work properly. Header for such a message are:

          ....

          X-Identity: 70.91.134.41 | 70-91-134-41-ma-ne.hfc.comcastbusiness.net 
| declude.com
          List-Id: <listid.declude.junkmail.-1671003854956.smtp.declude.com>
          X-Mailing-List: [EMAIL PROTECTED]

          ....

           

           

          For now I've changed the OpenVpn rule to:

          <OpenVPNUsers>S~\[Openvpn-users\]:Other lists\OpenVpn-Users

          but I kinda like the list-id stuff as that will not get confused 
during crossposting a reply as happens sometimes with similar lists like 
declude junkmail and virus and with openvpn users and developers.

           

           

           

          Met vriendelijke groet,
          Bonno Bloksma
          hoofd systeembeheer

           

          tio hogeschool hotelmanagement en toerisme 

          begijnenhof 8-12 / 5611 el eindhoven
          t 040 296 28 28 / f 040 237 35 20
          [EMAIL PROTECTED]  / www.tio.nl 

Reply via email to