Re: add USER mail into mutt mailboxes list

2011-12-16 Thread stardiviner
=> On [2011-12-15 23:36:59 -0500]:
 rj Said: 
> On Fri 16 at 09:43 AM +1100, Cameron Simpson  wrote:
> 
> > On 15Dec2011 22:00, stardiviner  wrote:
> > | I use mailboxes like this:
> > | 
> > | mailboxes =/var/mail/chris
> > | mailboxes =Python
> > | mailboxes =Python/python
> > | mailboxes =Python/comp-lang-py
> > | mailboxes =Python/Django
> > 
> > It will be mbox.
> > 
> > You need to drop the "=" from your mailboxes line for the system spool:
> > 
> >   mailboxes /var/mail/chris
> > 
> > This has nothing to do with the mailbox format and everything to do with
> > the fact that "=" is shorthand for your mail folder directory.
> 
> 
> Would the following also work, and save space?
> 
> mailboxes ! =Python =Python/python =Python/comp-lang-py =Python/Django
Thanks, ! is good, solved problem.
> 
> 
> The "!", IINM, is shorthand for "var/mail/chris".  And a "+" (plus-sign)
> can also be used in place of the "=".  I use "+" but only because I think
> it looks cooler.
> 
> -- 
>   I am the owner of my shoulders, the tenant of my hips.
>  -- Malcolm de Chazal   Sens-Plastique
> 



-- 
>> stardiviner <<  =>GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


add USER mail into mutt mailboxes list

2011-12-15 Thread stardiviner
I want to add User's mails into mutt mailboxes list.
I use maildir for my gmail mails. But I don't know what type of /var/mail/chris 
use.
*/var/mail/chris* is just a file. not a directory. I guess this is mbox ...

I use mailboxes like this:

mailboxes =/var/mail/chris
mailboxes =Python
mailboxes =Python/python
mailboxes =Python/comp-lang-py
mailboxes =Python/Django


-- 
>> stardiviner <<  =>GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: set different index_format for mails

2011-11-14 Thread stardiviner
=> On [2011-11-09 10:52:00 -0500]:
 Ed Blackman Said: 
> On Wed, Nov 09, 2011 at 11:01:27AM +0800, stardiviner wrote:
> >=> On [2011-11-08 12:03:50 -0500]:
> >Ed Blackman Said:
> >>On Tue, Nov 08, 2011 at 02:13:05PM +0100, Gregor Zattler wrote:
> >>>It's not possible to change the index format for individual
> >>>emails in the index but you can colour different email entries
> >>>differently.
> >>
> >>Actually, it is.  If you set index_format to a shell command that
> >>ends with a pipe, that Mutt will run that shell command for each
> >>message and use the output as the actual index_format.  If you pass
> >>index_format expandos as arguments, Mutt will pass the expanded
> >>string.  The shell command could then use that to emit different
> >>formats for different messages.
> >>
> >>For example, I have a script called format_date, and have this in
> >>.muttrc:
> >>  set index_format="/path/to/format_date '%[%s]' '%<%s>' |"
> >This really is a good idea.
> >I want to set index_format for different type mails like:
> >new, deleted, replied, signed, encrypted ...
> >But I do not know how to use those value like ~N ~R ~D ~g ~G etc.
> >Do you know how to pass them to script ?
> 
> Those are patterns, you can't pass them.  You can pass the format
> strings that are listed in muttrc under index_format.  It looks like
> all the patterns you are interested in are reflected in the message
> flags format string, %Z.  So you'd change index_format in .muttrc to:
>   set index_format="/path/to/format_flags '%Z' |"
Good idea, take it.
> 
> Then create a format_flags script loosely based on mine that parses
> the flags argument and echos the right index_format based on what's
> passed in the flags.
> 
> -- 
> Ed Blackman



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: set different index_format for mails

2011-11-09 Thread stardiviner
=> On [2011-11-08 09:13:27 -0800]:
 Gary Johnson Said: 
> On 2011-11-08, Gregor Zattler wrote:
> > Hi stardiviner,
> > * stardiviner [08. Nov. 2011]:
> > > => On [2011-11-08 11:40:18 +0100]:
> > >> * stardiviner [08. Nov. 2011]:
> > >>> Is there other way to set different *index_format* for mails ?
> > >> 
> > >> index_format describes the format of your index which shows
> > >> (normally) several emails at once while message-hook deals with
> > >> individual emails.  What should your index look like if there are
> > >> different emails for which you want to have different
> > >> index_formats?
> > >> 
> > > So it is impossible to set different index_format for messages ?
> > 
> > It's not possible to change the index format for individual
> > emails in the index but you can colour different email entries
> > differently.
> 
> You can also use conditional elements in index_format that will
> print different pieces of information depending on the values of
> other pieces of information.  This is explained in the mutt manual
> in the "Conditionals" section.
> 
> As an example, I have this string as part of my index_format.
> 
> %?X?*& ?
I have already tested, this %?n?new? only work in status_format, can not work 
on index_format correctly.
here is my result:
I set them like this:
folder-hook =INBOX  set index_format = '" %?n?new? %?o?old? %?d?del? %2C|%N 
[%4Z] | %-10L %?H?[spam]? %10s %> %4c %[%I:%M %P %b/%d]"' # for macro "gi"

new old del 9|0 [ O +] | VeryCD » subject: ...
new old del 9|0 [ O +] | VeryCD » subject: ...
new old del 9|0 [ O +] | VeryCD » subject: ...
new old del 9|0 [ O +] | VeryCD » subject: ...
new old del 9|0 [ O +] | VeryCD » subject: ...
> 
> If the number of attachments (X) is non-zero, "*" is inserted.
> Otherwise, " " is inserted.
> 
> Regards,
> Gary

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: set different index_format for mails

2011-11-08 Thread stardiviner
=> On [2011-11-08 09:13:27 -0800]:
 Gary Johnson Said: 
> On 2011-11-08, Gregor Zattler wrote:
> > Hi stardiviner,
> > * stardiviner [08. Nov. 2011]:
> > > => On [2011-11-08 11:40:18 +0100]:
> > >> * stardiviner [08. Nov. 2011]:
> > >>> Is there other way to set different *index_format* for mails ?
> > >> 
> > >> index_format describes the format of your index which shows
> > >> (normally) several emails at once while message-hook deals with
> > >> individual emails.  What should your index look like if there are
> > >> different emails for which you want to have different
> > >> index_formats?
> > >> 
> > > So it is impossible to set different index_format for messages ?
> > 
> > It's not possible to change the index format for individual
> > emails in the index but you can colour different email entries
> > differently.
> 
> You can also use conditional elements in index_format that will
> print different pieces of information depending on the values of
> other pieces of information.  This is explained in the mutt manual
> in the "Conditionals" section.
> 
> As an example, I have this string as part of my index_format.
> 
> %?X?*& ?
Thanks, this is very useful, I forget it, I use it on other way, I forgot it. 
This can work. very good.
> 
> If the number of attachments (X) is non-zero, "*" is inserted.
> Otherwise, " " is inserted.
> 
> Regards,
> Gary

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: set different index_format for mails

2011-11-08 Thread stardiviner
=> On [2011-11-08 12:03:50 -0500]:
 Ed Blackman Said: 
> On Tue, Nov 08, 2011 at 02:13:05PM +0100, Gregor Zattler wrote:
> >It's not possible to change the index format for individual
> >emails in the index but you can colour different email entries
> >differently.
> 
> Actually, it is.  If you set index_format to a shell command that
> ends with a pipe, that Mutt will run that shell command for each
> message and use the output as the actual index_format.  If you pass
> index_format expandos as arguments, Mutt will pass the expanded
> string.  The shell command could then use that to emit different
> formats for different messages.
> 
> For example, I have a script called format_date, and have this in
> .muttrc:
>   set index_format="/path/to/format_date '%[%s]' '%<%s>' |"
This really is a good idea.
I want to set index_format for different type mails like: 
new, deleted, replied, signed, encrypted ...
But I do not know how to use those value like ~N ~R ~D ~g ~G etc.
Do you know how to pass them to script ?
> 
> The script emits a different date format for each message in the
> index depending on how old it is: '  6:41pm' if less than a day, '
> Thu 6pm' if more than a day but less than a week, '  Jan 20' if more
> than a week but less than 30 days, and '01/20/11' if more than 30
> days.  See http://marc.info/?l=mutt-users&m=129556814118983 and the
> thread that leads up to it.
> 
> A different program could be written to examine the message flags in
> '%Z' instead of the time, and output different formats depending on
> those flags.  The script in the message linked above could serve as a
> starting point, though the middle part where it's doing the date
> calculations would need to be replaced with flag comparisons.
> 
> I don't have time to experiment with creating a full solution for the
> original poster, but hopefully this will point someone in the right
> direction.
> 
> -- 
> Ed Blackman



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: set different index_format for mails

2011-11-08 Thread stardiviner
=> On [2011-11-08 14:13:05 +0100]:
 Gregor Zattler Said: 
> Hi stardiviner,
> * stardiviner  [08. Nov. 2011]:
> > => On [2011-11-08 11:40:18 +0100]:
> >> * stardiviner  [08. Nov. 2011]:
> >>> Is there other way to set different *index_format* for mails ?
> >> 
> >> index_format describes the format of your index which shows
> >> (normally) several emails at once while message-hook deals with
> >> individual emails.  What should your index look like if there are
> >> different emails for which you want to have different
> >> index_formats?
> >> 
> > So it is impossible to set different index_format for messages ?
> 
> It's not possible to change the index format for individual
> emails in the index but you can colour different email entries
> differently.
Thanks. 
really hope mutt can add this option.
> 
> For instance with:
> folder-hook . 'color index green default ~P'
> 
> emails from me are coloured green.  I do this with a folder-hook
> because for some specific folders I do not want this setting and
> override for these folders.
> 
> 
> Ciao, Gregor
> -- 
>  -... --- .-. . -.. ..--.. ...-.-



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: set different index_format for mails

2011-11-08 Thread stardiviner
=> On [2011-11-08 11:40:18 +0100]:
 Gregor Zattler Said: 
> Hi stardiviner,
> * stardiviner  [08. Nov. 2011]:
> > 
> > I try to set different *index_format* for maials. like this:
> > 
> > message-hook "~g" "set index_format = ' A %H %C| +%N [%4Z] %-13L >> %s 
> > %> %4c' " # signed
> > message-hook "~R" "set index_format = ' B %H %C| %N [%4Z] %-13L > %s %> 
> > %4c' " # replied
> 
> The patterns are the same.
Sorry for this, actually they are different. I type wrong.
> 
> > This does not work. But folder-hook can set different *index_format*. like 
> > this:
> > 
> > folder-hook .   set index_format = '" %H %C| [%4Z] %-13L » %s  %>  
> > %4c"'
> > folder-hook =INBOX  set index_format = '" %H %C| %N [%4Z] %-13L >> %s  
> > %>  %4c"' # for macro "gi"
> > 
> > Is there other way to set different *index_format* for mails ?
> 
> index_format describes the format of your index which shows
> (normally) several emails at once while message-hook deals with
> individual emails.  What should your index look like if there are
> different emails for which you want to have different
> index_formats?
> 
So it is impossible to set different index_format for messages ?
Maybe there are other method to do this.
> 
> 
> Ciao, Gregor
> -- 
>  -... --- .-. . -.. ..--.. ...-.-

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


set different index_format for mails

2011-11-07 Thread stardiviner

I try to set different *index_format* for maials. like this:

message-hook "~g" "set index_format = ' A %H %C| +%N [%4Z] %-13L >> %s %> 
%4c' " # signed
message-hook "~g" "set index_format = ' B %H %C| %N [%4Z] %-13L > %s %> 
%4c' " # replied

This does not work. But folder-hook can set different *index_format*. like this:

folder-hook .   set index_format = '" %H %C| [%4Z] %-13L » %s  %>  %4c"'
folder-hook =INBOX  set index_format = '" %H %C| %N [%4Z] %-13L >> %s  %>  
%4c"' # for macro "gi"

Is there other way to set different *index_format* for mails ?
If you have good idea, please tell me, thanks very much.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


message-hook for set index_format

2011-11-04 Thread stardiviner

I want to set different index_format for different mails.
Just like set different index_format for different mailbox.
Like this example: 
folder-hook "\!"set index_format = '"%H %C| %N [%4Z] %-13L » %s  %>  
%4c"'
folder-hook =INBOX  set index_format = '"➤ %H %C| ✣%N [%4Z] %-13L » %s  %>  
%4c"' # for macro "gi"

I want to apply similar rules on message-hook. but it can not work. (I guess 
that maybe problem is
on the order of folder-hook and message-hook, maybe one will override another 
one).
I want to become like this:
message-hook "~g" "set index_format = '➤ ♪ %H %C| ✣%N [%4Z] %-13L » %s  %>  
%4c'" # signed
message-hook "~G" "set index_format = '➤ ☆ %H %C| ✣%N [%4Z] %-13L » %s  %>  
%4c'" # encrypted

Does anybody know solve this problem ?

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


message-hook for set index_format

2011-11-03 Thread stardiviner
I want to set different index_format for different mails.
Just like set different index_format for different mailbox.
Like this example: 
folder-hook "\!"set index_format = '"%H %C| %N [%4Z] %-13L » %s  %>  
%4c"'
folder-hook =INBOX  set index_format = '"➤ %H %C| ✣%N [%4Z] %-13L » %s  %>  
%4c"' # for macro "gi"

I want to apply similar rules on message-hook. but it can not work. (I guess 
that maybe problem is
on the order of folder-hook and message-hook, maybe one will override another 
one).
I want to become like this:
message-hook "~g" "set index_format = '➤ ♪ %H %C| ✣%N [%4Z] %-13L » %s  %>  
%4c'" # signed
message-hook "~G" "set index_format = '➤ ☆ %H %C| ✣%N [%4Z] %-13L » %s  %>  
%4c'" # encrypted

Does anybody know solve this problem ?

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


sub-mailbox in mailbox

2011-10-29 Thread stardiviner
I'm using mutt patch *sidebar*.
I hope sidebar can show new mail highlight and list out sub-mailboxes.
1] new mail highlight. (even in sub-mailboxes)
2] I find mutt can not list out mailboxes when they are in another mailbox.
for example:
I have two mailboxes in another mailbox.
apps/
`-weechat/
`-tmux/
when I switch to apps mailbox with sidebar, mutt can not list out this two 
mailboxes.
how to set muttrc to do this ? 

I set *mailboes* in a file. here is the example.
mailboxes =Perl
mailboxes =ubuntu
mailboxes =Arch 
mailboxes =apps

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Is there a way to display color for embeded code ?

2011-10-26 Thread stardiviner
Sometimes, we will see some embedded code in mail body.
I want to know is there a way to show syntax color for those embedded code. 
Use external tool, or outside something. and so on.
Any way, don't make the implement method complex. 
I know that vim can display corresponding syntax color for embedded code.
for example, display lua code color in html.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: how to color one mail reply you in a thread ?

2011-10-24 Thread stardiviner
=> On [2011-10-25 11:46:48 +0800]:
 stardiviner Said: 
> I want to color one special mail in a thread from one mailing list.
> for example:
> Subject .
> [r]  `-> (I replied here)
>   |  `-> 
>   |
>   `-> (someone replied me at here, I want to color this mail in mutt 
> color theme)
>   how to do this ?
I have find out some solutions. If you have better way, please note me.

color index color025color233 "~x .*@stardiviner" # I'm in the 
References list.
color index     color045color233 "~h \"^In-[Rr]eply-[Tt]o: 
.*@stardiviner\" " # only my mail is replied by others in thread

> -- 
> stardiviner GPG: 5D9F64D8 Twitter: @numbchild
> http://stardiviner.dyndns-blog.com/author.html



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


how to color one mail reply you in a thread ?

2011-10-24 Thread stardiviner
I want to color one special mail in a thread from one mailing list.
for example:
Subject .
[r]  `-> (I replied here)
  |  `-> 
  |
  `-> (someone replied me at here, I want to color this mail in mutt color 
theme)
  how to do this ?
-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: IMAP fetch header failed

2011-10-24 Thread stardiviner
=> On [2011-10-24 03:09:40 -0600]:
 Aaron Toponce Said: 
> On Sun, Oct 23, 2011 at 02:02:01PM +0800, stardiviner wrote:
> > => On [2011-10-23 10:56:38 +0800]: du yang Said:
> > > I have a gmail INBOX with more than 20,000 messages. I configured mutt
> > > IMAP to this mailbox. For this is the first time to this mailbox, mutt
> > > try to fetch all the headers at the beginning and always got the
> > >  problem "tls_socket_read (A TLS packet with unexpected length
> > > was received.)" when just fetched about 5000 headers.
> > >
> > If your Gmail INBOX really has 20, messages, I think mutt IMAP can not 
> > fetch so much
> > headers. Maybe you need to delete or catalyzes your gmail.
> 
> Garbage. I have over 70,000 emails in my account, over 40,000 of which are
> in the debian-users mailing list folder. I just recently reinstalled my
> computer, and had to re-fetch all 40K headers, and while it took a while to
> do so over IMAP, it did so successfully, without hiccup.
> 

I find most of people who using Mutt has this situation.=20
They have a lot of mails to download, I think someone should write a stuff =
to download=20
all mails from mailing list. This will save a lot of project and time.
So that you do not need to save those mails from mailing list.
And this stuff should have some options: download from a time point ..., et=
c.
And should work with Mutt. This will be a awesome stuff.
> --
> . o .   o . o   . . o   o . .   . o .
> . . o   . o o   o . o   . o o   . . o
> o o o   . o .   . o o   o o .   o o o



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: IMAP fetch header failed

2011-10-24 Thread stardiviner
=> On [2011-10-24 03:09:40 -0600]:
 Aaron Toponce Said: 
> On Sun, Oct 23, 2011 at 02:02:01PM +0800, stardiviner wrote:
> > => On [2011-10-23 10:56:38 +0800]: du yang Said:
> > > I have a gmail INBOX with more than 20,000 messages. I configured mutt
> > > IMAP to this mailbox. For this is the first time to this mailbox, mutt
> > > try to fetch all the headers at the beginning and always got the
> > >  problem "tls_socket_read (A TLS packet with unexpected length
> > > was received.)" when just fetched about 5000 headers.
> > >
> > If your Gmail INBOX really has 20, messages, I think mutt IMAP can not 
> > fetch so much
> > headers. Maybe you need to delete or catalyzes your gmail.
> 
> Garbage. I have over 70,000 emails in my account, over 40,000 of which are
> in the debian-users mailing list folder. I just recently reinstalled my
> computer, and had to re-fetch all 40K headers, and while it took a while to
> do so over IMAP, it did so successfully, without hiccup.
> 
> --
> . o .   o . o   . . o   o . .   . o .
> . . o   . o o   o . o   . o o   . . o
> o o o   . o .   . o o   o o .   o o o



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: IMAP fetch header failed

2011-10-24 Thread stardiviner
=> On [2011-10-24 03:09:40 -0600]:
 Aaron Toponce Said: 
> On Sun, Oct 23, 2011 at 02:02:01PM +0800, stardiviner wrote:
> > => On [2011-10-23 10:56:38 +0800]: du yang Said:
> > > I have a gmail INBOX with more than 20,000 messages. I configured mutt
> > > IMAP to this mailbox. For this is the first time to this mailbox, mutt
> > > try to fetch all the headers at the beginning and always got the
> > >  problem "tls_socket_read (A TLS packet with unexpected length
> > > was received.)" when just fetched about 5000 headers.
> > >
> > If your Gmail INBOX really has 20, messages, I think mutt IMAP can not 
> > fetch so much
> > headers. Maybe you need to delete or catalyzes your gmail.
> 
> Garbage. I have over 70,000 emails in my account, over 40,000 of which are
> in the debian-users mailing list folder. I just recently reinstalled my
I find most of people who using Mutt has this situation. 
They have a lot of mails to download, I think someone should write a stuff to 
download 
all mails from mailing list. This will save a lot of project and time.
So that you do not need to save those mails from mailing list.
And this stuff should have some options: download from a time point ..., etc.
And should work with Mutt. This will be a awesome stuff.
> computer, and had to re-fetch all 40K headers, and while it took a while to
> do so over IMAP, it did so successfully, without hiccup.
> 
> --
> . o .   o . o   . . o   o . .   . o .
> . . o   . o o   o . o   . o o   . . o
> o o o   . o .   . o o   o o .   o o o



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: IMAP fetch header failed

2011-10-23 Thread stardiviner
=> On [2011-10-23 14:28:03 +0800]:
 du yang Said: 
> On Sunday 10/23/11 14:02:01 CST, stardiviner wrote:
> > => On [2011-10-23 10:56:38 +0800]:
> >  du yang Said: 
> > If your Gmail INBOX really has 20, messages, I think mutt IMAP can not 
> > fetch so much
> > headers. Maybe you need to delete or catalyzes your gmail.
> I subscribed some mailing lists, so the mailbox is increasing rapidly.
> I don't want to delete mails within one year, so it easily reached
> 20,000.
> But anyway this is a mutt's problem, so I expect to get a solution or
> workaround on mutt's side.
At first, build up some labels so that you can search mailing list, then move 
to differentt labels.
As much as I know, you can make some filter some mailing list to different  on 
gamil.
Then you will have a little mails in INBOX. 
Then when you want to check out mailing list. you can switch mailbox to those 
labels.
> 
> -- 
> Best Regards,
> du yang



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: IMAP fetch header failed

2011-10-22 Thread stardiviner
=> On [2011-10-23 10:56:38 +0800]:
 du yang Said: 
> Hi,
> 
> I have a gmail INBOX with more than 20,000 messages. I configured mutt
> IMAP to this mailbox. For this is the first time to this mailbox, mutt
> try to fetch all the headers at the beginning and always got the
>  problem "tls_socket_read (A TLS packet with unexpected length
> was received.)" when just fetched about 5000 headers.
> 
> I've to set imap_keepalive to 300, 100, 30 and 10, but without
> success. mail_check and timeout is 30 and 10 respectively. I remember
> mutt can continue to fetch the remaining headers after a restart, but
> now mutt always fetch all the headers after the failure.
> 
> Here are some error information with debug level 5:
> 
> [2011-10-23 08:16:18] tls_socket_read (A TLS packet with unexpected
> length was received.)
> [2011-10-23 08:16:22] imap_cmd_step: Error reading server response.
> [2011-10-23 08:16:22] Error opening mailbox
If your Gmail INBOX really has 20, messages, I think mutt IMAP can not 
fetch so much
headers. Maybe you need to delete or catalyzes your gmail.
> 
> 
> Who can give me some suggestions to solve or workaround this problem to
> get mutt working?
> 
> Thanks in advance.
> 
> Best regards,
> du yang
> -- 
> oooO:
> (..):
> :\.(:::Oooo::
> ::\_)::(..)::
> :::)./:::
> ::(_/



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: watch/monitor mailbox and notify new mails

2011-10-22 Thread stardiviner
=> On [2011-10-22 23:01:52 +0800]:
 du yang Said: 
> On Saturday 10/22/11 19:26:52 CST, stardiviner wrote:
> > I have googled some ways to watch(monitor) mailbox(I use maildir) and 
> > Notify when have new mails.
> > First one is use some scripts. I found one on github that monitor maildir 
> > can notify.
> > This method should be more simple.
> > Second is use mutt's own status_format = "filter '' |" to pipe to a 
> > script. then script will 
> > notify you. but I use sidebar patch, this method can not display 
> > status_format any more.
> > I have tried those method. 
> > Or maybe write one script to run in cron to watch maildir.
> > 
> > Anyway, I have not find good method still.
> > If you have any idea about this. Or if you have some good hints or 
> > suggests. please tell me, thanks.
> > 
> 
> If you are looking for a desktop widget, you can try gnubiff, xbiff2,
> xbiff, and etc. the first one supports multiple mailbox. the second
> seems just support only one mailbox. the last one xbiff only support
> mbox. So gnubiff is most probably suitable for you.
I will try this gnubiff. thanks du yang.
> 
> If you just need a notify program, you can also try libnotify. Use a
> script to check new mails and use the command notify-send to send
> notifications.
> 
> I personally like the small and simple program xbiff, so I use  
> a C program + xbiff + libnotify. which the C program is use to check
>  mailboxes and then write a mbox file which could be monitored by xbiff. 
> 
> Best regards,
> du yang
> -- 
> oooO:
> (..):
> :\.(:::Oooo::
> ::\_)::(..)::
> :::)./:::
> ::(_/



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: watch/monitor mailbox and notify new mails

2011-10-22 Thread stardiviner

=> On [2011-10-22 16:34:34 +0200]:
 Sebastian Tramp Said: 
> On Sat, Oct 22, 2011 at 07:26:52PM +0800, stardiviner wrote:
> 
> Maybe fsniper is for you: A tool that monitors a given set of
> directories for new or modified files then applies rule based scripts
> https://github.com/l3ib/fsniper
This is not a simple way. but this is a good tool really. Thanks very much.
I do not know whether monitor maildir is hard to do with script. but usually 
script 
is more simple then install one stuff.
> 
> I've never tried out myself but its on my roadmap - currently I start my
> scripts cron based.
> 
> Best regards
> 
> Sebastian Tramp
> 
> > I have googled some ways to watch(monitor) mailbox(I use maildir) and 
> > Notify when have new mails.
> > First one is use some scripts. I found one on github that monitor maildir 
> > can notify.
> > This method should be more simple.
> > Second is use mutt's own status_format = "filter '' |" to pipe to a 
> > script. then script will 
> > notify you. but I use sidebar patch, this method can not display 
> > status_format any more.
> > I have tried those method. 
> > Or maybe write one script to run in cron to watch maildir.
> > 
> > Anyway, I have not find good method still.
> > If you have any idea about this. Or if you have some good hints or 
> > suggests. please tell me, thanks.
> 
> 
> -- 
> WebID: http://sebastian.tramp.name

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: combine two macros into one (maildir-utils)

2011-10-22 Thread stardiviner
It can work. thanks. the way to prompt search parameters is ugly.
I am trying to write one script like my original mairix script.
It will be better.

=> On [2011-10-22 14:12:41 +0200]:
 Toby Cubitt Said: 
> On Sat, Oct 22, 2011 at 04:12:31PM +0800, stardiviner wrote:
> > Is there a way to combine bellowing two macros into one macro ?
> > Because I find it is not convenient that press F8 to search with type
> > and then press F9 to view result.  I hope press one key, after type
> > search string. then directly jump to result.
> > 
> > macro index  "mu find --clearlinks --format=links 
> > --linksdir=~/.mutt/mails/Search " "mu find"
> > macro index  "=Search" "mu find results"
> > 
> > This example can do this. I have not complete combining even I tried
> > many times.  macro index,pager,browser ,f
> > "~/.mutt/scripts/mymairix=Searcht~="
> 
> I have the following macro configured for mu searches:
> 
> macro index,pager \CS "[[ -d ~/.mu/results ]] && rm -r 
> ~/.mu/results; mkdir -p ~/.mu/results/cur ~/.mu/results/new 
> ~/.mu/results/tmp\n~/.mu/results\nmu 
> find --format=links --linksdir ~/.mu/results --clearlinks  " "mu-find"
> 
> Invoking that brings up a shell command line, where typing the mu
> search terms at the end and hitting  takes you directly to the
> search results.
> 
> Note that the initial deleting-then-recreating the ~/.mu/results maildir
> part of that macro is purely cosmetic. When typing the new search terms,
> I prefer to see an empty folder instead of the results of whatever the
> last search I ran was. The (redundant in the above macro) --clearlinks
> option to mu clears out the old results as soon as the search is run, so
> the following would work fine too if you don't care about this cosmetic
> issue:
> 
> macro index,pager \CS 
> "~/.mu/results\nmu find --format=links 
> --linksdir ~/.mu/results --clearlinks  " "mu-find"
> 
> HTH,
> 
> Toby
> -- 
> Dr T. S. Cubitt
> Mathematics and Quantum Information group
> Department of Mathematics
> Complutense University
> Madrid, Spain
> 
> email: ts...@cantab.net
> web:   www.dr-qubit.org

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


watch/monitor mailbox and notify new mails

2011-10-22 Thread stardiviner
I have googled some ways to watch(monitor) mailbox(I use maildir) and Notify 
when have new mails.
First one is use some scripts. I found one on github that monitor maildir can 
notify.
This method should be more simple.
Second is use mutt's own status_format = "filter '' |" to pipe to a script. 
then script will 
notify you. but I use sidebar patch, this method can not display status_format 
any more.
I have tried those method. 
Or maybe write one script to run in cron to watch maildir.

Anyway, I have not find good method still.
If you have any idea about this. Or if you have some good hints or suggests. 
please tell me, thanks.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


combine two macros into one (maildir-utils)

2011-10-22 Thread stardiviner
Is there a way to combine bellowing two macros into one macro ?
Because I find it is not convenient that press F8 to search with type and then 
press F9 to view
result.
I hope press one key, after type search string. then directly jump to result.

macro index  "mu find --clearlinks --format=links 
--linksdir=~/.mutt/mails/Search " "mu find"
macro index  "=Search" "mu find results"

This example can do this. I have not complete combining even I tried many times.
macro index,pager,browser ,f 
"~/.mutt/scripts/mymairix=Searcht~="

Thanks for this. 

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: how to automatic save mails to a folder from index.

2011-10-21 Thread stardiviner
=> On [2011-10-21 14:02:01 +0800]:
 du yang Said: 
> On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote:
> > How to *automatic* save mails from pyt...@python.com in INBOX/ to folder 
> > Python/ 
> > when I quit or switch mail folders.
> > I have readed man muttrc, and mutt wiki, can not find a good solution.
> > I tried to search mutt mailing list archive, not found too.
> > I think save-hook cannot do this. maybe some triggers can do this.
> > 
> > Thanks in advance.
> > 
> 
> Try to use a macro like this,
> 
> folder-hook "=INBOX" "push ' ~f 
> pyt...@python.com=Python/'"
This almost can arrive my destination. Is there a way to make it only execute 
this hook when you
leave Mutt ? I usually press *q* to leave Mutt.
Maybe I can rebind key *q* with this hook, and add *quit* behind this hook. 
this seems can not work.
Do you have better solution ?
> 
> -- 
> oooO:
> (..):
> :\.(:::Oooo::
> ::\_)::(..)::
> :::)./:::
> ::(_/



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: mairix can not index on some mailbox

2011-10-18 Thread stardiviner
=> On [2011-10-18 23:09:15 +0200]:
 Jostein Berntsen Said: 
> 
> You could also try the mairix list to see if that can help you resolve this:
> 
> https://lists.sourceforge.net/lists/listinfo/mairix-users
> 
Thanks, Jostein.
> 
> Jostein
> 

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: mairix can not index on some mailbox

2011-10-17 Thread stardiviner
=> On [2011-10-17 17:05:37 +0200]:
 Marco Giusti Said: 
> On Mon, Oct 17, 2011 at 10:55:21AM +0800, stardiviner wrote:
> > WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
> > WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
> > WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
> 
> try this instead:
> 
>   $ ls -l /home/chris/.mutt/mails

here is my result:
And I have check cur,new,tmp dir under Arch etc mailbox. They have same 
premission with other 
correct mailbox.

total 7252
drwxrwxr-x 5 chris chris4096 2011-09-16 09:20 apps
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Arch
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Awesome
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Drafts
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 FVWM
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Important
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 INBOX
drwxrwxr-x 5 chris chris4096 2011-09-29 19:27 Linux
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Maemo
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 mbox
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Mutt
drwxrwxr-x 5 chris chris4096 2011-10-16 14:30 others
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Perl
-rwxrwxr-x 1 chris chris 7324637 2011-10-18 14:21 procmail.log
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Python
drwxrwxr-x 6 chris chris4096 2011-08-30 22:01 RSS
drwxrwxr-x 5 chris chris4096 2011-08-30 22:25 Search
drwxrwxr-x 5 chris chris4096 2011-09-13 15:41 security
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Send
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 spam
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Trash
drwxrwxr-x 5 chris chris4096 2011-09-28 21:15 ubuntu
drwxrwxr-x 5 chris chris4096 2011-08-30 22:01 Vim
drwxrwxr-x 5 chris chris4096 2011-09-29 23:39 Web
-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


Re: mairix can not index on some mailbox

2011-10-16 Thread stardiviner
> 
> You can try this instead:
> 
> base=/home/chris/.mutt/mails
> 
> Can there be that there are no mails in the Arch and the 3 other mail 
> folders? 
> Save a mail to the Arch folder i mutt, and try to reindex mairix with "mairix 
> -v"
> 
I have emails in Arch/ etc mailboxes. And I have tried your two method. none of 
them works.
here is the output of command: mairix -v

mairix 0.22, Copyright (C) 2002-2010 Richard P. Curnow
mairix comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the GNU General Public License for details.

WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
Checking message path integrity
Checking to
Checking cc
Checking from
Checking subject
Checking body
Checking attachment_name
0 newly dead messages, 2943 messages now dead in total
No new messages found
Finding all currently existing messages...
Reading existing database...
Loaded 4893 existing messages

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


Re: mairix can not index on some mailbox

2011-10-16 Thread stardiviner
=> On [2011-10-16 13:34:48 +0200]:
 Jostein Berntsen Said: 
> On 16.10.11,19:05, stardiviner wrote:
> > When I execute commadn: mairix -f .
> > I have writen mairixrc and mailboxes for mutt. 
> > and have cur,new,tmp under mailboxes: Arch, FVWM etc.
> > And I Googled this error. Have not find any similar situation.
> > Other mailbox folder can be correct indexed.
> > only bellowing mailbox folder can not.
> > 
> > error:
> > WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
> > WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
> > WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
> > WARNING: Folder path /home/chris/.mutt/mails/Terminal does not exist
> > 
> > Does anybody has any similar erorr ?
> > If you know how to fix this, tell me. thanks.
> > 
> 
> Probably some wrong notation in your ~/.mairixrc. What is the output of:
> 
> ls /home/chris/.mutt/mails/
> 

ls /home/chris/.mutt/mails/
apps Arch Awesome Drafts FVWM Gentoo Important INBOX Linux Maemo mbox Mutt 
others
Perl procmail.log Python RSS Search security Send spam Trash ubuntu Vim Web

mairixrc:
base=~/.mutt/mails
mfolder=Search
database=~/.mutt/mairix/mairixdb
# maildir=.
maildir=INBOX
maildir=Send
maildir=mbox
maildir=Important
maildir=Python
maildir=Perl
maildir=Web
maildir=Arch 
maildir=Maemo
maildir=Gentoo
maildir=ubuntu
maildir=Linux
maildir=Vim
maildir=FVWM 
maildir=Awesome 
maildir=Mutt
maildir=apps
maildir=RSS

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


mairix can not index on some mailbox

2011-10-16 Thread stardiviner
When I execute commadn: mairix -f .
I have writen mairixrc and mailboxes for mutt. 
and have cur,new,tmp under mailboxes: Arch, FVWM etc.
And I Googled this error. Have not find any similar situation.
Other mailbox folder can be correct indexed.
only bellowing mailbox folder can not.

error:
WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
WARNING: Folder path /home/chris/.mutt/mails/Terminal does not exist

Does anybody has any similar erorr ?
If you know how to fix this, tell me. thanks.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


PATTERN written format

2011-10-13 Thread stardiviner
I'm writing hooks. I have to be shame for my poor english. I can not understand 
*man muttrc* 
clearly. So I ask at here.
Does bellowing PATTERN correct ? If it is wrong, can you post correct PATTERN. 
thanks very much.

PATTERN:
1: score "~t '.*comp.lang.pyt...@googlegroups.com'" +3

2: mbox-hook "~f '(kk|aa)@gmail\.com'" =kk

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


Re: external file manager

2011-10-13 Thread stardiviner
=> On [2011-10-11 19:16:13 +0100]:
 Volker Bouffier Said: 
> 
> 
> Dear all,
> 
> is it possible to use an external file manager, for instance to select an 
> attachment. I like ranger much more than the integrated file manager.
> 
cool idea, I like ranger too. hope someone can find out solution.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


how to automatic save mails to a folder from index.

2011-10-10 Thread stardiviner
How to *automatic* save mails from pyt...@python.com in INBOX/ to folder 
Python/ 
when I quit or switch mail folders.
I have readed man muttrc, and mutt wiki, can not find a good solution.
I tried to search mutt mailing list archive, not found too.
I think save-hook cannot do this. maybe some triggers can do this.

Thanks in advance.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


no "N" indicator sign for folder has subfolders

2011-08-04 Thread stardiviner
I put ubuntu-server/ and ubuntu-user/ under ubuntu/
and set mailboxes like ubuntu/
|__ubuntu-user
|__ubuntu-server
When I switch folder with "c", other mailboxes has "N" sign to indicate that
new mails in mailbox, but ubuntu/ dose not. and ubuntu-user too.
I want to know is it possible to add this "N" ?

-- 
Blog: http://stardiviner.tumblr.com/
Homepage: http://stardiviner.dyndns-blog.com
Love Linux -> love code -> like this.


signature.asc
Description: Digital signature


Re: automatic switch mailbox for mairix Search

2011-08-03 Thread stardiviner
-> On [2011-08-03 13:26:11 +0200]:
 Gregor Zattler Said: 
> Hi stardiviner,
> * stardiviner  [03. Aug. 2011]:
> > I find that press "c" to switch mailbox to ".Search" ( This folder is for
> > mairix Search result ) is not easy and cheap enough.
> > I hope to set a bind or macro for this, when I type *,f* 
> > to:some...@gmail.com 
> > then press "Enter", and mutt will automatic switch to ".Search" mailbox.
> > But it almost impossible to set a macro or key-bind for operation after
> > pressing "Enter".
> > There is another way a little simple is set a macro like :
> > macro index cs "=.Search" "switch to mairix Search 
> > result"
> > But I do not think this is simple enough.
> > So, 
> > A WAY TO AUTOMATIC AFTER ENTER !!!
> 
> 
> How about
> macro index  "mairix 
> \"$@\"=findext~="
> macro pager  "mairix 
> \"$@\"=findext~="
>
>  
I Have tested yours. It can not input for mairix. ( this is not important: 
Maildir
will change into not-writable mode )
It is looks like this, right ?
macro index  "mairix \
\"$@\"=.Searcht~="
macro pager  "mairix \
\"$@\"=.Searcht~="



signature.asc
Description: Digital signature


automatic switch mailbox for mairix Search

2011-08-03 Thread stardiviner
I find that press "c" to switch mailbox to ".Search" ( This folder is for
mairix Search result ) is not easy and cheap enough.
I hope to set a bind or macro for this, when I type *,f* to:some...@gmail.com 
then press "Enter", and mutt will automatic switch to ".Search" mailbox.
But it almost impossible to set a macro or key-bind for operation after
pressing "Enter".
There is another way a little simple is set a macro like :
macro index cs "=.Search" "switch to mairix Search result"
But I do not think this is simple enough.
So, 
A WAY TO AUTOMATIC AFTER ENTER !!!

-- 
Blog: http://stardiviner.tumblr.com/
Homepage: http://stardiviner.dyndns-blog.com
Love Linux -> love code -> like this.


signature.asc
Description: Digital signature


check and add PGP key

2011-07-30 Thread stardiviner
I copied PGP key for mutt from wiki. 
And I have set pgp_verify_sig into true.
I still get error on PGP key verify.

error is here: 
[-- PGP output follows (current time: Sun 31 Jul 2011 08:07:52 AM CST) --]
gpg: Signature made Tue 28 Jun 2011 03:47:17 PM CST using DSA key ID AB4DFBA4
gpg: Can't check signature: public key not found
[-- End of PGP output --]

bellowing is my setting.

# -
# Esc-k to mail a GPG key 
# ^K  to extract display key
set pgp_replysign
# when you answer a signed message, the response message will be
# signed too.

# set pgp_replyencrypt
# when you answer an encrypted message, the response message
# will be encrypted too.

set pgp_verify_sig=yes
# Do you want to automatically verify incoming signed messages?
# Of course!

unset pgp_long_ids
# Do not use 64 bits key ids, use 32 bits key ids.

set pgp_entry_format = "%4n %t%f %4l/0x%k %-4a %2c %u"
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch 
--output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - 
%f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 
--armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 
0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose 
--output - --encrypt --textmode --armor --always-trust --encrypt-to 0xC9C40C31 
-- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet 
--no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor 
--always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs 
%r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons 
--list-keys %r" 
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons 
--list-secret-keys %r" 
set pgp_autosign=yes
set pgp_sign_as=5D9F64D8 # 
set pgp_replyencrypt=yes
set pgp_timeout=1800 # time to keep key ID alive
set pgp_good_sign="^gpg: Good signature from"
set pgp_mime_signature_filename = "signature.asc"
set pgp_mime_signature_description = "Digital signature"
set pgp_strict_enc = yes 
# Aside from the basic commands necessary to inter-operate with GnuPG,
# these directives also tell Mutt to automatically sign all outgoing
# messages using key ID 0xC9C40C31 (my key), to encrypt all encrypted mail
# to me as well (for storage in my 'sent' folder, and to cache my
# passphrase for a half hour.  

set pgp_auto_decode = yes 
set pgp_autoinline = no 
set pgp_check_exit = yes 
set pgp_ignore_subkeys = yes 
set pgp_replyinline = no 
# 

-- 
Blog: http://stardiviner.tumblr.com/
Homepage: http://stardiviner.dyndns-blog.com
Love Linux -> love code -> like this.


signature.asc
Description: Digital signature


mairix index error

2011-07-28 Thread stardiviner
1)
I execute command " $ mairix " get this error. 

WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
WARNING: Folder path /home/chris/.mutt/mails/Security does not exist
WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist

2)
And BTW, how to write subfolder in ~/.mairix ? 
I have subfolders like this, ubuntu/, ubuntu/ubuntu-user, ubuntu/ubuntu-server, 
Should I write ubuntu/* in ~/.mairix ?

3)
The third question: I setted in muttrc for mairix like on mutt.wiki. ,f -> 
"mairix bs:linux". there are 540 results. 
But those results are not visual in mutt. they disappeared. How to let mairix 
show results in mutt. and open results like in normal mutt ?

-- 
Blog: http://stardiviner.tumblr.com/
Homepage: http://stardiviner.dyndns-blog.com
Love Linux -> love code -> like this.


signature.asc
Description: Digital signature


color index, only subscribed list can not be colored

2011-06-23 Thread stardiviner
I put subscribed mailing lists and color defining in two file. then source them
in muttrc. 
I tested with this style: commit all of them, then remove commit a little by a 
little. 
Now I find which one causes this problem. 
I define a color for mailing list in color define file. 
{{
color index white black ~u 
color index white black ~l 
color index black green ~T # tagged
color indicator   brightwhite   brightred
}}
~u and ~l are about mailing list. 
when I set this, then I can not use tagged color to color mailing list entry. 
but indicator color can work on mailing list entry. 
weird
other colors define are all fine.

-- 
I will have my own life finally.
I believe myself cause I can.


color does not work

2011-06-23 Thread stardiviner
problem: 
my color scheme can work before. But not, it can not work any more. all of
mails in index are white, and mail context are white too. weird. 
I set some colors about index and body.
I know it is fucking bad to say "weird".

Here is my muttrc config in github: https://github.com/numbchild/dotmutt

But: 
I really can not do anything about that now.
I forget what I did on my configuration files about mutt. And I try to recover
it. But failed. 
I searched man muttrc. and tested some options. all failed. 
I tried all ways I thought. 
Is there anyone can give me some advise about colors ? 
I mean that is there something will affect mutt display colors ? 
like source file rank, and some option will unset colors etc.

Thanks in advance. 

-- 
I will have my own life finally.
I believe myself cause I can.


mailcap setting for archives

2011-06-14 Thread stardiviner
How to set mailcap fot mutt ? I googled it. nothing similar found. 
I want to let mailcap can use some command like gunzip to get a list of 
archive. 
Just like a feature in Ranger file manager. 
If you know mailcap, can you give me an example. Then I will know how to write 
them .
Thanks in advance.

-- 
[ stardiviner ]
site: http://stardiviner.dyndns-blog.com 
I try to detoxify my memory. 
Forgotten is not a disappointment.