From: Igor Homyakov <homyakov@ramax.spb.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Подскажите regexp pls
Date: Mon Apr 22 11:58:06 2002
Message-ID: <20020422085928.GA20072@ramax.spb.ru> (raw)
In-Reply-To: <20020422113939.1b89da8d.kosha@kp.ru>
On Mon, Apr 22, 2002 at 11:39:39AM +0400, Korshunov Ilya wrote:
> Mon, 22 Apr 2002 12:37:07 +0400
> Igor Homyakov <homyakov@ramax.spb.ru> Писал:
>
> > On Mon, Apr 22, 2002 at 11:30:46AM +0400, Korshunov Ilya wrote:
> > > Есть такая задачка -
> > > в теле письма с вложеным файлом встречается такая строка
> > > filename="UNKNOWN.rar"
> > > Вопрос - как должен выглядеть regexp который отлавливает такие строки с
> > > отсутсвующими кавычками т.е.
> > > filename=UNKNOWN.rar
> > >
> > у меня в /etc/postfix/bodychecks.pcre написано :
> >
> > /^(Content)?\s+(file)?name="?worm\.zip"?\s?$/i REJECT Virus in your mail
>
> Не понял что делает...не объясните подробнее ?
Дает "от ворот поворот" письмам с вложением worm.zip, проблема в том что
заголовок аттача может иметь разный вид и записываться в одну стоку или в
две, иметь вид filename= или name= и так далее
--
Igor Homyakov
<homyakov(at)ramax.spb.ru>
next prev parent reply other threads:[~2002-04-22 11:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 11:29 Korshunov Ilya
2002-04-22 11:35 ` Igor Homyakov
2002-04-22 11:39 ` Korshunov Ilya
2002-04-22 11:58 ` Igor Homyakov [this message]
2002-04-22 11:41 ` Igor Homyakov
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=20020422085928.GA20072@ramax.spb.ru \
--to=homyakov@ramax.spb.ru \
--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