From: Alexey Tourbin <at@altlinux.ru>
To: devel@altlinux.org
Subject: [devel] Re: mail в скриптах suxx! (was: I: Sisyphus-20050621 unmets: -1 (122/70) [JT])
Date: Sat, 23 Jul 2005 05:01:06 +0400
Message-ID: <20050723010106.GY24898@solemn.turbinal.org> (raw)
In-Reply-To: <20050623062953.GT24580@osdn.org.ua>
[-- Attachment #1: Type: text/plain, Size: 707 bytes --]
On Thu, Jun 23, 2005 at 09:29:53AM +0300, Michael Shigorin wrote:
> On Wed, Jun 22, 2005 at 01:48:48AM +0400, Alexey Tourbin wrote:
> > Есть техническая проблема: письмо отправляется с помощью
> > mail -s "$subj" $mailto <unmets/msg
>
> И как люди не извращаются, чтобы не пользовать mutt...
zmail()
{
local subj="$1"; local file="$2"; shift 2; [ -n "$*" ]
local size; size="$(/usr/lib/rpm/filesize "$file" 1024)"
if [ "$size" -ge 32 ]; then
gzip -9nf "$file"
mutt -x -s "$subj" -a "$file.gz" "$@" </dev/null
elif [ -f signature ]; then
{ echo; cat signature; } |mutt -x \
-s "$subj" -i "$file" "$@"
else
mutt -x -s "$subj" -i "$file" "$@" </dev/null
fi
}
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-07-23 1:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 22:12 [devel] I: Sisyphus-20050621 unmets: -1 (122/70) Alexey M. Tourbin
2005-06-21 20:06 ` [devel] I: Sisyphus-20050621 unmets: -1 (122/70) [JT] Vitaly Lipatov
2005-06-21 21:48 ` [devel] " Alexey Tourbin
2005-06-21 21:53 ` Dmitry V. Levin
2005-06-21 22:54 ` Alexey Tourbin
2005-06-23 4:55 ` Alexey Tourbin
2005-06-23 6:29 ` [devel] mail в скриптах suxx! (was: I: Sisyphus-20050621 unmets: -1 (122/70) [JT]) Michael Shigorin
2005-07-23 1:01 ` Alexey Tourbin [this message]
2005-06-23 6:32 ` [devel] q: sisyphus-stats@? (was: I: Sisyphus-20050621 unmets: -1 (122/70)) 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=20050723010106.GY24898@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=devel@altlinux.org \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git