Re: intermittant hesitation after key strokes

2009-11-13 Thread Christian Ebert
* Robert Holtzman on Thursday, November 12, 2009 at 23:40:04 -0700
 The only reason I'm running the sidebar is that I'm used to pine/alpine
 where the mailbox list is a click away. Don't know how the unpatched
 mutt handles this

The mailbox list is just a click away too, albeit not visible at
the same time. The distributed system Muttrc contains the
following macro and binding:

# show the incoming mailboxes list (just like mutt -y) and back when pressing 
y
macro index,pager y change-folder?toggle-mailboxes show incoming 
mailboxes list
bind browser y exit

So you'd have at least a poor man's side-bar ;-)

c
-- 
Python Mutt utilities --- http://www.blacktrash.org/hg/muttils/


Names in sent folder

2009-11-13 Thread Alex Huth
Hi!

Actual i see in the sent folder my own name in the overview. How can i
configure it, that i can see instead the To-address?

Thx

Alex


Re: Names in sent folder

2009-11-13 Thread René Clerc
Hi Alex,

* Alex Huth a.h...@tmr.net [13-11-2009 11:03]:

 Actual i see in the sent folder my own name in the overview. How can i
 configure it, that i can see instead the To-address?

Read the manual on $index_format, most notably the %F sequence.

-- 
René Clerc  - (r...@clerc.nl) - PGP: 0x9ACE0AC7

Society has become a laboratory with nobody responsible
for the outcome of the experiment.
-Ulrich Beck


pgpztaECJw1WI.pgp
Description: PGP signature


Problem with gettext files

2009-11-13 Thread Omar Campagne
Hello to everybody:

I'm still learning Mutt (this is my first installation), and I've worked
out encoding issues and the likes, particullarly when somebody sends me
a gettext po file, enabling me to *see* it with the regular pager.
Although it sometimes detects

However, now, when I try to *attach* such a file to send it to whatever
developers, I get application/x-gettext, base-quoted, and Mutt doesn't
autoshow the contents (says it can't), unless I view it in the
attachment menu.

My locale is en_US.utf8. I have in my .mime.types
application/x-gettext  po
text/x-gettext-translation  po
as Mutt was detecting the same po format under different names, randomly
(as far as I know).

Some po files are in iso-5..-15, most in utf8. However, I need mutt to
guess correctly the encoding of the file, as I may end up sending some
garbled file to the translation lists.
When Mutt detects iso...-1 in a received, I get garbled accents in Spanish, 
therefore, I had to put

charset-hook iso-8859-1 iso-8859-15

in .muttrc.

I also have
set file_charset=utf-8:iso-8859-15:us-ascii
set send_charset=utf-8:iso-8859-15:us-ascii 
set assumed_charset=utf-8 
set locale=en_US.utf8
in my .muttrc. May this force a conversion on sent attachments?

In case you don't know, a po file is plain text file with some string
headers.
However, they need to be recognized by their mimetype as po to ensure a
correct send.
I saw a mail discussing the topic, but it doesn't work for sending po's,
yet detects mimetype and encoding of received emails. (Although it
sometimes says base64.
Let me know if I can provide more information.

Thanks in advance! 
Omar

-- 

Why stop now just when I'm hating it? -- Marvin The Paranoid Android


Re: Names in sent folder

2009-11-13 Thread Kevin Kammer
On Fri, Nov 13, 2009 at 11:19:20AM +0100 René Clerc wrote:
 Hi Alex,
 
 * Alex Huth a.h...@tmr.net [13-11-2009 11:03]:
 
  Actual i see in the sent folder my own name in the overview. How can i
  configure it, that i can see instead the To-address?
 
 Read the manual on $index_format, most notably the %F sequence.
 
 -- 
 René Clerc  - (r...@clerc.nl) - PGP: 0x9ACE0AC7

The default $index_format should already display the recipient's name in
your Sent folder, or any folder for that matter, if the message was from
you.

Perhaps you need to define any additional addresses you send mail from
in your muttrc file using the alternates command. This is how mutt
knows what addresses are yours.

-Kevin

-- 
Le hasard favorise l'esprit préparé.
  --Louis Pasteur


Re: intermittant hesitation after key strokes

2009-11-13 Thread Robert Holtzman
On Fri, Nov 13, 2009 at 09:42:12AM +0100, Christian Ebert wrote:
 * Robert Holtzman on Thursday, November 12, 2009 at 23:40:04 -0700
  The only reason I'm running the sidebar is that I'm used to pine/alpine
  where the mailbox list is a click away. Don't know how the unpatched
  mutt handles this
 
 The mailbox list is just a click away too, albeit not visible at
 the same time. The distributed system Muttrc contains the
 following macro and binding:
 
 # show the incoming mailboxes list (just like mutt -y) and back when 
 pressing y
 macro index,pager y change-folder?toggle-mailboxes show incoming 
 mailboxes list
 bind browser y exit
 
 So you'd have at least a poor man's side-bar ;-)
 
 c
 -- 
 Python Mutt utilities --- http://www.blacktrash.org/hg/muttils/

Thanks. I'll try it.

-- 
Bob Holtzman
Key ID: 8D549279
If you think you're getting free lunch,
 check the price of the beer


signature.asc
Description: Digital signature


Re: Names in sent folder

2009-11-13 Thread Alex Huth
Even when i comment my index_format line there is no change in the index of
the sent folder. I have only one address ia m sending from.
How can i use different index_format for different folders?

* Kevin Kammer schrieb:
 On Fri, Nov 13, 2009 at 11:19:20AM +0100 René Clerc wrote:
  Hi Alex,
  
  * Alex Huth a.h...@tmr.net [13-11-2009 11:03]:
  
   Actual i see in the sent folder my own name in the overview. How can i
   configure it, that i can see instead the To-address?
  
  Read the manual on $index_format, most notably the %F sequence.
  
  -- 
  René Clerc  - (r...@clerc.nl) - PGP: 0x9ACE0AC7
 
 The default $index_format should already display the recipient's name in
 your Sent folder, or any folder for that matter, if the message was from
 you.
 
 Perhaps you need to define any additional addresses you send mail from
 in your muttrc file using the alternates command. This is how mutt
 knows what addresses are yours.
 
 -Kevin
 
 -- 
 Le hasard favorise l'esprit préparé.
   --Louis Pasteur


Re: Names in sent folder

2009-11-13 Thread Patrick Shanahan
* Alex Huth a.h...@tmr.net [11-13-09 12:29]:
 Even when i comment my index_format line there is no change in the index of
 the sent folder. I have only one address ia m sending from.
 How can i use different index_format for different folders?
 

read the manual on folder_hooks  :^)

please trim your replies, tks.
-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: intermittant hesitation after key strokes

2009-11-13 Thread Kyle Wheeler

On Thursday, November 12 at 11:40 PM, quoth Robert Holtzman:
The only reason I'm running the sidebar is that I'm used to 
pine/alpine where the mailbox list is a click away.


Understood. Personally, I find the mailbox list rather annoying. I 
have lots of rarely-used mailboxes (for grouping messages about 
subjects that I rarely talk about, or mailing lists that I monitor and 
only check up on once or twice a week) that usually end up cluttering 
up such interfaces. I like that in mutt I can simply use 
tab-completion to navigate to my folders. (You *can* get a list of 
folders... but you aren't forced to use it if you don't want to.)



Educate me (as if you haven't been doing that so far). Why ick?


Well, this comes up every so often, so I'll copy what I've said before 
about it. Mainly, I quoted one of the guiding lights of mutt 
development (and the man to whom mutt 1.6 will probably be dedicated), 
Rocco Rutte, who wrote 
(http://marc.info/?l=mutt-devm=112133798519807w=2):


For example, the sidebar patch available for mutt looks to work at
first sight but there're many things just heavily broken or things
you really don't want to stay in the code (like using snprintf()
and strlen() to calculate the amount of digits of a number.)

The sidebar patch is much larger than it needs to be, and affects 
large portions of the mutt codebase that have nothing to do with 
showing a sidebar (for example, if memory serves, the sidebar patch 
changes mbox handling in some weird way). Generally speaking, despite 
its popularity and its apparent continued development, the developers 
of the sidebar patch do not maintain a presence on this mailing list, 
do not have their own mailing list, and (to my knowledge) do not 
provide any kind of support for either users of their patch or for 
people interested in cleaning it up such that it might become 
palatable to the mainline mutt developers.


And just so you know, Rocco's complaints are still valid. Check out 
this example function from the current sidebar patch (published July 
19th, 2009):


static int quick_log10(int n)
{
char string[32];
sprintf(string, %d, n);
return strlen(string);
}

Just because I was curious, I actually compared this quick version 
of log10 to the real log10 (with the attached small program). Turns 
out calculating log10 the quick way is an order of magnitude slower 
than doing it the usual way. Doesn't that just scream this programmer 
knows what they're doing?


So... now you know why I say ick.

~Kyle
--
Computers are useless. They can only give you answers.
  -- Pablo Picasso
#include string.h
#include stdlib.h
#include stdio.h
#include sys/time.h
#include math.h

int quick_log10(int n)
{
char string[32];
sprintf(string, %d, n);
return strlen(string);
}

int main()
{
int count, i;
const int max = 10;
struct timeval start, stop;
int logsum = 0;
int *numbers;

numbers = malloc(max * sizeof(int));
for (count=0; countmax; count++) {
numbers[count] = random();
}

gettimeofday(start,NULL);
for (i=0; i10; i++) {
for (count=0; countmax; count++) {
logsum += log10(numbers[count]);
}
}
gettimeofday(stop, NULL);

printf(math.h(%i): %f seconds\n, logsum, (stop.tv_sec + 
stop.tv_usec*1e-6) - (start.tv_sec + start.tv_usec*1e-6));

logsum = 0;
gettimeofday(start,NULL);
for (i=0; i10; i++) {
for (count=0; countmax; count++) {
logsum += quick_log10(numbers[count]);
}
}
gettimeofday(stop, NULL);

printf(sidebar(%i): %f seconds\n, logsum, (stop.tv_sec + 
stop.tv_usec*1e-6) - (start.tv_sec + start.tv_usec*1e-6));

return 0;
}


pgpbAw6xhSUv3.pgp
Description: PGP signature