Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You may call me by my name, Wirth, or by my value, Worth. -- Nicklaus Wirth


computers / alt.comp.software.thunderbird / Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

SubjectAuthor
* How can I create a filter on the gmail/spam folder?Carlos E.R.
+* How can I create a filter on the gmail/spam folder?Frank Miller
|`* How can I create a filter on the gmail/spam folder?Carlos E.R.
| +* How can I create a filter on the gmail/spam folder?Frank Miller
| |`* How can I create a filter on the gmail/spam folder?VanguardLH
| | +- How can I create a filter on the gmail/spam folder?VanguardLH
| | `* How can I create a filter on the gmail/spam folder?Carlos E.R.
| |  `* How can I create a filter on the gmail/spam folder?VanguardLH
| |   `- How can I create a filter on the gmail/spam folder?Carlos E.R.
| `- How can I create a filter on the gmail/spam folder?Jörg_Lorenz
+* How can I create a filter on the gmail/spam folder?sticks
|`* How can I create a filter on the gmail/spam folder?Carlos E.R.
| `* How can I create a filter on the gmail/spam folder?VanguardLH
|  `* How can I create a filter on the gmail/spam folder?Carlos E.R.
|   `- How can I create a filter on the gmail/spam folder?VanguardLH
+* How can I create a filter on the gmail/spam folder?VanguardLH
|`- How can I create a filter on the gmail/spam folder?VanguardLH
`* How can I create a filter on the gmail/spam folder?dillinger
 +* How can I create a filter on the gmail/spam folder?Carlos E.R.
 |`* How can I create a filter on the gmail/spam folder?dillinger
 | `- How can I create a filter on the gmail/spam folder?Carlos E.R.
 `* Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam Carlos E.R.
  `* Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam Carlos E.R.
   `* Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam dillinger
    +- Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam dillinger
    +- Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam dillinger
    `* Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam Carlos E.R.
     `* Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam Carlos E.R.
      `* Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam dillinger
       `- Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam Carlos E.R.

Pages:12
Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

<grlvck-a5c2.ln1@spock.lan>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3773&group=alt.comp.software.thunderbird#3773

  copy link   Newsgroups: alt.comp.software.thunderbird
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: dillinger@invalid.not (dillinger)
Newsgroups: alt.comp.software.thunderbird
Subject: Re: Question about imapfilter [Was: How can I create a filter on the
gmail/spam folder?]
Date: Fri, 22 Mar 2024 07:42:24 +0100
Organization: To protect and to server
Message-ID: <grlvck-a5c2.ln1@spock.lan>
References: <kf716kxhce.ln2@Telcontar.valinor> <ka746k-kc32.ln1@spock.lan>
<ejqtckxduv.ln2@Telcontar.valinor> <6gduckx5ic.ln2@Telcontar.valinor>
<lahvck-0ak1.ln1@spock.lan>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Info: paganini.bofh.team; logging-data="2402671"; posting-host="vpMO/bmA6eJZHtFnqfjwLw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: Mozilla Thunderbird Beta
Content-Language: en-US, nl
X-Notice: Filtered by postfilter v. 0.9.3
 by: dillinger - Fri, 22 Mar 2024 06:42 UTC

On 22-03-2024 06:25, dillinger wrote:
> On 21-03-2024 20:13, Carlos E.R. wrote:
>> I simplified the rule:
>>
>>
>> Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id:',
>> '<users.lists.opensuse.org>') *
>>            gmx_l.INBOX:is_older(2)
>> Non_OT_GX_L:move_messages(gmx_l['temp_g'])
>>
>>
>> but it is still failing. It moves 148 messages, a lot of them that do
>> not have the specified header.
>
> AFAIK the colon is not part of the field.
>
> testlist = kpn019['Info']:contain_field('List-Id',
> 'beta.discuss.thunderbird.net'):is_older(2)
> testlist:unmark_seen()
>
> works fine here, so you can simplify it even further:
>
> Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id',
> 'users.lists.opensuse.org'):gmx_l.INBOX:is_older(2)
> Non_OT_GX_L:move_messages(gmx_l['temp_g'])
>
> should work for you.
>
> Excuse the HTML, I need the long lines :)
Sorry, it should be:
Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id',
'users.lists.opensuse.org'):is_older(2)
Non_OT_GX_L:move_messages(gmx_l['temp_g'])

Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

<0h91dkxbem.ln2@Telcontar.valinor>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3789&group=alt.comp.software.thunderbird#3789

  copy link   Newsgroups: alt.comp.software.thunderbird
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.comp.software.thunderbird
Subject: Re: Question about imapfilter [Was: How can I create a filter on the
gmail/spam folder?]
Date: Fri, 22 Mar 2024 22:24:16 +0100
Lines: 182
Message-ID: <0h91dkxbem.ln2@Telcontar.valinor>
References: <kf716kxhce.ln2@Telcontar.valinor> <ka746k-kc32.ln1@spock.lan>
<ejqtckxduv.ln2@Telcontar.valinor> <6gduckx5ic.ln2@Telcontar.valinor>
<lahvck-0ak1.ln1@spock.lan>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net E9XXDWlkhuZSJK7QJ4yZ2A2lPHkhn9jpzxO2ZA2VQvbpKKKed4
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:SU2ST1eov5Tfnt4CHY6XjT+d/MI= sha256:HOEtnhpX8wZs2Py9JF9X+jx2e13yDz4parzmPh/ft64=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <lahvck-0ak1.ln1@spock.lan>
 by: Carlos E.R. - Fri, 22 Mar 2024 21:24 UTC

On 2024-03-22 06:25, dillinger wrote:
> On 21-03-2024 20:13, Carlos E.R. wrote:
>> I simplified the rule:
>>
>>
>> Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id:',
>> '<users.lists.opensuse.org>') *
>>            gmx_l.INBOX:is_older(2)
>> Non_OT_GX_L:move_messages(gmx_l['temp_g'])
>>
>>
>> but it is still failing. It moves 148 messages, a lot of them that do
>> not have the specified header.
>
> AFAIK the colon is not part of the field.

I think the same. Initially I did not have the colon, but it failed. So I tried with the colon to see if that was the problem; it wasn't.

> testlist = kpn019['Info']:contain_field('List-Id', 'beta.discuss.thunderbird.net'):is_older(2)
> testlist:unmark_seen()
>
> works fine here, so you can simplify it even further:
>
> Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id', 'users.lists.opensuse.org'):gmx_l.INBOX:is_older(2)
> Non_OT_GX_L:move_messages(gmx_l['temp_g'])
>
> should work for you.

I tried your second version:

Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id', 'users.lists.opensuse.org'):is_older(2)
Non_OT_GX_L:move_messages(gmx_l['temp_g'])

Resulted in:

180 messages moved from robin.listas@gmx.es@imap.gmx.com/INBOX to robin.listas@gmx.es@imap.gmx.com/temp_g.

It has moved the expected messages and more, like some with different List-Id:

List-Id: Discussions about the development of the openSUSE distributions
<factory.lists.opensuse.org>

The same config.lua file has a similar rule on another account, which works:

telefonica_l = IMAP {
server = 'imap.telefonica.net',
username = '...',
password = '...',
ssl = 'tls1'
}

old_msg_TL = ( telefonica_l.INBOX:contain_field('List-Id', '<linux-xfs.vger.kernel.org>') +
telefonica_l.INBOX:contain_field('List-Id', '>ffmpeg-user.ffmpeg.org>') ) *
telefonica_l.INBOX:is_older(10)
old_msg_TL:move_messages(telefonica_l['temp_l'])

Resulting in:

15 messages moved from robin.listas2@imap.telefonica.net/INBOX to robin.listas2@imap.telefonica.net/temp_l.

And these are correct.

The same rule, as far as I can see, works in the telefonica.net account but not in gmx.com. I'm thinking that the gmx server search on server facility is broken.

I just did a test. I do the same search in Alpine. Search for arbitrary header "List-Id" with contents "users.lists.opensuse.org", and it results in 224 messages selected, and indeed it selects the wrong messages :-/

Server search on GMX *is* broken.

I wonder if I could use "match_field(field, pattern)", which is done internally in imapsync, not on the server. Problem is, it has to download the headers of all messages, and they are 8000.

Something like:

Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id', '<users.lists.opensuse.org>') *
gmx_l.INBOX:is_older(2)

And then do a match search on the results of that the previous one. I don't understand the syntax, the manual calls this "metasearch":

Non_OT_GX_L = gmx_l.INBOX:match_field('List-Id', 'users.lists.opensuse.org')

Looking on https://github.com/lefcha/imapfilter/blob/master/samples/config.lua, perhaps this:

Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id', '<users.lists.opensuse.org>') *
gmx_l.INBOX:match_field('List-Id', '.*users.lists.opensuse.org.*') *
gmx_l.INBOX:is_older(2)

Non_OT_GX_L:move_messages(gmx_l['temp_g'])

I'm going to try.

[...]

I think it is peeking on the entire mailbox, not on the result of the "contain_field" search:

C (7): 1016 SELECT "INBOX"
S (7): 1016 OK [READ-WRITE] SELECT completed
C (7): 1017 UID SEARCH ALL HEADER List-Id "<users.lists.opensuse.org>"
S (7): 1017 OK UID SEARCH completed
C (7): 1018 UID SEARCH ALL
S (7): 1018 OK UID SEARCH completed
C (7): 1019 UID FETCH 138431 BODY.PEEK[HEADER.FIELDS (List-Id)]
S (7): 1019 OK UID FETCH completed
C (7): 101A UID FETCH 138767 BODY.PEEK[HEADER.FIELDS (List-Id)]
S (7): 101A OK UID FETCH completed
C (7): 101B UID FETCH 139261 BODY.PEEK[HEADER.FIELDS (List-Id)]
S (7): 101B OK UID FETCH completed
C (7): 101C UID FETCH 139337 BODY.PEEK[HEADER.FIELDS (List-Id)]
....
C (7): 159B UID FETCH 172156 BODY.PEEK[HEADER.FIELDS (List-Id)]
S (7): 159B OK UID FETCH completed
C (7): 159C UID FETCH 172158 BODY.PEEK[HEADER.FIELDS (List-Id)]
S (7): 159C OK UID FETCH completed
....
C (7): 2C27 UID SEARCH ALL BEFORE 20-Mar-2024
S (7): 2C27 OK UID SEARCH completed
C (7): 2C28 UID COPY 186071:186097,186099,186101:186102,186107:186112,... "temp_g"
S (7): 2C28 OK [COPYUID 1629482218 186071:186097,186099,186101:186102,186107:186112,... 63577:63696] UID COPY completed
C (7): 2C29 UID STORE 186071:186097,186099,186101:186102,186107:186112,... +FLAGS.SILENT (\Deleted)
S (7): 2C29 OK UID STORE completed
C (7): 2C2A EXPUNGE
S (7): 2C2A OK EXPUNGE completed
120 messages moved from robin.listas@gmx.es@imap.gmx.com/INBOX to robin.listas@gmx.es@imap.gmx.com/temp_g.
C (7): 2C2B LOGOUT
S (7): 2C2B OK LOGOUT completed
C (6): 2C2C LOGOUT
imapfilter: writing data through SSL; Connection reset by peer
C (5): 2C2C LOGOUT
S (5): 2C2C OK 73 good day (Success)

real 15m51.398s
user 0m4.003s
sys 0m1.929s
cer@Isengard:~/.imapfilter>

This time the result is correct.

But I need to optimize the process, not to download and scan the entire folder, but only those messages that matched the first search on the server, the one done by contain_field(...)

(assuming that the remote search does find the correct messages, plus more, not leaving matching messages out)

> Excuse the HTML, I need the long lines :)

No problem :-)

There is an add-on on thunderbird that toggles wrap off, I'm using it in this post ;-)

Toggle Line Wrap
Toggle line wrapping in the message composition window.

Author Jan Kiszka

Permissions

Required permissions for core functionality:

Have full, unrestricted access to Thunderbird, and your computer

The permissions are a bit invasive, though. The notes explain why:

Note that this add-on requires an WebExtension Experiment API, thus will request "full access" on installation.

--
Cheers, Carlos.

Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

<shr1dkx2m1.ln2@Telcontar.valinor>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3794&group=alt.comp.software.thunderbird#3794

  copy link   Newsgroups: alt.comp.software.thunderbird
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.comp.software.thunderbird
Subject: Re: Question about imapfilter [Was: How can I create a filter on the
gmail/spam folder?]
Date: Sat, 23 Mar 2024 03:31:56 +0100
Lines: 77
Message-ID: <shr1dkx2m1.ln2@Telcontar.valinor>
References: <kf716kxhce.ln2@Telcontar.valinor> <ka746k-kc32.ln1@spock.lan>
<ejqtckxduv.ln2@Telcontar.valinor> <6gduckx5ic.ln2@Telcontar.valinor>
<lahvck-0ak1.ln1@spock.lan> <0h91dkxbem.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net eL2onHovAEKne/XLRGX3QAx+7O6gT+NaDY6GFFwcZMLoL2PqaT
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:6rd8NvgdF8gtV9Zb4VKCOuvAE38= sha256:RrkzELas0L6/GmLwSRwfq/DdPooaqTbk0XCma5y00ms=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <0h91dkxbem.ln2@Telcontar.valinor>
 by: Carlos E.R. - Sat, 23 Mar 2024 02:31 UTC

On 2024-03-22 22:24, Carlos E.R. wrote:
> On 2024-03-22 06:25, dillinger wrote:
>> On 21-03-2024 20:13, Carlos E.R. wrote:

>
> This time the result is correct.
>
> But I need to optimize the process, not to download and scan the entire
> folder, but only those messages that matched the first search on the
> server, the one done by contain_field(...)
>
> (assuming that the remote search does find the correct messages, plus
> more, not leaving matching messages out)

Got it!

Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id', '<users.lists.opensuse.org>') *
gmx_l.INBOX:is_older(2)

New_Non_OT_GX_L = Non_OT_GX_L:match_field('List-Id', '.*users.lists.opensuse.org.*')

New_Non_OT_GX_L:move_messages(gmx_l['temp_g'])

This does work, runs in 28 seconds and gets 136 (correct) messages.

Now changing to the complete rule:

Non_OT_GX_L = ( gmx_l.INBOX:contain_field('List-Id', '<security.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<gnome.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<translation.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<virtual.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<kde.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<kde3.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<test.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<kernel.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<users-es.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<users.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<announce.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<security-announce.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<factory.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<support.lists.opensuse.org>') +
gmx_l.INBOX:contain_field('List-Id', '<project.lists.opensuse.org>') ) *
gmx_l.INBOX:is_older(2)

New_Non_OT_GX_L = Non_OT_GX_L:match_field('List-Id', '.*security.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*gnome.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*translation.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*virtual.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*kde.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*kde3.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*test.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*kernel.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*users-es.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*users.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*announce.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*security-announce.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*factory.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*support.lists.opensuse.org.*') +
Non_OT_GX_L:match_field('List-Id', '.*project.lists.opensuse.org.*')

New_Non_OT_GX_L:move_messages(gmx_l['temp_g'])

Tested and does the job, so activating the cronjob every 6 hours :-)

Thank you!

--
Cheers, Carlos.

Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

<kai2dk-cle.ln1@spock.lan>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3796&group=alt.comp.software.thunderbird#3796

  copy link   Newsgroups: alt.comp.software.thunderbird
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: dillinger@invalid.not (dillinger)
Newsgroups: alt.comp.software.thunderbird
Subject: Re: Question about imapfilter [Was: How can I create a filter on the
gmail/spam folder?]
Date: Sat, 23 Mar 2024 10:00:36 +0100
Organization: To protect and to server
Message-ID: <kai2dk-cle.ln1@spock.lan>
References: <kf716kxhce.ln2@Telcontar.valinor> <ka746k-kc32.ln1@spock.lan>
<ejqtckxduv.ln2@Telcontar.valinor> <6gduckx5ic.ln2@Telcontar.valinor>
<lahvck-0ak1.ln1@spock.lan> <0h91dkxbem.ln2@Telcontar.valinor>
<shr1dkx2m1.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Info: paganini.bofh.team; logging-data="2695000"; posting-host="mY9gQjL+Am3ZXxmvOT5Exg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: Mozilla Thunderbird
X-Notice: Filtered by postfilter v. 0.9.3
Content-Language: en-US
 by: dillinger - Sat, 23 Mar 2024 09:00 UTC

On 23/03/2024 03:31, Carlos E.R. wrote:
> Got it!
>
> Non_OT_GX_L = gmx_l.INBOX:contain_field('List-Id',
> '<users.lists.opensuse.org>') *
>               gmx_l.INBOX:is_older(2)
>
> New_Non_OT_GX_L = Non_OT_GX_L:match_field('List-Id',
> '.*users.lists.opensuse.org.*')
>
> New_Non_OT_GX_L:move_messages(gmx_l['temp_g'])
>              This does work, runs in 28 seconds and gets 136 (correct)
> messages.
>
>
> Now changing to the complete rule:
>
> Non_OT_GX_L = ( gmx_l.INBOX:contain_field('List-Id',
> '<security.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<gnome.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<translation.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<virtual.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<kde.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<kde3.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<test.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<kernel.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<users-es.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<users.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<announce.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<security-announce.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<factory.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<support.lists.opensuse.org>') +
>                 gmx_l.INBOX:contain_field('List-Id',
> '<project.lists.opensuse.org>') ) *
>            gmx_l.INBOX:is_older(2)
>
> New_Non_OT_GX_L = Non_OT_GX_L:match_field('List-Id',
> '.*security.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*gnome.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*translation.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*virtual.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*kde.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*kde3.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*test.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*kernel.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*users-es.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*users.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*announce.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*security-announce.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*factory.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*support.lists.opensuse.org.*') +
>                   Non_OT_GX_L:match_field('List-Id',
> '.*project.lists.opensuse.org.*')
>
> New_Non_OT_GX_L:move_messages(gmx_l['temp_g'])
>
>
>
> Tested and does the job, so activating the cronjob every 6 hours 🙂
>
>
>
> Thank you!
Are there suse lists you don't want to move?
If not, just
Non_OT_GX_L:match_field('List-Id', '.*lists.opensuse.org')
should work too.

If there are more lists and you only want to move these you can put them
on one line like this:
Non_OT_GX_L:match_field('List-Id',
'(gnome|translation|virtual|kde|kde3|test|kernel|users|users-es|announce|factory|support|project).lists.opensuse.org')
match_field is regex, after all :)
I don't think the .* at the beginning and the end are necessary, plus
they are very expensive, especially the one at the beginning, just try
it at regex101.com
security-announce is covered by announce

Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

<qcv2dkxu87.ln2@Telcontar.valinor>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3797&group=alt.comp.software.thunderbird#3797

  copy link   Newsgroups: alt.comp.software.thunderbird
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.comp.software.thunderbird
Subject: Re: Question about imapfilter [Was: How can I create a filter on the
gmail/spam folder?]
Date: Sat, 23 Mar 2024 13:43:38 +0100
Lines: 50
Message-ID: <qcv2dkxu87.ln2@Telcontar.valinor>
References: <kf716kxhce.ln2@Telcontar.valinor> <ka746k-kc32.ln1@spock.lan>
<ejqtckxduv.ln2@Telcontar.valinor> <6gduckx5ic.ln2@Telcontar.valinor>
<lahvck-0ak1.ln1@spock.lan> <0h91dkxbem.ln2@Telcontar.valinor>
<shr1dkx2m1.ln2@Telcontar.valinor> <kai2dk-cle.ln1@spock.lan>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net hYnVt7i0edMm1z2CdUrfhwTR1u/FQs7hb4JB7pHp4hMNIuunI3
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:3t0q/Qb6s2R21zFq7Ye0PjmW5G4= sha256:IpPp0hil+ObeJeZnx2s+gAzYgLJ/qP3jseAPwxhJxUU=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <kai2dk-cle.ln1@spock.lan>
 by: Carlos E.R. - Sat, 23 Mar 2024 12:43 UTC

On 2024-03-23 10:00, dillinger wrote:
> On 23/03/2024 03:31, Carlos E.R. wrote:
>> Got it!

....

>
> Are there suse lists you don't want to move?
>
> If not, just
>
> Non_OT_GX_L:match_field('List-Id', '.*lists.opensuse.org')
>
> should work too.

Yeah, I thought of that. Will do, eventually. For the moment, I was stuck on the non working part, optimizations later :-)

Ok, I have written:

New_Non_OT_GX_L = Non_OT_GX_L:match_field('List-Id', '.*\.lists\.opensuse\.org.*')

(tested at https://regex101.com/ - nice site!

> If there are more lists and you only want to move these you can put them
> on one line like this:
>
> Non_OT_GX_L:match_field('List-Id',
> '(gnome|translation|virtual|kde|kde3|test|kernel|users|users-es|announce|factory|support|project).lists.opensuse.org')
>
> match_field is regex, after all :)

You are right, too.

>
> I don't think the .* at the beginning and the end are necessary, plus
> they are very expensive, especially the one at the beginning, just try
> it at regex101.com

I did not have them initially, did not work. There is more text in the actual header.

>
> security-announce is covered by announce

--
Cheers, Carlos.


computers / alt.comp.software.thunderbird / Re: Question about imapfilter [Was: How can I create a filter on the gmail/spam folder?]

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor