Re: New mail not found - what to check?

2008-12-19 Thread Peter Münster
On Fri, Dec 19 2008, Chris G wrote:

 Well something funny is going on, the mail *should* be seen as new
 shouldn't it?  :-
 
 chris$ ls -lc --full-time
 total 16
 -rw-r--r-- 1 chris chris 4818 2008-12-19 13:04:01.0 + freewant
 -rw-r--r-- 1 chris chris 7234 2008-12-19 13:04:50.0 + ixion
 chris$ ls -lu --full-time
 total 20
 -rw-r--r-- 1 chris chris 4818 2008-12-19 13:04:01.0 + freewant
 -rw-r--r-- 1 chris chris 7234 2008-12-19 13:04:50.0 + ixion

Hello Chris,

I don't think so. It should be seen as new, if access time is earlier than
modification time, but in your case it's the same time.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: New mail not found - what to check?

2008-12-19 Thread Peter Münster
On Fri, Dec 19 2008, Chris G wrote:
  
 ... but that's what new mail looks like when the mailboxes previously
 weren't there.  Are you saying that mutt will only see new mail if the
 file existed beforehand?

It seems so. You can test it easily with the command touch.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: text/html vs. text/plain attachments priority

2008-11-16 Thread Peter Münster
On Sun, Nov 16 2008, Chris Jones wrote:
 
 are affected), could anyone advise how I can fix that and make mutt
 choose the text/plain version over the text/html version?

You could put something like this in your muttrc:
alternative_order text/plain

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: text/html vs. text/plain attachments priority

2008-11-16 Thread Peter Münster
On Sun, Nov 16 2008, Chris Jones wrote:
 
 alternative_order
 
 .. in my .muttrc is probably not going to be quite as flexible as it
 should be.

Just an example:

# Plain as default:
message-hook ~A 'alternative_order text/plain'

# But not for a special sender:
message-hook '~f [EMAIL PROTECTED]' 'unalternative_order *'

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: Problems with mutt and utf-8, can't talk to itself even!

2008-03-19 Thread Peter Münster
On Wed, Mar 19 2008, Chris G wrote:

 However I can't seem to get mutt set up correctly, if I enter symbols
 like GB pound signs or accented characters in an E-Mail then when I
 view the E-Mail using mutt I see reverse video ? instead of the
 correct characters.

Hello Chris,

Does the terminal use a font for utf8-encoding?
You can test it like this: put a pound sign into a file and be sure, that
this file is utf-8 encoded. Then try cat file in the terminal.

To get the right font in my xterm, I have the following line in my
.Xdefaults:
 xterm*font: -adobe-courier-bold-r-*--20-*-iso10646-1

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: Message with utf-8 pound signs in it

2008-03-19 Thread Peter Münster
On Wed, Mar 19 2008, Chris G wrote:
 
 

Only the subject line is wrong ;)
Peter

-- 
http://pmrb.free.fr/contact/



Re: viewing URLs (muttils or lynx?)

2008-03-16 Thread Peter Münster
On Fri, Mar 14 2008, Robert Svoboda wrote:

 * Peter Münster [EMAIL PROTECTED] [2008-02-17 16:47]:
  How can I tell mutt to fire up an external browser with some URL in the
  message?
 
 I use xclip way for this as mentioned earlier in this thread
 (there is also 'matcher' extension for urxvt-unicode which
 lets you click links with middle mouse button)
 
  urlview is not ok for me, since I want to keep the context around the
  URLs. I would like to select a URL for example with the TAB-key, and some
  other key-press would start firefox url.
 
 This got me thinking about this:
 
 1. pipe message through display_filter extracting and
 numbering links
 
 2. in the extracting step create macros for internal pager
 which would correspond with numbered links
 
 3. source those macros 
 
 4. pressing numbers in pager starts the browser for the link
 (Not exactly TAB, but good enough I guess)
 
 What you guys think?

Hello Robert,

I think, that this is a good idea, because no more mouse is needed. But I
don't know, how you would create the macros by the filter.

Perhaps a very little patch will suffice to get the ergonomic
pine-behaviour, since mutt can already detect URLs very easily:

color body magenta yellow (http|https|ftp|news)://[^ \\t\r\n]*

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: hooks from aliases

2008-02-20 Thread Peter Münster
On Wed, Feb 20 2008, Vladimir Marek wrote:

  set my_list_folders = /list1$|/list2$
  mailboxes =list1 =list2
  subscribe [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 Nice. What exactly are your settings doing? What my_list_folders does?

Hello Vladimir,

Usage:
source alias-hooks.php $alias_file|
folder-hook . 'special settings'
folder-hook $my_list_folders 'other special settings'


 Over time I developed my approach to subscribing lists. I wanted
  - to be 'subscribe'd to the list

Ok.

  - everything to be stored in .muttrc, no external files

In my case, aliases (also for lists) are in a separate file.

  - pressing 'm' for new mail automatically offers list address

Seems useful, I'll add this to my script too.
Thanks!

  - pressing 'r' for reply is redefined to list-reply
  - sorting is threads

Ok (it's in 'other special settings').

 I don't set up 'mailboxes' automatically, since I want to set the order
 in which they are reported to have new mail according to my taste.

With my script, the order is just the same as in the alias-file.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: viewing URLs (muttils or lynx?)

2008-02-20 Thread Peter Münster
On Wed, Feb 20 2008, Gary Johnson wrote:

 That's what I thought, too, so I modified the w3m code to accept a 
 new option, -k, that accepts a list of characters that are read at 
 startup before input is read from the keyboard.  The only thing I 
 ever use it for is as -k : in various mutt hooks.  Here's the 
 diff -c from the 0.5.2 version of main.c to my modified version, 
 if you're interested.

Thanks for your patch, Gary!
Have you already sent it to the developers of w3m?

Finally, after trying w3m as the pager for 2 days, I don't want to do
without the internal pager of mutt (much more ergonomic, for example for
jumping from message to message).
So the first step for me will be the xclip-mouse-solution and later, when I
have some more time, I'll try to patch mutt to get the desired
pine-behaviour.

 You may also want to set Treat URL-like strings as links in all
 pages to Yes under Miscellaneous Settings in w3m's Option Setting
 Panel.  Otherwise, w3m searches only the currently displayed page
 for such strings.

Indeed, I've done exactly this.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: viewing URLs (muttils or lynx?)

2008-02-19 Thread Peter Münster
On Mon, Feb 18 2008, Christian Ebert wrote:

  I only know how this would work with w3m.
  
  Could you tell me how?
 
 See Gary's message.

Thanks to you and Gary. Indeed, w3m seems to be better that I thought in
the beginning.
But I'm a bit difficult (I've been using pine for about 10 years):
- it would be nice, if MARK_URL was called automatically at start-up
- keymap RET EXTERN_LINK does not work, I have to use another key
  (RETURN and ENTER do not work neither)
- it's not the built-in pager, so I cannot take advantage of all the
  mutt features

But shouldn't it be easy to implement, since the built-in pager can already
highlight URLs?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



hooks from aliases

2008-02-19 Thread Peter Münster
Hello,

For my personal needs I've written a script to generate hooks from aliases:

Input:
alias a1 [EMAIL PROTECTED] (Name)
alias a2 [EMAIL PROTECTED] (Name)
alias a3 [EMAIL PROTECTED] (Name)
alias a3 [EMAIL PROTECTED] (Name)
alias a1a2 a1,a2
alias a4 [EMAIL PROTECTED] \
(Name)
alias -group mygroup a5 [EMAIL PROTECTED] (Name)
alias -group mylists list1 [EMAIL PROTECTED] (Name)
alias -group mylists list2 [EMAIL PROTECTED] (Name)

Output:
fcc-hook '~C [EMAIL PROTECTED] ~C [EMAIL PROTECTED]' +a1a2
save-hook '~L [EMAIL PROTECTED] ~L [EMAIL PROTECTED]' +a1a2
fcc-save-hook [EMAIL PROTECTED] +a1
fcc-save-hook [EMAIL PROTECTED] +a2
fcc-save-hook [EMAIL PROTECTED] +a3
fcc-save-hook [EMAIL PROTECTED] +a3
fcc-save-hook [EMAIL PROTECTED] +a4
fcc-save-hook [EMAIL PROTECTED] +a5
set my_list_folders = /list1$|/list2$
mailboxes =list1 =list2
subscribe [EMAIL PROTECTED] [EMAIL PROTECTED]

Usage:
source alias-hooks.php $alias_file|
folder-hook . 'special settings'
folder-hook $my_list_folders 'other special settings'

Perhaps it can be useful for other users. You can download it here:
http://pmrb.free.fr/tmp/alias-hooks.txt

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: viewing URLs (muttils or lynx?)

2008-02-18 Thread Peter Münster
On Sun, Feb 17 2008, Christian Ebert wrote:

 * Peter Münster on Saturday, February 16, 2008 at 23:52:08 +0100
  Perhaps with lynx, but I'm still searching for a method to start firefox
  from lynx.
 
 I only know how this would work with w3m.

Hello Christian,

Could you tell me how?

  Perhaps with muttils, but the installation failed with:
  $ python setup.py install --home=~
  running install
  error: must supply either home or prefix/exec-prefix -- not both
 
 Are you not Windows by any chance? Because:

No, Linux.

But anyway, after reading your documentation, I believe that muttils won't
fit my needs...

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: viewing URLs (muttils or lynx?)

2008-02-18 Thread Peter Münster
On Mon, Feb 18 2008, Cameron Simpson wrote:

 In FVWM I have Alt-H bound to run a script with the URL, eg:
   
   firefox `xclip -o`

Hello Cameron,

Nice idea! And I think, that I can even make the key-binding dependent on
the window-title in fvwm. I only need to install xclip.

It's still not the very ergonomic pine-like behaviour, but I'll give it a
try.

Here are the problems that I have with the other methods:
- urlview make a list with url and the context is lost, furthermore urls
  are corrupted: item=123 gets item=3D123
- w3m and lynx seem to need real html, so I need to embed every url in a
  a/a tag with a filter, besides they are external pagers so the nice
  coloring of quoted text gets lost

Does it make sense to fill in a feature request for cycling through urls in
the message and firing up an external browser with the currently
highlighted url?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: copy on a per email basis

2008-02-16 Thread Peter Münster
On Tue, Feb 12 2008, Kyle Wheeler wrote:

 the effort of writing it to /dev/null. Unfortunately, you can't use 
 fcc-hook to specify nothing. For example, this won't work:
 
  fcc-hook ~u 
 
 I'm not sure why.

Hello Kyle,

Shouldn't this be considered as a bug, and /dev/null just an ugly
work-around?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



script for generating hooks

2008-02-16 Thread Peter Münster
Hello,

Before making some scripts, I would like to know, if someone has already
done, what I'm looking for, or something similar:

A script, that generates fcc- and save-hooks automatically from aliases

Example:
alias user1 [EMAIL PROTECTED] (Name)
alias user2 [EMAIL PROTECTED] (Name)
alias twousers user1, user2

And the following hooks will be generated:

fcc-save-hook [EMAIL PROTECTED] +user1
fcc-save-hook [EMAIL PROTECTED] +user2
fcc-hook ~C [EMAIL PROTECTED] ~C [EMAIL PROTECTED] +twousers
save-hook ~L [EMAIL PROTECTED] ~L [EMAIL PROTECTED] +twousers

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



viewing URLs (muttils or lynx?)

2008-02-16 Thread Peter Münster
Hello,

How can I tell mutt to fire up an external browser with some URL in the
message?
urlview is not ok for me, since I want to keep the context around the
URLs. I would like to select a URL for example with the TAB-key, and some
other key-press would start firefox url.

Perhaps with lynx, but I'm still searching for a method to start firefox
from lynx.

Perhaps with muttils, but the installation failed with:
$ python setup.py install --home=~
running install
error: must supply either home or prefix/exec-prefix -- not both

The best would be, to get this working without an external pager, just as
with pine.

Thanks in advance for any hints and ideas!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/



sig depending on recipient (was: Re: script for generating hooks)

2008-02-16 Thread Peter Münster
On Sat, Feb 16 2008, Joseph wrote:

 What hook would you use to set your sig based on the initial user you
 have chosen? 

I suppose a send-hook.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: Automatically encrypting to receipients based on the existance

2008-01-27 Thread Peter Münster
On Sun, Jan 27 2008, sigi wrote:
 On Sun, Jan 27, 2008 at 05:24:36PM +0100, Nicolas Rachinsky wrote:
  * Clay Barnes [EMAIL PROTECTED] [2008-01-26 10:57 -0700]:
   On 08:30 Sat 26 Jan , Nicolas Rachinsky wrote:
http://www.rachinsky.de/nicolas/mutt.shtml
   
   That looks like a useful patch.  Is it headed for main-line inclusion?
  
  Thank you. There hasn't been much feedback.
  
  Nicolas
 
 I'd like it too, included it into the main-package... I'm using such 
 constructs like your mentioned »source 'gpg --list-keys | perl -e ...« 
 and was always waiting for a better solution. 

Hello,
I vote for it too!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: Leopard Migration Hammered Mutt

2008-01-26 Thread Peter Münster
On Sat, Jan 26 2008, [EMAIL PROTECTED] wrote:
 
 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
 
 Mutt is in /sw/bin/
 
 How can I add /sw/bin/ to my path?

Hello,

Just after logging in, you can enter the command ls -alrut, that shows in
the last lines, the files that have just been read. Among these files,
there should be an initialisation file for your shell, for example .bashrc
or .profile. In the end of this file, you can put the line
PATH=$PATH:/sw/bin

(for a csh-like shell, the syntax is perhaps different...)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



Re: encrypt maildir mailboxes

2007-11-27 Thread Peter Münster
On Tue, Nov 27, 2007 at 10:25:32PM +0100, ITSec_Mike wrote:
 
 Now I would like to encrypt all my maildir folders.
 Is there any specific support for this or has anybody any experience with
 such a setup?

Hello,

No, but an encrypted partition, lvm volume, loop device or similar could be
an option, can be even mountable as normal user.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/