ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <ab@avilink.net>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: [mdk-re] день сурка
Date: Sat May 12 18:11:01 2001
Message-ID: <20010512171223.A6580@boids.avilink.net> (raw)
In-Reply-To: <20010512190746.4bbb79c6.is13@inbox.ru>; from is13@inbox.ru on Sat, May 12, 2001 at 07:07:46PM +0600

On Sat, May 12, 2001 at 07:07:46PM +0600, Igor Solovyov wrote:
> Hi All!
> 
> Это только мне приехало около 80 писем из 2000 года?
> Я даже на одно из них машинально ответил. :-)))
> 
> Чудеса какие-то! 
День Сурка, или в русском варианте "Зеркало для героя", событие сугубо
индивидуальное. :-) По крайней мере, моей почты это не коснулось. Наверно
потому, что у меня procmail всю почту древнее, чем 4 дня назад,
отфильтровывает в архивные ящики, которые для mutt не видны. Если Вы
пользуетесь procmail, попробуйте вставить себе в ~/.procmailrc следующее:

TARGETMAILBOX=$HOME/Mail/current

# Выбор почтового каталога в зависимости от даты письма
:0
*$ ^Date:\/.*
{
  INPUT = $MATCH
  #  Протоколирование здесь желательно отключить

    LETTERDATE=`date --date="$MATCH" +"%s"`
    # Вот дата, с которой сравниваем
    ARCHIVEDATE=`date --date="4 days ago" +"%s"`
    ARCHIVEIT=`echo "$LETTERDATE < $ARCHIVEDATE" | bc`
    
  :0
   * ARCHIVEIT ?? 1
   {
   # Меняем почтовый каталог на архивный
    TARGETMAILBOX=$HOME/Mail/archive
   }
}

А дальше в ~/.procmailrc пишем вместо прямого пути к ящику
что-нибудь вроде:

:0
* ^TO_.*mandrake-russian@
$TARGETMAILBOX/lists/mandrake-russian

И вуаля -- имеем два каталога -- один с архивом, второй -- с текущей
почтой. Можно раз в неделю запускать по Cron скрипт для перелопачивания
текущей почты, она, проходя через procmail, будет архивироваться
автоматически, согласно указанному правилу.

День Сурка будет всего-лишь обычным днем :-)
-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project    | ALT  Linux  Team | Minsk Linux Users Group
 www.midgard-project.org | www.altlinux.ru  |    www.minsk-lug.net 
-- You won't skid if you stay in a rut.
		-- Frank Hubbard



  reply	other threads:[~2001-05-12 18:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-12 17:03 Igor Solovyov
2001-05-12 18:11 ` Alexander Bokovoy [this message]
2001-05-12 19:06 ` [mdk-re] " Dima
2001-05-12 19:35   ` Aleksey Novodvorsky
2001-05-12 22:45     ` Igor Solovyov
2001-05-12 22:50       ` Sergey Vlasov
2001-05-13 16:04         ` Michael Bykov
2001-05-14 11:28           ` Alex
2001-05-14  0:00         ` cornet
2001-05-12 23:28 ` [mdk-re] ÄÅÎØ ÓÕÒËÁ ÷ÁÄÉÍ éÌÌÁÒÉÏÎÏ×

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=20010512171223.A6580@boids.avilink.net \
    --to=ab@avilink.net \
    --cc=mandrake-russian@altlinux.ru \
    /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