ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim Tyurin <mrkooll@tdr.pibhe.com>
To: ALT Linux general discussion list <community@altlinux.ru>
Subject: Re: [Comm] 4 вопроса по mutt
Date: Wed, 17 Dec 2003 10:16:05 +0200
Message-ID: <20031217081605.GB11495@mrkooll.tdr.pibhe.com> (raw)
In-Reply-To: <20031217053932.GR27085@inferno.immo>

[-- Attachment #1: Type: text/plain, Size: 1538 bytes --]

On Wed, Dec 17, 2003 at 08:39:32AM +0300, Alexey I. Froloff wrote:
> * Andrey Rahmatullin <wrar@altlinux.ru> [031216 22:48]:
> > 1. Как просматривать хтмл-письма в опере и/или елинкс? Причем желательно,
> > чтобы по дефолту было именно links -dump.
> mailcap, читать mutt'овский manual.txt, секция 5.3.
> 
> > 2. Как сделать BAT!-like отсечение подписЕй по тире-тире-пробелу (-- )?
> http://www.vim.org/scripts/script.php?script_id=99
> Это и ещё много-много вкусностей.

Если другим редактором пользуетесь то примерно так:
в muttrc
set editor="/home/mrkooll/scripts/sigkiller.py %s; emacs --eval '(setq default-major-mode '\\''mail-mode)' --eval '(setq make-backup-files nil)' %s"

cat scripts/sigkiller.py                                                                                              [10:15]
#!/usr/bin/env python
# -*- coding: koi8-r -*-
import re, sys
from operator import truth
l = open(sys.argv[1], 'rb').readlines()
l1 = []
reSIG = re.compile('^(>+) -- ');
reQUOT = re.compile('^>');
reEDIT = re.compile('From .*');
if len(l) and truth(reEDIT.match(l[0])):
                    # Это письмо просто редактируется
                    open(sys.argv[1], 'wb').writelines(l);
                    sys.exit(0);
n = 1;
for i in l:
    if n:
        if not truth(reSIG.match(i)):
            l1.append(i);
        else:
            n = 0;
    else:
        if not truth(reQUOT.match(i)):
            l1.append(i);

open(sys.argv[1], 'wb').writelines(l1);

-- 

With Best Regards, Maxim Tyurin
JID:	MrKooll@jabber.pibhe.com
			

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-12-17  8:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16 19:45 Andrey Rahmatullin
2003-12-16 20:58 ` [Comm] " Michael Shigorin
2003-12-17  9:47   ` Andrey Rahmatullin
2003-12-17  5:39 ` [Comm] " Alexey I. Froloff
2003-12-17  8:16   ` Maxim Tyurin [this message]
2003-12-17  9:20   ` [Comm] " Michael Shigorin
2003-12-17 18:06   ` [Comm] " Andrey Rahmatullin
2003-12-18  5:29     ` Alexey I. Froloff
2003-12-18 13:35       ` [Comm] " 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=20031217081605.GB11495@mrkooll.tdr.pibhe.com \
    --to=mrkooll@tdr.pibhe.com \
    --cc=community@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