ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] KMail filter help
@ 2008-04-13 17:15 Yurkovsky Andrey
  2008-04-13 17:28 ` Алексей Синицын
  2008-04-13 18:39 ` Alexander Yereschenko
  0 siblings, 2 replies; 14+ messages in thread
From: Yurkovsky Andrey @ 2008-04-13 17:15 UTC (permalink / raw)
  To: community

Мне хотелось бы сохранять отчеты о расходах от провайдера приходящие на
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

Если скрипту подсунуть сохраненное письмо, то все получается как надо, а
через фильтр - нет. Что я делаю не так, подскажите.
-- 
Yurkovsky Andrey



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-04-15 14:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-13 17:15 [Comm] KMail filter help Yurkovsky Andrey
2008-04-13 17:28 ` Алексей Синицын
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

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