ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Алексей Синицын" <asinitsinster@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] KMail filter help
Date: Sun, 13 Apr 2008 21:28:49 +0400
Message-ID: <a1b0b2150804131028nb4e8fd5ybc167dfd65fcbbf6@mail.gmail.com> (raw)
In-Reply-To: <fttf36$ip7$1@ger.gmane.org>

13.04.08, Yurkovsky Andrey<anyr@tut.by> написал(а):
> Мне хотелось бы сохранять отчеты о расходах от провайдера приходящие на
>  e-mail в файл. Для этих целей я собирался сделать скрипт затем фильтр в
>  почтовике "Пропустить через конвейер". Пока у меня на выходе получается
>  только пустой файл. Содержимое скрипта такое:
>
>  #!/bin/bash
>  LOCATION="/mnt/main/lib/finance/internet"
>  FLINE=`cat $1|grep -i -n \<html\>|head -c 2`
>  ELINE=`cat $1|grep -i -n \</html\>|head -c 2`
>  TDATA=`cat $1|grep -A $(echo $[$ELINE-$FLINE]) \<html\>`
>  echo $TDATA|iconv -f koi8-r -t cp1251 >\
>  $LOCATION/server-`date '+%d-%m-%y'`.html
>
>  Если скрипту подсунуть сохраненное письмо, то все получается как надо, а
>  через фильтр - нет. Что я делаю не так, подскажите.
>
>

Если вместо
script mail
указать
echo script mail > ~/testfile.txt
то в файле будет ожидаемая команда?

  reply	other threads:[~2008-04-13 17:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13 17:15 Yurkovsky Andrey
2008-04-13 17:28 ` Алексей Синицын [this message]
2008-04-14 12:25   ` Yurkovsky Andrey
2008-04-14 12:51     ` Алексей Синицын
2008-04-13 18:39 ` Alexander Yereschenko
2008-04-14 12:34   ` Yurkovsky Andrey
2008-04-14 13:01     ` Alexander Yereschenko
2008-04-14 18:08       ` Yurkovsky Andrey
2008-04-15  8:57         ` Андрей Черепанов
2008-04-15 11:46           ` Yurkovsky Andrey
2008-04-15 12:08             ` Serge
2008-04-15 12:41             ` Андрей Черепанов
2008-04-15 12:56               ` Yurkovsky Andrey
2008-04-15 14:15                 ` Michael Shigorin

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=a1b0b2150804131028nb4e8fd5ybc167dfd65fcbbf6@mail.gmail.com \
    --to=asinitsinster@gmail.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