ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@tangramltd.com>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Сортировка рассылок с помощью sieve
Date: Tue, 24 Apr 2007 15:42:59 +0300
Message-ID: <462DFB53.4030307@tangramltd.com> (raw)
In-Reply-To: <462DF91D.6090405@parkheights.dyndns.org>

[-- Attachment #1: Type: text/plain, Size: 2748 bytes --]

sergey ivanov пишет:
> Slava Dubrovskiy wrote:
>   
>> Нет, соль именно в том, чтобы не прописывать на каждую рассылку своё
>> правило, а одно правило на все рассылки.
>>     
> У меня так было настроено раньше, когда я совместно с dovecot'ом
> использовал maildrop от courier'а.
> Там значение имени папки, в которую класть письмо, создавалось из поля
> List-Id заменой точек на знаки минус (например
> community-lists-altlinux-org) и дальше через точку, чтобы создать
> вложенные папки, год и номер месяца. Приходилось ещё создавать в этом
> скрипте папки если они не существуют. И дописывать папку в список папок
> на которые я подписан (subscribed).
>   
Да, так и хочу.
> Однако сейчас я, в силу того что сам собирал для Сизифа, dovecot-sieve,
> сортирую почту с его помощью. И могу сказать, что сам не обнаружил в
> dovecot'ской реализации sieve возможностей использовать часть поля
> header'а для имени папки.
Да, я вот тоже вижу что можно сделать вот так:

require ["fileinto", "regex", "variables"];

   if header :regex "List-ID" "<(.*)@" {
       fileinto "lists.${1}"; stop;
   }

Но dovecot-sieve не поддерживает расширение variables в связи с чем 
такое правило использовать нельзя.  :'(
>  Так что сам написал все правила для всех
> списков на которые подписан.
> Ну и нашёл что так мне даже в чём-то лучше: если приходит спам с List-Id
> внутри, то он не создаёт новых папок, которые я могу и просмотреть, не
> заметить. Ну или списки рассылки которые мне больше не нужны, - тоже
> легче всё видеть.
> И ещё в отличие от maildrop - sieve сам создаёт почтовые папки, по
> крайней мере его dovecot'ская реализация.
>   
У меня как раз стоит задача сортировать автоматизированно...

-- 
WBR,
Dubrovskiy Vyacheslav


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3249 bytes --]

  reply	other threads:[~2007-04-24 12:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24 10:53 Slava Dubrovskiy
2007-04-24 10:57 ` Slava Dubrovskiy
2007-04-24 10:59 ` Dmitriy L. Kruglikov
2007-04-24 11:03   ` Slava Dubrovskiy
2007-04-24 11:10     ` Dmitriy L. Kruglikov
2007-04-24 12:33     ` sergey ivanov
2007-04-24 12:42       ` Slava Dubrovskiy [this message]
2007-04-24 12:54         ` Slava Dubrovskiy
2007-04-24 22:37           ` Sergey
2007-04-25  8:49             ` Slava Dubrovskiy
2007-04-25 12:39             ` Slava Dubrovskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=462DFB53.4030307@tangramltd.com \
    --to=slava@tangramltd.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git