ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vladimir Lettiev <thecrux@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [devel-announce] ANN: закрытие багов через changelog пакетов
Date: Sat, 11 Apr 2009 01:23:21 +0400
Message-ID: <3b8491740904101423i2c2d49fcxb84e558efc49b857@mail.gmail.com> (raw)
In-Reply-To: <877i1s5uiq.fsf@vertex.dottedmag.net>

10 апреля 2009 г. 20:43 пользователь Mikhail Gusarov <dottedmag@> написал:
>
> Twas brillig at 20:35:11 10.04.2009 UTC+04 when thecrux@ did
> gyre and gimble:
>
>  VL> может реализовать консольный вариант утилиты или прикрутить к
>
> Можно сделать письмом в багзиллу (не только закрытие, а вообще
> манипуляцию багами), только нужно аутентификацию придумать
> (аутентификация через shared secret, которой пользуются girar-builder и
> багзилла, в общем виде небезопасна).
>
> Если у кого есть под рукой скриптик, проверяющий подпись на письме, то
> это прикрутить недолго.

Есть один такой.
В качестве аргумента скрипта - путь к файлу с письмом.

Чтобы проверка прошла успешно необходимо, чтобы в каталог $HOME/.gnupg
были импортированы все ключи, которые будут приниматься.

Пример запуска:

$ LANG=C perl check_mail letter.eml
ID: A26F54C8
E-MAIL: Mikhail Gusarov <dottedmag@altlinux.ru>


---

#!/usr/bin/perl
#
#  check_mail - check mail gpg signature
#

use strict;
use Mail::GnuPG;
use MIME::Parser;

my $parser = new MIME::Parser;
$parser->decode_bodies(0);
my $entity = $parser->parse_open($ARGV[0]);

my $mg = new Mail::GnuPG(keydir=>$ENV{HOME}."/.gnupg");

foreach my $part ($entity, $entity->parts) {
        if ($mg->is_signed($part)) {
                my @ret = $mg->verify($part);
                unless (shift @ret) {
                        printf "ID: %s\nE-MAIL: %s\n",@ret;
                        last;
                }
        }
}
$entity->purge;


-- 
Vladimir Lettiev aka crux <theCrux@gmail.com>

  reply	other threads:[~2009-04-10 21:23 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 22:38 Mikhail Gusarov
2009-04-10  9:25 ` Alexey Morsov
2009-04-10 10:38 ` Sergey V Turchin
2009-04-10 10:43   ` Mikhail Gusarov
2009-04-10 12:32     ` Sergey V Turchin
2009-04-10 12:34       ` Mikhail Gusarov
2009-04-10 13:11         ` Sergey V Turchin
2009-04-10 13:18           ` Mikhail Gusarov
2009-04-10 15:47             ` Sergey V Turchin
2009-04-10 15:49               ` Mikhail Gusarov
2009-04-10 16:03                 ` Grigory Batalov
2009-04-10 16:09                 ` Sergey V Turchin
2009-04-10 16:12                   ` Mikhail Gusarov
2009-04-10 16:35                     ` Sergey V Turchin
2009-04-10 16:35                     ` Vladimir Lettiev
2009-04-10 16:43                       ` Mikhail Gusarov
2009-04-10 21:23                         ` Vladimir Lettiev [this message]
2009-04-11  7:42                           ` Mikhail Gusarov
2009-04-11 13:18                       ` [devel] " Michael Shigorin
2009-04-11 13:29                         ` Dmitry V. Levin
2009-04-11 13:41                           ` 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=3b8491740904101423i2c2d49fcxb84e558efc49b857@mail.gmail.com \
    --to=thecrux@gmail.com \
    --cc=devel@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 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