Re: Conditional macro?

2018-12-07 Thread Michael Wagner
On Dec 07, 2018 at 09:57:38, Kevin J. McCarthy wrote:
> On Fri, Dec 07, 2018 at 03:47:05PM +0100, Michael Wagner wrote:
> > I have tested this and when I change the folder the error message is
> > 
> > .: unknown command
> 
> You'll need to use the push command to execute functions inside a folder
> hook:
>  http://www.mutt.org/doc/manual/#push
> 
> However, the push command is a bit tricky in this case.  The pushed functions
> (e.g., ) aren't run immediately: they are stored up and run *after* all
> the folder-hooks are done.
> 
> They are stored up in a "stack", like a stack of plates.  Each new push adds a
> "plate" (i.e. function), to the top of the stack.
> 
> Then, after the folder-hooks have all run, the functions are executed one by
> one starting with the top "plate".
> 
> To summarize, the *folder-hooks* are run in the order they occur in your
> muttrc.  But if those hooks use the push command, the pushed *functions* end
> up being run in reverse order (because the last function pushed is on the top
> of the stack).
> 
> This example is fine, because the "." folder-hook runs first setting the
> default macro.  The override for "All Mail" runs second and will overwrite the
> first macro:
> 
># In most folders, pressing L limits to new messages
>folder-hook . "macro index L '~N'"
> 
># In [Gmail]/All Mail, pressing L limits to unread messages
>folder-hook '^\[Gmail\]\/All Mail$' "macro index L '~U'"
> 
> 
> However, in this case I have reversed the order of the folder hooks:
> 
># In [Gmail]/All Mail, show only unread messages
>folder-hook '^\[Gmail\]\/All Mail$' "push ~U"
> 
># By default, show all messages
>folder-hook . "push ~A"
> 
> The push command is run immediately, but the string it pushes is run *after*
> all the folder-hooks finish.  So in the case, you would want the default
> "." to be run first.  Then for "All Mail" you would want the
> "~U" to be run afterwards.
> 
> Sorry for the long post, but I hope that helps a rather confusing topic.
> 

Hello Kevin,

thanks for the expantation, now I got it.

Michael

-- 
BOFH excuse #229:

wrong polarity of neutron flow


Re: Conditional macro?

2018-12-07 Thread Michael Wagner
On Dec 06, 2018 at 11:30:52, Paul Hoffman wrote:
> On Thu, Dec 06, 2018 at 05:16:09PM +0200, Alex Sa wrote:
> > Is it possible to set up a macro that would behave differently
> > dependent on the current folder?
> 
> Or, if you just want to limit what's shown when you enter a folder, this 
> might work:
> 
> # By default, show all messages
> folder-hook . "."
> 
> # In [Gmail]/All Mail, show only unread messages
> folder-hook '^\[Gmail\]\/All Mail$' "~U"
Hello Paul,

I have tested this and when I change the folder the error message is

.: unknown command

Is there another variable that I must set?

Tia Michael

-- 
Old MacDonald had a computer with an EIE I/O


Re: throw away signature in reply

2018-09-17 Thread Michael Wagner
On Sep 16, 2018 at 20:11:32, Michael Tatge wrote:
> * On Sat, Sep 15, 2018 01:26PM +0200 Michael Wagner (wagner_m_bre...@web.de) 
> muttered:
> > I edit my mails here in mutt with vim. When I reply to a message I don't 
> > want to delete the signature from the original poster by myself.
> 
> I do this in vim.
> 
> " strip quoted signature
> autocmd BufRead ~/tmp/mutt* execute 'silent g/^> --\s\=$/,/^$/-1d'
> 
>  ^ or whatever your $TMPDIR is
 
Hello Michael,

thanks for this snippet.

-- 
You have two choices for dinner: Take it or Leave it.


throw away signature in reply

2018-09-15 Thread Michael Wagner
Hello folks,

I edit my mails here in mutt with vim. When I reply to a message I don't 
want to delete the signature from the original poster by myself. Can this 
be done in mutt or must it be done in vim.

TIA Michael

-- 
BOFH excuse #338:
old inkjet cartridges emanate barium-based fumes


signature.asc
Description: PGP signature


Re: smtps://smtp.office365.com:587 CONNECT_CR_SRVR_HELLO:wrong version number

2018-08-08 Thread Michael Wagner
On Aug 08, 2018 at 12:44:00, Roman Neuhauser wrote:
> hello,
> 
> i'm having trouble setting up mutt for SMTP submission to office365.com.
> the error message is:
> 
>   SSL failed: error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version 
> number
> 
> my configuration is:
> 
>   set my_addr = "roman.neuhauser@..."
>   set my_pass = "..."
> 
>   set smtp_url = "smtps://$my_a...@smtp.office365.com:587"
>   set smtp_pass = "$my_pass"
> 
> the IMAP(S) side of things works.
> 
> BTW, `openssl s_client -starttls smtp -connect smtp.office365.com:587`
> on the same machine gives me the following output:

Hello Roman,

Set

set smtp_url = "smtp://$my_a...@smtp.office365.com:587"

in your .muttrc

Hth Michael

-- 
BOFH excuse #85:
Windows 95 undocumented "feature"


signature.asc
Description: PGP signature


Re: spam feature in mutt

2018-07-20 Thread Michael Wagner
On Jul 20, 2018 um 16:50:42, Ralf Hildebrandt wrote:
> I'm using 
> 
> spam "^X-Spam: Yes" "SPAM"
> set index_format="%H %4C %Z %D %-15.15L %s"
> 
> to display spammy mails in the index. But how can I tag those spammy
> mails? Which pattern do I have to use?

Hello Ralf,

from the mutt manual:

3.1. Pattern Modifier

Many of Mutt's commands allow you to specify a pattern to match (limit,
tag-pattern, delete-pattern, etc.). Table 4.4, “Pattern modifiers” shows
several ways to select messages.

Table 4.4. Pattern modifiers

.

~H EXPR   │messages with a spam attribute matching EXPR

.

Hth Michael



signature.asc
Description: PGP signature


IMAP folders in sidebar

2018-07-16 Thread Michael Wagner
Hello folks,

is it possible in mutt to display the mailboxes in the sidebar another 
way as to define every mailbox with the "mailboxes" command?

I have here at home a dovecot Server, fetch my mails with fetchmail and 
sort them into mailboxes (Maildir) with procmail.

So every time I subscribe to a new mailinglist, I must make an entry in 
my muttrc. What I want, is when a new mailbox is created, it's shown up 
in the sidebar.

TIA Michael



signature.asc
Description: PGP signature


Re: BCC from the FROM header

2018-06-03 Thread Michael Wagner
* Wim  03.06.2018
> On Sunday, 03 June at 08:29, Michael Wagner wrote:
> 
> > I have a folder called 'privat' in which all the private mails from my 3
> > accounts are collected. When I answer to a mail, I want to write mutt
> > the Bcc with the adress found in the From header, because I want my
> > answers in the same folder. I know folder-hook, but it only works with
> > one mail adress. How can i realize this?
> > 
> > I hope my question is clear enough.
> 
> It might not be quite what you want but I've got both my 'spoolfile' and
> 'record' set to "+Inbox". This means that all sent mails end up in my
> inbox. Hope this helps.

Hello Wim,

it's not exactly what I want, but you pointed me in the rigth direction.
I have now a folder-hook in my folder 'privat', which sets $record to
the same folder. This is at the moment good enough, but I'm looking
further for a solution to save the mail also in folder Sent.

Thank you Michael


signature.asc
Description: PGP signature


BCC from the FROM header

2018-06-03 Thread Michael Wagner
Hello folks,

I have a folder called 'privat' in which all the private mails from my 3
accounts are collected. When I answer to a mail, I want to write mutt
the Bcc with the adress found in the From header, because I want my
answers in the same folder. I know folder-hook, but it only works with
one mail adress. How can i realize this?

I hope my question is clear enough.

TIA Michael



Re: Is Fetchmail still in vogue?

2009-12-22 Thread Michael Wagner
* Mun mjeli...@gmail.com 22.12.2009

2) It appears that 'fetchmailconf' has been obsoleted.  That is, Red
   Hat no longer provides it in there Fetchmail RPM.  Does anyone
   know if there is a replacement?

Hello Mun,

here an my Debian box there is an extra package 'fetchmailconf'. So it's 
possible that Red Hat has also it's own.

Hth Michael

-- 
If you think technology can solve your problems you don't understand
technology and you don't understand your problems.  (Bruce Schneier)


signature.asc
Description: Digital signature


Re: Links in message body.

2009-12-02 Thread Michael Wagner
* Buzzer 4625...@gmail.com 02.12.2009
 Can I make http and ftp links in plain text message body accessible for
 Lynx browser?

Yes, you can use 'urlview' or 'urlscan'.

Package: urlview
Version: 0.9-18.1
Depends: libc6 (= 2.3.4), libncurses5 (= 5.6+20071006-3)
Recommends: elinks | www-browser
Suggests: mutt, ncftp2 | lftp | ncftp, wget | snarf, mimedecode
Description: Extracts URLs from text
 This utility is used to extract URL from text files, especially from mail
 messages in order to launch some browser to view them. This used to be a
 part of mutt but has now become an independent tool.

Package: urlscan
Version: 0.5.6-0.1
Depends: python, python-central (= 0.6), python-urwid
Suggests: mutt, www-browser
Description: Extract and browse the URLs contained in an email (urlview 
replacement)
 urlscan searches for URLs in email messages, then displays a list of
 them in the current terminal.  It is primarily meant as a replacement
 for urlview, which it improves upon in the following ways:
 .
  * urlscan understands email encodings such as quoted-printable;
urlview does not.
  * urlscan extracts and displays the context surrounding each URL.
Python-Version: current

Hth Michael

-- 
The road to success is always under construction.


signature.asc
Description: Digital signature


Re: mutt feeds more to gnupg than it needs, causes invisible/lost

2009-12-02 Thread Michael Wagner
* martin f krafft madd...@madduck.net 29.11.2009
 also sprach David J. Weller-Fahy dave-lists-mutt-us...@weller-fahy.com 
 [2009.11.29.1631 +0100]:
 
 ro this means that your mutt 1.5.20 on Darwin correctly splits the
 message and only passes to gnupg what it must, while our 1.5.20 on
 Debian sid does not. Very strange indeed.

Hello Martin,

JFTR: Today was an upgrade of the 'mutt' package in Debian unstable and 
now it works very well.

Michael

-- 
Death is just God's way of dropping carrier.


signature.asc
Description: Digital signature


Re: mutt feeds more to gnupg than it needs, causes invisible/lost

2009-11-29 Thread Michael Wagner
* martin f krafft madd...@madduck.net 29.11.2009
 also sprach David J. Weller-Fahy dave-lists-mutt-us...@weller-fahy.com 
 [2009.11.28.2236 +0100]:
  * Todd Zullinger t...@pobox.com [2009-11-27 21:07 -0500]:
   If you call check-traditional-pgp on this message, is this text
   lost? It is for me and I would call it a bug.  It might also be
   some subtle difference between our configurations, gpg versions,
   etc.
  
  FWIW I copied your message into ~/test, and then opened it using
  the latest tip, and the following command-line.
  
  #v+
  mutt -n -F usr/share/doc/mutt/samples/gpg.rc -f ~/test
  #v-
  
  I then entered ':exec check-traditional-pgp' in mutt, and viewed
  the message.  The text preceding the digitally signed portion of
  the message was still visible.
 
 If I do the same with mutt from Debian sid (1.5.20 (2009-06-14)),
 then I definitely do not see the unsigned portions.
 
 This *could* be due to gnupg. Do you see the unsigned portions of
 the text if you run
 
   gpg  ~/test

Hello Martin,

I can reproduce this behaviour here on my Debian Sid box too. Also with 
the command above 'gpg  ~/test' I can't see the unsigned part of the 
message. Do you have 'gnupg' or 'gnupg2' installed? I have here:

gpg --version
gpg (GnuPG) 1.4.10

mutt -v
Mutt 1.5.20 (2009-06-14)

@David

What version of gnupg do you have?

When you need more information from me to demarcate this bug, ask. Do 
you think this bug belongs to 'mutt' or to 'gnupg'? 

Hth Michael

-- 
(imagining people keeping their .sigs to four lines)


signature.asc
Description: Digital signature


Re: reply_regexp help to match 'RE :'

2009-11-21 Thread Michael Wagner
* Nicolas KOWALSKI n...@petole.demisel.net 21.11.2009

 Sometimes I receive mail replies with the RE : original subject 
 string as subject. This RE :  is apparently not recognized by the 
 default reply_regexp value, because when I reply to this kind of mail, 
 mutt add another Re:  in front of the subject line; furthermore, the 
 threading is broken.
 
 Instead of the default, I tried to use the following value, by inserting 
 a space just before the [\[ 0-9\]+], but it still does not work:
 
 set reply_regexp=^(re( [\[ 0-9\]+])*|aw):[ \t]*

Hello Nicolas,

I have this in my muttrc and it works:

set reply_regexp=^((re([\[^-][0-9]+\]?)*|aw|antwort|antw|wg):[ \t]*)+

Hth Michael

-- 
Opportunity is missed by most people because it is 
dressed in overal looks like work.-- Thomas A. Edison


signature.asc
Description: Digital signature


Re: Content-Transfer-Encoding: quoted-printable urlview(1)

2009-11-01 Thread Michael Wagner
* Matthias Apitz g...@unixarea.de 31.10.2009
 
 Hello,
 
 I'm receiving mails from a bulletin board forum in form of the
 encoding 'Content-Transfer-Encoding: quoted-printable' and having URLs
 in the body as
 
   This thread is located at:
   
 http://www.ubcbotanicalgarden.org/forums/showthread.php?t=3D47590goto=3D=
   newpost
 
 i.e. the sign '=' is encoded as =3D and the URL is broken, should be in
 the above case:
 
   
 http://www.ubcbotanicalgarden.org/forums/showthread.php?t=47590goto=newpost
 
 Ofc, urlview(1) is unhappy and unable to offer the correct URL to send it
 to the browser. Any idea how to solve this, maybe with putting something
 in from of urlview(1) to pipe through before it goes to this?

Hello Matthias,

in Debian there is a package called 'urlscan'. I think it's better than 
'urlview' because it can also handle messages which are 
quoted-printable. I tested it with links which include the '=3D' and 
without it and it always gaves the same side in my browser.

Package: urlscan
Priority: optional
Maintainer: Daniel Burrows dburr...@debian.org
Version: 0.5.6-0.1
Depends: python, python-central (= 0.6), python-urwid
Suggests: mutt, www-browser
Description: Extract and browse the URLs contained in an email (urlview 
replacement)
 urlscan searches for URLs in email messages, then displays a list of
 them in the current terminal.  It is primarily meant as a replacement
 for urlview, which it improves upon in the following ways:
 .
  * urlscan understands email encodings such as quoted-printable;
urlview does not.
  * urlscan extracts and displays the context surrounding each URL.
Python-Version: current

Here is a part from '/usr/share/doc/urlscan/README':

1) Features

  urlscan parses an  email message passed on standard  input and scans
  it for URLs.   It then displays the URLs and  their context within the
  message, and allows you to choose one or more URLs to send to your Web
  browser.

  Relative to urlview, urlscan has the following additional features:

  (1) Support for emails in quoted-printable and base64 encodings.  No
  more stripping out =40D from URLs by hand!

  (2) The context  of each  URL is provided  along with the  URL.  For
  HTML mails, a crude parser is used to render the HTML into text.

Hth Michael

-- 
The significant problems we face cannot be solved at the 
 same level of thinking we were at when we created them.
 -Albert Einstein


signature.asc
Description: Digital signature


Re: Indexing of mailinglists

2009-10-28 Thread Michael Wagner
* Alex Huth a.h...@tmr.net 28.10.2009
 
 How are you working with mailinglists? when there are a few thousands mails in
 a folder, the indexing till the folder is opened takes some seconds. Is there
 a way to get around that, because it is indexing evwen when there are no new
 mails.

Hello Alex,

I have for this purpose these options in my muttrc:

set header_cache=~/.mutt/cache/headers  
set message_cachedir=~/.mutt/cache/bodies
set message_cache_clean=yes

Look in the manual for explanation.

Hth Michael

-- 
Backups? We doan *NEED* no steenking baX%^~,VbKx NO CARRIER


signature.asc
Description: Digital signature


Re: mailcap application/pgp-signature

2009-10-09 Thread Michael Wagner
* Buzzer 4625...@gmail.com 09.10.2009
  8-Oct-2009 числа в 14:16 часов, ты написал(а) следующее:
 
   For application/pgp-signature type not found record in mailcap file.
   
   set mailcap_path=~/.mailcap
   $ cat ~/.mailcap
   application/pgp-signature; gpg %s
  ^

Hello Buzzer,

one time more. I have this in my muttrc:

set mailcap_path=~/.mutt/mutt.mailcap:~/.mailcap:/etc/mailcap

But in none of these files I have something written with 'pgp' like you.
Test it with your .muttrc and delete the above 'pgp' entry.

Hth Michael

-- 
Microsoft Windows NT/2000, Security, Networking.
 Chose two of the three.  You can't have them all.


signature.asc
Description: Digital signature


Re: mailcap application/pgp-signature

2009-10-08 Thread Michael Wagner
* Buzzer 4625...@gmail.com 08.10.2009
 For application/pgp-signature type not found record in mailcap file.
 
 set mailcap_path=~/.mailcap
 $ cat ~/.mailcap
 application/pgp-signature; gpg %s

Hello Buzzer,

I have my gpg stuff in my muttrc. Here it is from Debians 
/etc/Muttrc.d/gpg.rc
Sorry for the long lines.

# GnuPG configuration
set pgp_decode_command=gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose 
--quiet --batch --output - %f
set pgp_verify_command=gpg --status-fd=2 --no-verbose --quiet --batch --output 
- --verify %s %f
set pgp_decrypt_command=gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose 
--quiet --batch --output - %f
set pgp_sign_command=gpg --no-verbose --batch --quiet --output - 
%?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f
set pgp_clearsign_command=gpg --no-verbose --batch --quiet --output - 
%?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f
set pgp_encrypt_only_command=/usr/lib/mutt/pgpewrap gpg --batch --quiet 
--no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- 
%f
set pgp_encrypt_sign_command=/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? 
--batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? 
--armor --always-trust -- -r %r -- %f
set pgp_import_command=gpg --no-verbose --import %f
set pgp_export_command=gpg --no-verbose --export --armor %r
set pgp_verify_key_command=gpg --verbose --batch --fingerprint --check-sigs %r
set pgp_list_pubring_command=gpg --no-verbose --batch --quiet --with-colons 
--list-keys %r
set pgp_list_secring_command=gpg --no-verbose --batch --quiet --with-colons 
--list-secret-keys %r
set pgp_good_sign=^\\[GNUPG:\\] GOODSIG

Hth Michael

-- 
... All the world's a stage, and I missed rehearsal.


signature.asc
Description: Digital signature


Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread Michael Wagner
* Wu, Yue vano...@gmail.com 24.09.2009
 On Wed, Sep 23, 2009 at 06:09:38PM +0200, Michael Wagner wrote:
 
  the version at http://www.mutt.org/doc/devel/manual.txt.gz is a gzipped 
  file. I've downloaded it for testing and everything is allright with the 
  it. Also when I visited the side with different text browsers, they 
  showed me all the correct file.
  
  What browser do you use?
 
 I'm using opera 10.0 for FreeBSD.
 
 y...@bsd ~/gtd/stuff  gzip -tv manual.txt.gz
 gzip: manual.txt.gz: not in gzip format
 manual.txt.gz:NOT OK
 
 y...@bsd ~/gtd/stuff  gzip --version
 FreeBSD gzip 20090621
 
 I'm curious why not just use `tar jcvf manul.txt.bz2 manual.txt`?

Hello Wu,

I don't understand it. Here is all ok.

mich...@workstation tty2:~$ wget http://www.mutt.org/doc/devel/manual.txt.gz

mich...@workstation tty2:~$ file manual.txt.gz 
manual.txt.gz: gzip compressed data, was manual.txt, from Unix,
last modified: Sun Jul  5 00:12:55 2009, max compression

mich...@workstation tty2:~$ gzip -tv manual.txt.gz
manual.txt.gz:   OK

Is it possible that 'opera' does an offending download? Download it one 
more time with 'wget' and look what happen. Sorry, when this will give 
you not the correct file, I have no idea what to do more. But I can send 
you the manual with email. Write to me, if you want it this way.

Michael

-- 
Nowhere you can be that isn't where you were meant to be. It's easy.
   -- John Lennon


signature.asc
Description: Digital signature


Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-23 Thread Michael Wagner
* Wu, Yue vano...@gmail.com 23.09.2009
 In mutt offical site, the documentation for devel version:
 
 text version: http://www.mutt.org/doc/devel/manual.txt
 
 is an uncompleted version, which just give a table of contents and the first
 chapter.
 
 text gzipped version: http://www.mutt.org/doc/devel/manual.txt.gz
 
 isn't a gzipped version actually, I can't gunzip with it.

Hello Wu,

the version at http://www.mutt.org/doc/devel/manual.txt.gz is a gzipped 
file. I've downloaded it for testing and everything is allright with the 
it. Also when I visited the side with different text browsers, they 
showed me all the correct file.

What browser do you use?

Hth Michael

-- 
Having more money does not insure happiness. People with ten million
dollars are no happier than people with nine million dollars.
-Hobart Brown


signature.asc
Description: Digital signature


Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-23 Thread Michael Wagner
* Gary Johnson garyj...@spocom.com 23.09.2009
 On 2009-09-23, Michael Wagner wrote:
  * Wu, Yue vano...@gmail.com 23.09.2009
   In mutt offical site, the documentation for devel version:
   
   text version: http://www.mutt.org/doc/devel/manual.txt
   
   is an uncompleted version, which just give a table of contents and the 
   first
   chapter.
   
   text gzipped version: http://www.mutt.org/doc/devel/manual.txt.gz
   
   isn't a gzipped version actually, I can't gunzip with it.
  
  Hello Wu,
  
  the version at http://www.mutt.org/doc/devel/manual.txt.gz is a gzipped 
  file. I've downloaded it for testing and everything is allright with the 
  it. Also when I visited the side with different text browsers, they 
  showed me all the correct file.
  
  What browser do you use?
 
 FWIW, I get the same, truncated results that Wu Yue reported from
 http://www.mutt.org/doc/devel/manual.txt using w3m and Firefox on
 different computers with different routes to the Internet.  The last
 line is
 
Mutt is Copyright

 I didn't check the .gz file.

Hello Gary,

but I spoke only from the .gz file. The other file is here also only the 
table of contents and the first chapter.

Michael

-- 
An eye for an eye will only make the entire world blind.
   --Mohandas Karamchand Gandhi


signature.asc
Description: Digital signature


Re: Word wrapping

2009-04-15 Thread Michael Wagner
* J. Limon jli...@eml.cc 15.04.2009
 On Wed, Apr 15, 2009 at 09:23:29AM +0200, Michael Maurer wrote:
 
  Or you could both use urlview and put something like this in your
  .muttrc:
  
  macro index,pager \Cb :set pipe_decode\n|urlview\n:unset pipe_decode\n
  
  -- 
  Hey I look like Jesus, can I have your money plz?
  http://michaelmaurer.net/archives/2009/04/14/hey_i_look_like_jesus_can_i_have_your_money_plz/index.html
 
 
 It's just not the same, especially for URLs in sigs. Like yours. ;)

I'm not sure if I understand you correctly, but I use here urlscan and 
it can extract the URLs also from signatures like the one above.

Just my 2¢
Michael

-- 
The mind is its own place, and in itself can make a Heav'n of Hell, 
a Hell of Heav'n.
   -John Milton


signature.asc
Description: Digital signature


Re: no list-id header for mutt-u...@mutt.org

2009-04-11 Thread Michael Wagner
* Zhengquan Zhang zhang.zhengq...@gmail.com 12.04.2009
 
 I tried to use lisd-id to filter mutt mailing list in with procmail.
 But I did not find it in mutt mailing list emails.
 
 So how do you filter out mutt mailing list emails?

Hello Zhengquan,

for the mutt-users ML I have the following recipe in my procmailrc:

--+
:0 H: |
* ^List-Post:.*mailto:mutt-users@mutt.org.* |
mutt-users|
--+

Hth Michael

-- 
The UNIX way of Sex:
gunzip-strip-touch-finger-mount-fsck-more-yes-umount-sleep


signature.asc
Description: Digital signature


Re: Where did these headers come from?

2009-03-03 Thread Michael Wagner
* Rem P Roberti remeg...@comcast.net 01.03.2009
 On 2009.03.01 11:08:55 +, Rem P Roberti wrote:
  On 2009.03.01 13:25:40 +, Ed Blackman wrote:
   On Sun, Mar 01, 2009 at 09:41:50AM -0800, Rem P Roberti wrote:
   I installed muttprint a while back, and I'm quite satisfied with its
   performance.  However, I discovered that once I print an email Mutt then
   starts to include every (and I do mean every) header when an email is
   viewed.  A page of headers.  It's as though the 'ignore' statement in
   .muttrc is no longer active.  The only way I can fix the problem is by
   closing and reopening Mutt.  Anyone know what's going on here?
   
   Maybe your macro for muttprint unsets 'weed'?  If you type ':set ?weed' 
   before printing in a new Mutt session, what does Mutt respond with?  
   After printing?
   
   If mutt responds with weed is set before and weed is unset after, 
   that's the problem, and I can think of two solutions.
   
  What you describe is precisely what happens: muttprint unsets 'weed'.
  Since I don't have a dedicated macro for muttprint (I just hit 'p' to
  print), and since hitting 'h' is such an easy solution to toggle back
  weed, I think that I will just stay with that for the time being.  I'm
  pretty new to mutt and muttprint, and haven't explored dedicated macros
  (except for my abook macro).  I will say that that seems like a much
  more elegant solution :)
 
 Whoa. It turns out that there is a macro in my .muttrc.  Here it is:
 
 macro index p display-toggle-weed print-message
 display-toggle-weed exit

Hello Rem,

you can set the headers which you want to print in your 
$HOME/.muttprintrc

I have this in my muttprintrc and mutt prints only these headers.

+
# Choose of the printed headers, separation with _|
# /Header/ : italic printing|
# *Header* : bold printing  |
# If the header does not exist, it is not printed.  |
PRINTED_HEADERS=/Date/_To_From_CC_Newsgroups_*Subject*|
+

Hth Michael

-- 
Kindness is a language which the deaf can hear 
 and the blind can see. 
   --Mark Twain


signature.asc
Description: Digital signature


Re: html mails and umlaute

2009-01-21 Thread Michael Wagner
* Nathan Huesken m...@lonely-star.org 22.01.2009
 
 To view html mails, I have this line in my .mailcap:
 
 text/html; elinks -dump -dump-charset ISO-8859-15 -default-mime-type 
 text/html %s; needsterminal; copiousoutput;
 
 But it does not display Umlaute properly. Since I am german speeking,
 this is kind of anoying. I tried using UTF-8 for encoding, but it did
 not help.  What should I do?

Hello Nathan,

I have this in my mailcap and mutt show me the umlauts.

text/html; elinks -dump -force-html %s; needsterminal; copiousoutput

Mutt 1.5.18 (2008-05-17)

Hth Michael

PS: Please keep your mails at 72 chars, because it's better to read.

-- 
Mary had a little lamb. The doctor was surprised.


signature.asc
Description: Digital signature


Re: New to Mutt

2002-03-09 Thread Michael Wagner

On Fri, Mar 08, 2002 at 03:39:57PM -0800, Busby, Richard wrote:

 I have a RH 7.2 box and am interested in using Mutt. I have it installed,
 but I can't seem to get it to do anything - yet.. I have looked at the man
 page but that really doesn't seem to help me. Can anyone direct me to a good
 new user location?  Thanx

Hello Richard,

have a look at http://www.mutt.org. You can find there useful infos
and also .muttrc of other user, which you can use as pattern. There
are much links to other useful sites.

Hth Michael

-- 
Outside of a dog, a book is man's best friend. Inside of a dog, it is
too dark to read.  (Groucho Marx)



msg25212/pgp0.pgp
Description: PGP signature


Re: Mutt

2002-02-08 Thread Michael Wagner

On Freitag, 08. Feb. 2002 at 16:24:28, Terence Ng wrote:

 I have tried locate muttrc or locate .muttrc, I do not have both
 files in my folder or under root.  The mails I read are always
 marked NEW, and I cannot delete the mails.  What can I do next?

Hello Terence,

you must write your own .muttrc. Look at http://www.mutt.org, there
are much links to muttrcs of other people.

CU Michael

-- 
Real programmers think structured programming is a communist plot.



msg24315/pgp0.pgp
Description: PGP signature


Re: Printer [pos. little OT]

2002-01-22 Thread Michael Wagner

On Dienstag, 22. Jan. 2002 at 09:47:26, Ken Wahl wrote:

 I remember I had the same problem when I first configured printing
 but I don't remember what exactly I did to fix it.  I do remember
 it had to do with the print command itself.  Here's what I have in my
 muttrc that currently works with my HP Office Jet 610:

[settings for the printer in .muttrc]

Hello Ken,

what about the program muttprint. It prints pretty mails and you can
also use it for other mailprograms and newsreaders. You can find it at
freshmeat.net. I don't remember the homepage. There's also a Debian
package, but it is version 0.60 and the current version is 0.61 which
is much better and have a few settings more, especially for
newsreaders like slrn.

CU Michael

-- 
Unix IS user friendly... It's just selective about who its friends are.



msg23593/pgp0.pgp
Description: PGP signature


Re: mailinglist-prefix in index_format

2002-01-19 Thread Michael Wagner

On Freitag, 18. Jan. 2002 at 19:08:45, Hanspeter Roth wrote:
 
 Some mailinglists prefix every subject with the name of the list.
 Is it possible to suppress this prefix in the index_format? How?
 Or is this a case for procmail?
 
Hello Hanspeter,

I have this procmail recipe for the german Debian-user ML. The name
is [EMAIL PROTECTED] and I put this in my .procmailrc:

:0
* ^X-Mailing-List: .*debian-user-de.*
{
SUBJECT=`formail -xSubject: \
| sed -e 's/\(\[\|=5B\)Debian\(\]\|=5D\)\(:\|=3A\)\?[_]\?//g' \
  -e 's/Re: \(Re: \)*/Re: /g'`
:0 fw
| formail -ISubject:$SUBJECT
:0
debian-user-de
}
  
It filters the Debian from the subject and put the mail in the folder
debian-user-de.

Hth Michael

-- 
The revolution will not be televised.



msg23337/pgp0.pgp
Description: PGP signature


Re: A little macros help...

2002-01-12 Thread Michael Wagner

On Samstag, 12. Jan. 2002 at 11:41:30, Benjamin Smith wrote:
 
 (OT: When I reply to traditional PGP posting like this one, I get the
 signature data inserted into the reply, is there any way this can be
 avoided? TIA).
 
Hello Benjamin,

press first ESCP on the mail. Then mutt verifies the signatur and
when you answer mutt won't include the signatur in the reply.

Hth Michael

-- 
This is dag°! Enter on own Risk!  
  [WoKo in dag°]



msg22999/pgp0.pgp
Description: PGP signature


Re: mailcap autoview problem

2002-01-12 Thread Michael Wagner

On Samstag, 12. Jan. 2002 at 14:34:45, Nick Wilson wrote:

 I thought i had it sussed with my .mailcap but alas no. Everytime I
 open a text/html mail I completely fail to launch lynx and get hung with
 a message saying 'invoking /usr/bin/htmlview'
 
 Here is the .mailcap, 
 
 text/html; lynx %s

Hello Nick,

take this:

text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html

Hth Michael

-- 
Life is short and in most cases it ends with death - Sir Sinclair



msg23000/pgp0.pgp
Description: PGP signature


Re: Question regarding tags and saving

2002-01-11 Thread Michael Wagner

On Freitag, 11. Jan. 2002 at 16:11:54, Andreas Krennmair wrote:
 
 Currently, I'm letting my emails time out by adding a folder-hook like
 this one:
 folder-hook =mutt-users 'push T~rw!~F\n\;s=archive/mutt-users\n\n'
 
 But there is one annoying thing I was unable to remove:
 when no messages are tagged (since no old messages are in the folder),
 the message that is currently marked (the horizontal line that you can
 move up and down with the cursor keys) is marked with a 'D'. How can I
 disable this?

Hello Andreas,

search for Message-ID: [EMAIL PROTECTED] here at
mutt-users. I had the same problem and that was the answer. But it was
a patch and until now I didn't had the time to patch my mutt. You can
test it, because it was a patch for BSD. I don't know, if it works for
Linux, but this was the only answer for my question, so I think
there's no other way to solve that problem.

Hth Michael

-- 
There is no reason for any individual to have a computer in their
home.
  -- Ken Olson, President of DEC, World Future Society
 Convention, 1977



msg22936/pgp0.pgp
Description: PGP signature


Re: utf-8 display problem index vs. pager

2002-01-07 Thread Michael Wagner

On Sonntag, 06. Jan. 2002 at 20:53:24, MuttER wrote:
 On Tue, Dec 18, 2001 at 08:30:05PM +0530, Prahlad Vaidyanathan wrote:
  
  mailcap
  text/html; w3m -T text/html %s
  /mailcap
  
  You could also add a 'copiousoutput' at the end of that, and set
  auto_view text/html in your muttrc to put w3m's output into your pager.
  
  pv.
 ---end quoted text---
 
 text/html; w3m -dump -T text/html %s; copiousoutput
 
 above works well for me (using auto_view)

Hello MuttER,

I have this in my mailcap file:

text/html; html2text %s; copiousoutput; nametemplate=%s.html

because the output is much better than this lynx or w3m. Try it.

CU Michael

-- 
If God had intended Man to Watch TV, He would have given him
Rabbit Ears.



msg22515/pgp0.pgp
Description: PGP signature


Re: sentmail and gpg

2002-01-06 Thread Michael Wagner

On Samstag, 05. Jan. 2002 at 23:22:42, David Clarke wrote:
 On Sat, 05 Jan 2002, Markus Boelter wrote:
  How is it possible to store the sent-mail in sent-mail-folder (and
  enrypt it with my own key)?
  
 Howdy,
   Simply done with the encrypt-to option for gnupg.  Just add
 encrypt-to your-keyid to your ~/.gnupg/options, where you replace
 your-keyid with the id of your public key and it will encrypt
 everything with your key as well as the recipients.  That way you can
 read it.

Hello David,

must I put my pub key-id or my sub key-id in ~/.gnupg/options? I'm
not working much with gpg, so I don't no it. I make 

$gpg --list-keys walfinger

and get 2 lines. Must I take the number of the first or the second
line?

Thx in advance
Michael

-- 
I have downloaded ash_0.3.8-13_i386.deb. How can I proceed to install
this package?   P.S. My machine: OS: Windows Advanced Server 2000
 (Alan Wu on debian-user)



msg22410/pgp0.pgp
Description: PGP signature


Re: big mailbox v.s. rotated mailbox; thoughts

2001-12-27 Thread Michael Wagner

On Donnerstag, 27. Dez. 2001 at 18:33:53, Thomas Hurst wrote:
 
 I have a script scan all my mailspools (I use mbox) and move anything
 older than a week to archive/year/mailbox/month-year-mailbox -
 this keeps my active mail easily to hand, and searching for older mail's
 as easy as I need it to be.

Hello Thomas,

I have for this a folder-hook. It looks like this:

folder-hook =mutt-users$ 'push T~r2w!~F\n\;s'

And also I have a save-hook for this:

save-hook ~L mutt-users =Archiv/mutt-users-archiv

The only thing, which does not work correct, is, then I enter the
folder mutt-users and there is no message which is older than 2
weeks, mutt always wants to save the message on which the cursor
stays. How can I change my folder-hook, that mutt don't show such a
behaviour.

CU Michael

PS: Some time ago I also worked with a script which invoked grepmail,
but now I think, it's better to make it with mutt.

-- 
Registred Linux-User: 183712
GnuPG Key: B3F038DC 
GnuPG-fingerprint: 21A7 B384 6629 F320 8AFC  A2B5 4071 E5C3 B3F0 38DC



Re: Euro support in mutt

2001-12-24 Thread Michael Wagner

On Montag, 24. Dez. 2001 at 15:24:13, Alexander Skwar wrote:
 
 I'm having some trouble configuring mutt 1.3.24 to correctly use/encode
 the euro character in outgoing messages.
 
 I've set set charset = iso-8859-15 in my .muttrc.  Now, when I sent
 myself a message, mutt uses utf-8 to encode the message:

Hello Alexander,

you need also the varible send send_charset.

~/.muttrc

set send_charset=us-ascii:iso-8859-1:iso-8859-15:utf-8

In this case mutt tries first us-ascii, then iso-8859-1 and so on.

Hth Michael

-- 
Registred Linux-User: 183712
GnuPG Key: B3F038DC 
GnuPG-fingerprint: 21A7 B384 6629 F320 8AFC  A2B5 4071 E5C3 B3F0 38DC



Re: Mailing list replies

2001-12-17 Thread Michael Wagner

On Sonntag, 16. Dez. 2001 at 12:12:12, Nicolas Rachinsky wrote:

When you are sending mails to an lists address both the list and your
address are in the MFT header, when sending to an subscribed address
only the list address is in the MFT header.

Hello Nicolas,

this is not correct. When you only take the list command, mutt don't
generate a Mail-Followup-To header. With subscribe it will generate
it. When you don't want your adress in the Mail-Followup-To header,
you must have this in your .muttrc:

-snip---
set followup_to
unset metoo
-snip---

In the manual there is in the section 6.3.50. followup_to the
following explanation:

--snip--
Controls whether or not the Mail-Followup-To header field is generated
when sending mail.  When set, Mutt will generate this field when you
are replying to a known mailing list, specified with the ``subscribe''
or lists commands.
--snip--

Hth Michael

-- 
Registred Linux-User: 183712
GnuPG Key: B3F038DC 
GnuPG-fingerprint: 21A7 B384 6629 F320 8AFC  A2B5 4071 E5C3 B3F0 38DC



Re: Mailing list replies

2001-12-16 Thread Michael Wagner

On Sonntag, 16. Dez. 2001 at 10:18:57, Benjamin Smith wrote:

I've never really understood the difference between using 'subscribe' and
'lists' to specify a mailing list. I've just looked in the manual and it
does seems to have anything enlightening in it so, could someone perhaps
clarify it for me?

Hello Benjamin,

from the mutt-help:

---snip---
Additionally, when you send a message to a subscribed list, mutt will
   ^^ 
add a Mail-Followup-To header to tell other users' mail user agents
^ 
not to send copies of replies to your personal address.
---snip---

Hth Michael

-- 
Registred Linux-User: 183712
GnuPG Key: B3F038DC 
GnuPG-fingerprint: 21A7 B384 6629 F320 8AFC  A2B5 4071 E5C3 B3F0 38DC