Re: Exporting from alias folder

2007-10-06 Thread Rem P Roberti
On 2007.10.07 01:25:56 +, Jerry Walker wrote:
> On Sat  6 Oct 2007 16:51, Rem P Roberti wrote:
>  
> >  It is very easy to create an alias from a received message just
> > by using the "a" command.  This puts the new alias in my .mail_aliases
> > folder, which resides in my home directory.  My understanding is that
> > you can transfer selected aliases from that folder to Abook, and that
> > process can be carried off from within Mutt itself.  Then you can just
> > prune the .mail_aliases folder for whatever aliases are not to be kept
> > permanently.  
> 
> Can't help you there I'm afraid. Since I started using Abook I stopped
> using the standard Mutt alias file. I found a Perl script written by Brian 
> Foley
> <[EMAIL PROTECTED]> which writes the details straight into Abook. I've
> remapped my "a" key to call that.
> 
> > I'm sure that the solution to this problem is a slam dunk but, as I
> > said, I suffer from the dreaded curse of the newbies.
> 
> You gotta start somewhere!
> 
> >  Thanks again for your help.
> 
>You're welcome.

Total no-brainer on my part.  Right after I fired off the last post I 
discovered that Abook can import
directly from the Mutt alias folder.  All is well in Newbieland.  Thanks again.

Rem 


Re: Exporting from alias folder

2007-10-06 Thread Jerry Walker
On Sat  6 Oct 2007 16:51, Rem P Roberti wrote:
 
>  It is very easy to create an alias from a received message just
> by using the "a" command.  This puts the new alias in my .mail_aliases
> folder, which resides in my home directory.  My understanding is that
> you can transfer selected aliases from that folder to Abook, and that
> process can be carried off from within Mutt itself.  Then you can just
> prune the .mail_aliases folder for whatever aliases are not to be kept
> permanently.  

Can't help you there I'm afraid. Since I started using Abook I stopped
using the standard Mutt alias file. I found a Perl script written by Brian Foley
<[EMAIL PROTECTED]> which writes the details straight into Abook. I've
remapped my "a" key to call that.

> I'm sure that the solution to this problem is a slam dunk but, as I
> said, I suffer from the dreaded curse of the newbies.

You gotta start somewhere!

>  Thanks again for your help.

You're welcome.


Re: Exporting from alias folder

2007-10-06 Thread Rem P Roberti
On 2007.10.07 00:26:04 +, Jerry Walker wrote:
> Hi,
> 
> On Sat  6 Oct 2007 16:04, Rem P Roberti wrote:
> > On 2007.10.06 23:26:07 +, Jerry Walker wrote:
> > > On Sat  6 Oct 2007 12:58, Rem P Roberti wrote:
> > > > Still searching for a way to export aliases from my alias folder to 
> > > > Abook via Mutt.  Anyone know how to do
> > > > that?
> > > 
> > > Use "abook --convert ...". Try "abook --help" for more details.
> > > 
> > Sorry to be dense about this, but how is "abook  --convert" invoked from 
> > within Mutt?  Is this something that
> > has to be configured via .muttrc?
> 
> Yep. You can bind a key to a macro that runs the appropriate command. For
> example I have 
> 
> macro generic a "abook\n" "Run Abook"
> 
> in my .muttrc to run abook from Mutt.

That works swell, Jerry, and I appreciate the newbie help.  Still, I have the 
feeling that my original
question was not well put, so I will try it again.  It is very easy to create 
an alias from a received
message just by using the "a" command.  This puts the new alias in my 
.mail_aliases folder, which resides in my
home directory.  My understanding is that you can transfer selected aliases 
from that folder to Abook, and
that process can be carried off from within Mutt itself.  Then you can just 
prune the .mail_aliases folder for
whatever aliases are not to be kept permanently.  I'm sure that the solution to 
this problem is a slam dunk
but, as I said, I suffer from the dreaded curse of the newbies.  Thanks again 
for your help.

Rem
 


Re: Exporting from alias folder

2007-10-06 Thread Jerry Walker
Hi,

On Sat  6 Oct 2007 16:04, Rem P Roberti wrote:
> On 2007.10.06 23:26:07 +, Jerry Walker wrote:
> > On Sat  6 Oct 2007 12:58, Rem P Roberti wrote:
> > > Still searching for a way to export aliases from my alias folder to Abook 
> > > via Mutt.  Anyone know how to do
> > > that?
> > 
> > Use "abook --convert ...". Try "abook --help" for more details.
> > 
> Sorry to be dense about this, but how is "abook  --convert" invoked from 
> within Mutt?  Is this something that
> has to be configured via .muttrc?

Yep. You can bind a key to a macro that runs the appropriate command. For
example I have 

macro generic a "abook\n" "Run Abook"

in my .muttrc to run abook from Mutt.


Re: Exporting from alias folder

2007-10-06 Thread Rem P Roberti
On 2007.10.06 23:26:07 +, Jerry Walker wrote:
> Hi Rem,
> 
> On Sat  6 Oct 2007 12:58, Rem P Roberti wrote:
> > Still searching for a way to export aliases from my alias folder to Abook 
> > via Mutt.  Anyone know how to do
> > that?
> 
> Use "abook --convert ...". Try "abook --help" for more details.
> 
> Good luck,
> 
> Will.


Sorry to be dense about this, but how is "abook  --convert" invoked from within 
Mutt?  Is this something that
has to be configured via .muttrc?

Rem


Re: Eporting from alias folder

2007-10-06 Thread Jerry Walker
Hi Rem,

On Sat  6 Oct 2007 12:58, Rem P Roberti wrote:
> Still searching for a way to export aliases from my alias folder to Abook via 
> Mutt.  Anyone know how to do
> that?

Use "abook --convert ...". Try "abook --help" for more details.

Good luck,

Will.


Re: index_format - indicate which email has attachment

2007-10-06 Thread Joseph
On 10/06/07 14:47, David Champion wrote:
> These defaults are installed when you build from source.  Are you
> using a distributed package?  If so, sounds like someone oopsed.

Thanks David and Garry for the index input, it works as you described:
I likes Garry's solution: %?X?%X& ?
It is perfect.

Yes, I compiled from Gentoo distribution, it is provided as an ebuild 
(as all other packages).
No, they are not spoiling us with regards to muttrc, for example the 
default muttrc setup is:

set mbox_type=Maildir
set folder=~/.maildir
set spoolfile=~/.maildir/
set record=~/.maildir-sent/
set move=no

set index_format="%4C %Z %{%b %d} %-16.16L  %s"

and that is all. Though, there is a pointer to Gentoo Mutt Guide which 
is very, very good example in explaining the basics and if a user want 
something fancy we need to pull our sleeves up get to work :-)

Though they have one advantage, I just noticed that Gentoo provide 
"mutt-sidebar" as a flag, so all I need to do is to re-compile it with 
that flag and copy the settings from: 
http://www.lunar-linux.org/index.php?option=com_content&task=view&id=44

Works like a charm, and happy with it :-)
 
-- 
#Joseph
GPG KeyID: ED0E1FB7


Re: trouble building with sasl

2007-10-06 Thread dv1445
OK, I tried a fresh install of cyrus-sasl2.1.22 in /usr/local/lib, and was able 
to build.

But now I can't authenticate with my smtp server.  Here's what I've set:

smtp_url='smtp://[EMAIL PROTECTED]:587'

But mutt attempts to send mail and I get "no authenticators available".  I've 
been using msmtp, and I think that connects to my server just fine using TLS.

I'm confused here.  Anyone know what's going on?  Thanks.
-G

Thus spake [EMAIL PROTECTED] [10/06/07 @ 16.20.58 -0400]:
> All,
> 
> I've been trying to build in sasl so that I can fully use the new built-in 
> smtp action in 1.5.16.  Trouble is, I have sasl on my machine, but when I 
> invoke 'make', I get a bunch of errors, telling me that some file named 
> sasl.h does not exist.  Well, that's true, there is no file on my machine 
> called sasl.h.  Nevertheless, I installed cyrus-sasl2 via fink, and I also 
> have in /usr/lib some stuff that sure looks like sasl2 (this came with 
> MacOSX10.4).  What's going on here?
> 
> Here is my configure line: sudo ./configure --enable-imap --enable-smtp 
> --enable-hcache --with-ssl --with-sasl=/sw/lib/sasl2 
> --with-bdb=/usr/local/berkeleydb.4.5
> 
> I tried flipping around the location of "--with-sasl", but it never works.
> 
> Here is what comes on my screen:
[snip]


trouble building with sasl

2007-10-06 Thread dv1445
All,

I've been trying to build in sasl so that I can fully use the new built-in smtp 
action in 1.5.16.  Trouble is, I have sasl on my machine, but when I invoke 
'make', I get a bunch of errors, telling me that some file named sasl.h does 
not exist.  Well, that's true, there is no file on my machine called sasl.h.  
Nevertheless, I installed cyrus-sasl2 via fink, and I also have in /usr/lib 
some stuff that sure looks like sasl2 (this came with MacOSX10.4).  What's 
going on here?

Here is my configure line: sudo ./configure --enable-imap --enable-smtp 
--enable-hcache --with-ssl --with-sasl=/sw/lib/sasl2 
--with-bdb=/usr/local/berkeleydb.4.5

I tried flipping around the location of "--with-sasl", but it never works.

Here is what comes on my screen:

In file included from auth_sasl.c:26:
../mutt_sasl.h:24:23: error: sasl/sasl.h: No such file or directory
In file included from auth_sasl.c:26:
../mutt_sasl.h:28: error: parse error before �sasl_conn_t�
../mutt_sasl.h:29: error: parse error before �*� token
../mutt_sasl.h:29: warning: type defaults to �int� in declaration of 
�mutt_sasl_get_callbacks�
../mutt_sasl.h:29: warning: data definition has no type or storage class
../mutt_sasl.h:30: error: parse error before �*� token
../mutt_sasl.h:31: error: parse error before �sasl_conn_t�
../mutt_sasl.h:36: error: parse error before �sasl_conn_t�
../mutt_sasl.h:36: warning: no semicolon at end of struct or union
../mutt_sasl.h:37: error: parse error before �*� token
../mutt_sasl.h:37: warning: type defaults to �int� in declaration of �ssf�
../mutt_sasl.h:37: warning: data definition has no type or storage class
../mutt_sasl.h:51: error: parse error before �}� token
../mutt_sasl.h:52: warning: type defaults to �int� in declaration of �SASL_DATA�
../mutt_sasl.h:52: warning: data definition has no type or storage class
auth_sasl.c:31:27: error: sasl/saslutil.h: No such file or directory
auth_sasl.c: In function �imap_auth_sasl�:
auth_sasl.c:36: error: �sasl_conn_t� undeclared (first use in this function)
auth_sasl.c:36: error: (Each undeclared identifier is reported only once
auth_sasl.c:36: error: for each function it appears in.)
auth_sasl.c:36: error: �saslconn� undeclared (first use in this function)
auth_sasl.c:37: error: �sasl_interact_t� undeclared (first use in this function)
auth_sasl.c:37: error: �interaction� undeclared (first use in this function)
auth_sasl.c:38: warning: ISO C90 forbids mixed declarations and code
auth_sasl.c:52: error: �SASL_FAIL� undeclared (first use in this function)
auth_sasl.c:70: warning: implicit declaration of function �sasl_client_start�
auth_sasl.c:74: error: �SASL_OK� undeclared (first use in this function)
auth_sasl.c:74: error: �SASL_CONTINUE� undeclared (first use in this function)
auth_sasl.c:79: error: �SASL_INTERACT� undeclared (first use in this function)
auth_sasl.c:104: warning: implicit declaration of function �sasl_encode64�
auth_sasl.c:132: warning: implicit declaration of function �sasl_decode64�
auth_sasl.c:147: warning: implicit declaration of function �sasl_client_step�
auth_sasl.c:196: warning: implicit declaration of function �sasl_dispose�
make[2]: *** [auth_sasl.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Eporting from alias folder

2007-10-06 Thread Rem P Roberti
Still searching for a way to export aliases from my alias folder to Abook via 
Mutt.  Anyone know how to do
that?

Rem 


Re: index_format - indicate which email has attachment

2007-10-06 Thread David Champion
> Thanks Dave for the example, no my muttrc did not come with these 
> defaults, and yes it works now.

These defaults are installed when you build from source.  Are you
using a distributed package?  If so, sounds like someone oopsed.


> It displays attachments but is there a way to suppress the "0" if there is 
> no attachment.

What Gary said. :)

Personally I use something akin to this:

%?X?{%2X}&%4c?

Which shows me attachment count if there are attchments, or
total message size othewise.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago
 "Polka music needs to prevail."   John Ziobrowski, Polka America Corporation


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Patrick Schoenfeld
On Sat, Oct 06, 2007 at 12:19:00PM -0700, Gary Johnson wrote:
> 'limit' is a function, not a command.  folder-hooks execute commands 

Ahh. I understand. Thanks for pointing this out.

> not functions.  However, the 'push' and 'exec' commands will execute 
> functions.  So one solution would be this:
>folder-hook =Mailinglisten.mutt-users 'push ~N'

Yep, that does the trick. Thanks for it.

> You don't need a default hook to "limit all" because the limit list 
> is cleared when you change folders.

Okay, thats good to know.

Thanks to all, helping me with this.

Regards,

Patrick


signature.asc
Description: Digital signature


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Christian Ebert
* Christian Ebert on Saturday, October 06, 2007 at 21:13:02 +0200
> * Patrick Schoenfeld on Saturday, October 06, 2007 at 20:33:21 +0200
>> i am reading several mailing lists (including mutt-users) and prefer to view
>> those folders with 'limit ~N'. But it seems not to be possible to enable this
>> limit for folders by default, by using folder-hooks.
> 
> folder-hook . 'push all'
actually, in this case, you don't need the default command above.

the following should suffice:
> folder-hook =Mailinglisten.mutt-users 'push ~N'

c
-- 
Der Feind ist unsere eigene Frage als Gestalt.
--Carl Schmitt


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Gary Johnson
On 2007-10-06, Patrick Schoenfeld <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> i am reading several mailing lists (including mutt-users) and prefer to view
> those folders with 'limit ~N'. But it seems not to be possible to enable this
> limit for folders by default, by using folder-hooks.
> 
> Example:
> folder-hook . 'limit all'
> folder-hook =Mailinglisten.mutt-users 'limit ~N'
> 
> It says that limit is an unknown command. But why? According to the help texts
> with '?' this is exactly the command hiding behind the keybinding 'l'. What
> would I need to do in order to achieve what I want?

'limit' is a function, not a command.  folder-hooks execute commands 
not functions.  However, the 'push' and 'exec' commands will execute 
functions.  So one solution would be this:

   folder-hook =Mailinglisten.mutt-users 'push ~N'

You don't need a default hook to "limit all" because the limit list 
is cleared when you change folders.

Regards,
Gary


Re: index_format - indicate which email has attachment

2007-10-06 Thread Gary Johnson
On 2007-10-06, Joseph <[EMAIL PROTECTED]> wrote:

> Thanks Dave for the example, no my muttrc did not come with these 
> defaults, and yes it works now.
> 
> It displays attachments but is there a way to suppress the "0" if there is 
> no attachment.

The 'index_format' accepts conditional elements, so something like 
this will work,

   %?X?%X?

or if you want a space in place of the 0 instead of nothing, this:

   %?X?%X& ?

Regards,
Gary


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Christian Ebert
* Patrick Schoenfeld on Saturday, October 06, 2007 at 20:33:21 +0200
> i am reading several mailing lists (including mutt-users) and prefer to view
> those folders with 'limit ~N'. But it seems not to be possible to enable this
> limit for folders by default, by using folder-hooks.
> 
> Example:
> folder-hook . 'limit all'
> folder-hook =Mailinglisten.mutt-users 'limit ~N'

try:

folder-hook . 'push all'
folder-hook =Mailinglisten.mutt-users 'push ~N'

c
-- 
Python Mutt utilities 


Re: index_format - indicate which email has attachment

2007-10-06 Thread Joseph
On 10/06/07 13:44, David Champion wrote:
> Right.  You can type ":attachments ?" (no quotes) into mutt to see
> what settings it has now.  The defaults come from the system
> muttrc:
> 
> Current attachments settings:
> 
> attachments +A */.*
> attachments -A text/x-vcard
> attachments -A application/pgp.*
> attachments -A application/x-pkcs7-.*
> attachments -A message/external-body
> attachments +I text/plain
> attachments -I message/external-body
> 
> These basically mean that "attachments" with a content-disposition
> of "inline" will not be counted as attachments, unless they are
> content-type text/plain; and all messages with a content-disposition
> of "attachment" will be counted, except for the four types listed
> (pgp signatures, vcards, and external-body messages).
> 
> Perhaps your message with an attachment doesn't qualify under these
> rules.  But that's why you can change the rules. :)

Thanks Dave for the example, no my muttrc did not come with these 
defaults, and yes it works now.

It displays attachments but is there a way to suppress the "0" if there is 
no attachment.

-- 
#Joseph
GPG KeyID: ED0E1FB7



Re: index_format - indicate which email has attachment

2007-10-06 Thread David Champion
> Did you properly configure all 'attachment' commands (see the system Muttrc 
> file for examples) or did you just add '%X' to $index_format?
>
> You have to tell mutt what an you consider an attachment before %X does 
> display the counts in $index_format.

Right.  You can type ":attachments ?" (no quotes) into mutt to see
what settings it has now.  The defaults come from the system
muttrc:

Current attachments settings:

attachments +A */.*
attachments -A text/x-vcard
attachments -A application/pgp.*
attachments -A application/x-pkcs7-.*
attachments -A message/external-body
attachments +I text/plain
attachments -I message/external-body

These basically mean that "attachments" with a content-disposition
of "inline" will not be counted as attachments, unless they are
content-type text/plain; and all messages with a content-disposition
of "attachment" will be counted, except for the four types listed
(pgp signatures, vcards, and external-body messages).

Perhaps your message with an attachment doesn't qualify under these
rules.  But that's why you can change the rules. :)

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago
 "Polka music needs to prevail."   John Ziobrowski, Polka America Corporation


How to limit displayed messages via folder-hooks

2007-10-06 Thread Patrick Schoenfeld
Hi,

i am reading several mailing lists (including mutt-users) and prefer to view
those folders with 'limit ~N'. But it seems not to be possible to enable this
limit for folders by default, by using folder-hooks.

Example:
folder-hook . 'limit all'
folder-hook =Mailinglisten.mutt-users 'limit ~N'

It says that limit is an unknown command. But why? According to the help texts
with '?' this is exactly the command hiding behind the keybinding 'l'. What
would I need to do in order to achieve what I want?

Thanks in advance,
Best Regards

Patrick


signature.asc
Description: Digital signature


Re: index_format - indicate which email has attachment

2007-10-06 Thread Rocco Rutte

Hi,

* Joseph [07-10-06 11:12:46 -0600] wrote:

On 10/06/07 11:44, Christian Ebert wrote:



%X
  number of qualifying MIME parts in this part and its children
  (please see the ``attachments'' section for possible speed
  effects)



Yes, I was playing with it but when I set my index like this it displays 
"0" on all files, even the one with attachments.



set index_format="%4C %Z %d %X %-15.15n (%?l?%4l&%4c?) %s"


Did you properly configure all 'attachment' commands (see the system 
Muttrc file for examples) or did you just add '%X' to $index_format?


You have to tell mutt what an you consider an attachment before %X does 
display the counts in $index_format.


Rocco


Re: index_format - indicate which email has attachment

2007-10-06 Thread Joseph
On 10/06/07 11:44, Christian Ebert wrote:
> * Joseph on Saturday, October 06, 2007 at 00:48:00 -0600
> > Is it possible to show in index display which email has an attachment?
> > I was looking for a solution but it seems to me I need to install a 
> > patch in order to show this information in index_format.
> 
> Your version of Mutt should already have the patch included.
> Experiment with %X in index format, and have a look at the, you
> know, fine manual:
> 
> %X
>   number of qualifying MIME parts in this part and its children
>   (please see the ``attachments'' section for possible speed
>   effects)
> 

Yes, I was playing with it but when I set my index like this it displays 
"0" on all files, even the one with attachments.

set index_format="%4C %Z %d %X %-15.15n (%?l?%4l&%4c?) %s"


-- 
#Joseph
GPG KeyID: ED0E1FB7


Re: Generate Reply / New Mail in new shell session

2007-10-06 Thread Christian Ebert
* Eyolf Østrem on Saturday, October 06, 2007 at 14:39:41 +0200
> It didn't quite work for me, still. I may play around with different
> flags and such, but in the end, it isn't really *that* important to
> me. But thanks for the script anyway. 

I was more interested in Screen, but this works here for xterm:


#!/bin/sh
DRAFT="$1"
cp "$DRAFT" "$DRAFT.tmp"
(
xterm -e "exec mutt -H \"$DRAFT.tmp\""
sleep 1
rm -f "$DRAFT.tmp"
) &

exit 0


c
-- 
strangely, i became more bookish
and my home and study meant more to me
as i considered the circumstances of my death
--Iggy Pop, No Shit


Re: Generate Reply / New Mail in new shell session

2007-10-06 Thread Eyolf Østrem
On 05.10.2007 (10:05), Christian Ebert wrote:
> * Eyolf Østrem on Friday, October 05, 2007 at 01:07:39 +0200
> 
> a lilyponder ;)

Yep!

> The following works in a dirty way --

It didn't quite work for me, still. I may play around with different
flags and such, but in the end, it isn't really *that* important to
me. But thanks for the script anyway. 

Eyolf
-- 
The faster we go, the rounder we get.
-- The Grateful Dead


Re: index_format - indicate which email has attachment

2007-10-06 Thread Christian Ebert
* Joseph on Saturday, October 06, 2007 at 00:48:00 -0600
> Is it possible to show in index display which email has an attachment?
> I was looking for a solution but it seems to me I need to install a 
> patch in order to show this information in index_format.

Your version of Mutt should already have the patch included.
Experiment with %X in index format, and have a look at the, you
know, fine manual:

%X
  number of qualifying MIME parts in this part and its children
  (please see the ``attachments'' section for possible speed
  effects)

c
-- 
Python Mutt utilities