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 F8 shell-escapemu find --clearlinks --format=links 
--linksdir=~/.mutt/mails/Search  mu find
macro index F9 change-folder-readonly=Search mu find results

This example can do this. I have not complete combining even I tried many times.
macro index,pager,browser ,f 
toggle-writeshell-escape~/.mutt/scripts/mymairixenterchange-folder=Searchentersorttdelete-pattern~=enter

Thanks for this. 

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


signature.asc
Description: Digital signature


Help with multiple emails

2011-10-22 Thread 42possibletrash
Hello, I'm new to mutt and in the early stages of migrating over from 
Eudora OSE. My problem is the lack of obvious support for someone with 
several email addresses. I have four email accounts, for which mutt will 
work well with one at a time, but I have no method of swaping. Please 
note that at this time I have not configured any program to receive my 
emails and am only concerned with moving my emails over to be viewed on 
mutt. My .muttrc: http://ompldr.org/vYXUxZQ. When researching this 
problem I came to the conclusion it should be possible to write a macro 
to swap from one email to another, e.g. F1-4. However I am not 
convinced this would be possible now as I am aware each email has it's 
own mailbox, e.g. '/Main', with it's own subdirectories, e.g. '/Inbox'. 
This complicates matters as the script used to find mailboxes is static 
and does not rely on mutts own internal vars, e.g. '$folder'. I am at a 
lose, and would desperately appreciate any help possible.
  I have looked for an answer online but failed. To clarify what I want 
is to be able to swap email accounts within one session of mutt, 
possibly using a set of macro bound keys. I was using mbox format within 
Eudora, but have decided to move to maildir, the conversion seems to 
work perfectly. I have also started this thread online, but 
unfortunately did not get a lot of help: 
http://forums.gentoo.org/viewtopic-t-898276.html. Once I have mutt 
viewing each account properly I will then configure it to receive and 
send emails. Thank you in advance to anyone who can help me. :-)


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


Re: Help with multiple emails

2011-10-22 Thread Gregor Zattler
Hi 42possibletrash, mutt users,
* 42possibletr...@googlemail.com 42possibletr...@googlemail.com [22. Oct. 
2011]:
 My problem is the lack of obvious support for someone
 with several email addresses. I have four email accounts, for which
 mutt will work well with one at a time, but I have no method of
 swaping. 

Mutt supports various using several email addresses in a generic
way.  It is for instance not necessary to separate emails from
different accounts in different mail folders.

First you have to tell mutt about the email addresses you
use -- as opposed to every other email address in emails you
receive. Read 3.11 Alternative Addresses in the fine manual.

The minimum configuration is like this:
alternates ^m...@home.info$
alternates ^m...@work.com$
alternates ^roleacco...@organisation.org$

Then you may for instance limit the index of a mail folder to
only show emails which originate from you with the search pattern
~P or to only show mails which are from you or addressed to you.  

While in the one-email-folder-per-account organisation you for
instance will not find an email from a working colleague because
it's not in the work related mail folder since s/he emailed your
private address...  If you keep all your emails in one folder
then you can limit the index to only show emails from you to
em...@example.com ore from em...@example.com to you respectively
with ~L em...@example.com.

Then there are a few variables to control how mutt reacts in case
you reply to an email.  If for instance reverse_name is set
(default is not set) and the email you are replying to originates
or is addressed to one of your email addresses, mutt uses this
email address in replies, otherwise it will use your email
address as indicated by your OS.

Normally, if you reply to an email the resulting new
email is addressed to the address in the From: header field.  But
if mutt knows which addresses are yours it will arrange to
address the new email to the address in the To: header field if
the original email originated from you (if you for instance want
to ask a person why s/he did not respond to your earlier email).  

If you separate specific emails in specific mail folders then you
can trigger certain settings specific to this mail folders via
folder-hooks.

You may also specify settings for sending and replying via
send-hooks and reply-hooks and mix them.

And last not least you may bind macros to keys.  The macros may
set settings according to what you now are used to as account
settings.

For me a dynamic configuration which automatically chooses
certain settings based on the mail folder I'm viewing and/or the
email I'm replying to is much more comfortable than always having
to remember to press a key first.  But none the less I also have
macros like this:
macro generic \e8 enter-command source 
$HOME/.mutt/profiles/telegr...@gmx.net/settings\n be Gregor Zattler 
telegr...@gmx.net


which stitches all dynamic configuration off and sets things for
a specific role of mine.

 Please note that at this time I have not configured any
 program to receive my emails and am only concerned with moving my
 emails over to be viewed on mutt. My .muttrc:
 http://ompldr.org/vYXUxZQ. When researching this problem I came to
 the conclusion it should be possible to write a macro to swap from
 one email to another, e.g. F1-4. However I am not convinced this
 would be possible now as I am aware each email has it's own mailbox,
 e.g. '/Main', with it's own subdirectories, e.g. '/Inbox'. This
 complicates matters as the script used to find mailboxes is static
 and does not rely on mutts own internal vars, e.g. '$folder'. I am at
 a lose, and would desperately appreciate any help possible.
   I have looked for an answer online but failed. To clarify what I
 want is to be able to swap email accounts within one session of mutt,
 possibly using a set of macro bound keys. I was using mbox format
 within Eudora, but have decided to move to maildir, the conversion
 seems to work perfectly. I have also started this thread online, but
 unfortunately did not get a lot of help:
 http://forums.gentoo.org/viewtopic-t-898276.html. Once I have mutt
 viewing each account properly I will then configure it to receive and
 send emails. Thank you in advance to anyone who can help me. :-)

For this to achieve it's best to use folder-hooks.  you enter a
folder and your settings are set up accordingly.


Mutt is extremely flexible and customisable but you will have to
read the fine manual.

HTH, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-


Re: add Bcc for lists but not regular e-mail?

2011-10-22 Thread Jim Graham
On Fri, Oct 21, 2011 at 09:14:20AM -0400, Patrick Shanahan wrote:
 * Jim Graham spooky1...@gmail.com [10-21-11 09:02]:
  I'm on several e-mail lists, and none of them send me
  copies of my own e-mail (nor do they offer that option).

 iianm, it is gmail that is not providing you with copies

Ok, but, back to the original question:  Is there a way that
I can configure Mutt to set Bcc: to me for lists that I've
defined, but not for normal e-mail?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye!

Android Apps Listing at http://www.jstrack.org/barcodes.html



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

2011-10-22 Thread Toby Cubitt
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 F8 shell-escapemu find --clearlinks --format=links 
 --linksdir=~/.mutt/mails/Search  mu find
 macro index F9 change-folder-readonly=Search mu find results
 
 This example can do this. I have not complete combining even I tried
 many times.  macro index,pager,browser ,f
 toggle-writeshell-escape~/.mutt/scripts/mymairixenterchange-folder=Searchentersorttdelete-pattern~=enter

I have the following macro configured for mu searches:

macro index,pager \CS shell-escape[[ -d ~/.mu/results ]]  rm -r 
~/.mu/results; mkdir -p ~/.mu/results/cur ~/.mu/results/new 
~/.mu/results/tmp\nchange-folder-readonly~/.mu/results\nshell-escapemu 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 enter 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 change-folder-readonly~/.mu/results\nshell-escapemu 
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


Re: add Bcc for lists but not regular e-mail?

2011-10-22 Thread Michael Graham
On Sat, Oct 22, 2011 at 12:32, Jim Graham wrote:

 Ok, but, back to the original question:  Is there a way that I can configure
Mutt to set Bcc: to me for lists that I've defined, but not for normal e-mail?

I’m no expert on them at all (I only started playing with them yesterday to
choose a sig based on recipient), but have you considered a send-hook?
Something like this *might* work:

 send-hook @mutt.org my_hdr Bcc: y...@address.com

It should maybe read set my_hdr Bcc: y...@address.com.  As I said, I’m not an
expert at all, so hope this at least points you in the right direction.

Mike

-- 
__ __ __
   / /_  ___ _/ /__ _/ / _  __
  /  '_/ _ \/ __/ _ `/ / _ `/ __/ _ \ |/ /Ractonteur, Mostly
 /_/\_\\___/_/  \_,_/_/\_,_/\__/\___/___/ http://koralatov.com/



Re: add Bcc for lists but not regular e-mail? (fwd)

2011-10-22 Thread Jim Graham
Oops...accidentally did a 'r'eplay, not 'L'ist reply

- Forwarded message from Jim Graham spooky1...@gmail.com -

Date: Sat, 22 Oct 2011 08:14:25 -0500
From: Jim Graham spooky1...@gmail.com
To: Michael Graham mich...@skky.org
Subject: Re: add Bcc for lists but not regular e-mail?

On Sat, Oct 22, 2011 at 02:07:45PM +0100, Michael Graham wrote:
 On Sat, Oct 22, 2011 at 12:32, Jim Graham wrote:
 
  Ok, but, back to the original question:  Is there a way that I can
  configure Mutt to set Bcc: to me for lists that I've defined, but
  not for normal e-mail?

 I???m no expert on them at all (I only started playing with them
 yesterday to choose a sig based on recipient), but have you
 considered a send-hook?  Something like this *might* work:
 
 send-hook @mutt.org my_hdr Bcc: y...@address.com

 It should maybe read set my_hdr Bcc: y...@address.com.

I'd tried something similar, which worked about as well as this one,
I'm sad to say  Nothing.  No error, no Bcc (except the blank
header).

Later,
   --jim


-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html



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 F8 shell-escapemu find --clearlinks --format=links 
  --linksdir=~/.mutt/mails/Search  mu find
  macro index F9 change-folder-readonly=Search mu find results
  
  This example can do this. I have not complete combining even I tried
  many times.  macro index,pager,browser ,f
  toggle-writeshell-escape~/.mutt/scripts/mymairixenterchange-folder=Searchentersorttdelete-pattern~=enter
 
 I have the following macro configured for mu searches:
 
 macro index,pager \CS shell-escape[[ -d ~/.mu/results ]]  rm -r 
 ~/.mu/results; mkdir -p ~/.mu/results/cur ~/.mu/results/new 
 ~/.mu/results/tmp\nchange-folder-readonly~/.mu/results\nshell-escapemu 
 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 enter 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 
 change-folder-readonly~/.mu/results\nshell-escapemu 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


Re: add Bcc for lists but not regular e-mail? (fwd)

2011-10-22 Thread Jim Graham
I did it again...regular reply instead of a list reply
My chemobrain (brain nuked by two types of chemotherapy, both very
hard on the brain, plus tumors, plus three brain surgeries, plus
max-dose radiation ... I do at least have an excuse!)

On Sat, Oct 22, 2011 at 02:30:13PM +0100, Michael Graham wrote:

 Perhaps something like this may work for you:
 
 send-hook @mutt.org pushedit-bcckill-liney...@address.comEnter

To keep things completely limited to lists, I modified the above to
change @mutt.org to mutt-users@mutt.org.  When I either do or do not
get the Bcc, I'll reply back here to confirm or deny

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html



Re: watch/monitor mailbox and notify new mails

2011-10-22 Thread Sebastian Tramp
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

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


Re: add Bcc for lists but not regular e-mail? (fwd)

2011-10-22 Thread Jim Graham
On Sat, Oct 22, 2011 at 02:30:13PM +0100, Michael Graham wrote:

 Perhaps something like this may work for you:
 
 send-hook @mutt.org pushedit-bcckill-liney...@address.comEnter

No Bcc.  It didn't work.:-(

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
 Running FreeBSD 7.0  | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html



Re: watch/monitor mailbox and notify new mails

2011-10-22 Thread du yang
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.

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::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


Gmail - add mailing lists to different mailboxes

2011-10-22 Thread Onoie Andrei
Hi there.

I am using Gmail with IMAP connection.

Is it possible to add mails that are from a specific mailing list to a
different mailbox ? I would like to go to a mailbox say, mutt-users and see all
the mails I got from there.


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: Gmail - add mailing lists to different mailboxes

2011-10-22 Thread Leo Vegoda
Hi,

On Sat, Oct 22, 2011 at 06:03:08PM +0300, Onoie Andrei wrote:
 Hi there.
 
 I am using Gmail with IMAP connection.
 
 Is it possible to add mails that are from a specific mailing list to a
 different mailbox ? I would like to go to a mailbox say, mutt-users and see 
 all
 the mails I got from there.

I think you want to have messages sent to a mailing list filtered
into a specific folder automatically and bypass the inbox. You can
do this by creating a rule that adds a label to the messages and
then archives them without marking them as read. Then, you just look
in the relevant IMAP folder with mutt.

HTH,

Leo


Re: add Bcc for lists but not regular e-mail? (fwd)

2011-10-22 Thread David Champion
* On 22 Oct 2011, Jim Graham wrote: 
 On Sat, Oct 22, 2011 at 02:30:13PM +0100, Michael Graham wrote:
 
  Perhaps something like this may work for you:
  
  send-hook @mutt.org pushedit-bcckill-liney...@address.comEnter
 
 No Bcc.  It didn't work.:-(

I haven't tried this and it's only off the cuff, but perhaps a
send2-hook setting $sendmail would work:

#!/bin/sh
# sendmail wrapper for mutt
exec /usr/lib/sendmail $@ my.bcc.addr...@example.com

send2-hook .   set sendmail=/usr/lib/sendmail -oi -oem # or 
whatever
send2-hook mutt-users@mutt.org set sendmail=/path/to/mutt-sendmail -oi -oem

-- 
David Champion • d...@uchicago.edu • IT Services • University of Chicago


Re: add Bcc for lists but not regular e-mail? (fwd)

2011-10-22 Thread Jim Graham
Interesting...  List reply doesn't work if the list is CCd,
and not in the From: field.  I never noticed that before.


On Sat, Oct 22, 2011 at 11:35:41AM -0500, David Champion wrote:
 
 I haven't tried this and it's only off the cuff, but perhaps a
 send2-hook setting $sendmail would work:

I don't even need to try that one.  I gave up on getting AUTH
to work in sendmail, so I've configured Mutt to directly to
smtp.gmail.com and do the authorization.  IT works, and I
never got sendmail (8.14.1) AUTH to work at all

So no, sendmail only handles internal mail on this system.

Thanks anywyas,
   --jim

PS:  In a way, I'm glad to see that this is so difficult...I don't
 feel so bad about not being able to solve it, myself.  :-)

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
 Running FreeBSD 7.0  | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html



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


'r' to lists -- was Re: add Bcc for lists but not regular e-mail? (fwd)

2011-10-22 Thread Chip Camden
Quoth Jim Graham on Saturday, 22 October 2011:
 I did it again...regular reply instead of a list reply
 My chemobrain (brain nuked by two types of chemotherapy, both very
 hard on the brain, plus tumors, plus three brain surgeries, plus
 max-dose radiation ... I do at least have an excuse!)
 

My only excuse is that I'm getting old.  So I put this in my .muttrc:

message-hook .'bind pager l list-reply; bind pager r reply'
message-hook ~l   'bind pager r list-reply; bind pager l reply'

Now 'r' does what I want most of the time, and 'l' does the unusual.

-- 
.O. | Sterling (Chip) Camden  | http://camdensoftware.com
..O | sterl...@camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91  | http://chipstips.com


pgpG9yCEHzJ6W.pgp
Description: PGP signature


trouble with tag-prefix-cond

2011-10-22 Thread Cameron Simpson
I have a folder-hook that's seeming to not work. It is thus:

  folder-hook . 'push :set 
auto_tag=noenteruntag-pattern~Tentertag-pattern~=entertag-prefix-condtag-prefixdelete-messageuntag-pattern~Tenterend-cond:set
 auto_tag=yesenter

(Sorry if that gets folded - it is one line.)

For an assortment of reasons I get multiple copies of messages in my
folders. This I don't mind. However, for readability I try to delete
duplicates on entry to a folder.

My previous efforts in this regard have been damaging, usually that if
there are no duplicates the first mailbox entry gets deleted.

The above macro tries to address this weakness. The log goes:

  - turn off auto_tag
I've been using this do stuff to the tagged messages or the current
message without tag-prfix for a while, and mostly like it.
  - untag all tagged messages, just in case
  - tag all duplicates
  - use tag-prefix-cond to wrap the deleted tagged messages code
to prevent it running if there are no tagged messages
  - untag all, turn auto_tag back on

The doco for tag-prefix-cond says:

  In macros or push commands, you can use the tag-prefix-cond
  operator. If there are no tagged messages, Mutt will “eat” the rest of
  the macro to abort it's execution. Mutt will stop “eating” the macro
  when it encounters the end-cond operator; after this operator the
  rest of the macro will be executed as normal.

Entry to a folder is as if the code never runs.

It has just occurred to me, as I type this, from the name
tag-prefix-cond, that it is not a little if statement but a
variant of tag-prefix - is that the case? Should I just drop the inner
tag-prefix?

Stumped,
-- 
Cameron Simpson c...@zip.com.au DoD#743
http://www.cskk.ezoshosting.com/cs/

BSD code sucks. Of course, everything else sucks far more.
- Theo de Raadt (OpenBSD President)


Re: trouble with tag-prefix-cond

2011-10-22 Thread du yang
On Sunday 10/23/11 05:35:49 CST, Cameron Simpson wrote:
 I have a folder-hook that's seeming to not work. It is thus:
 
   folder-hook . 'push :set 
 auto_tag=noenteruntag-pattern~Tentertag-pattern~=entertag-prefix-condtag-prefixdelete-messageuntag-pattern~Tenterend-cond:set
  auto_tag=yesenter
[...]

 It has just occurred to me, as I type this, from the name
 tag-prefix-cond, that it is not a little if statement but a
 variant of tag-prefix - is that the case? Should I just drop the inner
 tag-prefix?

Yes, tag-prefix-cond is a variant of tag-prefix. normally the
action after tag-prefix would be done on the current selected message
if there is no matching. But tag-prefix-cond will do nothing.

Best regards,
du yang
-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


Re: trouble with tag-prefix-cond

2011-10-22 Thread Cameron Simpson
On 23Oct2011 06:15, du yang duyang@gmail.com wrote:
| On Sunday 10/23/11 05:35:49 CST, Cameron Simpson wrote:
|  I have a folder-hook that's seeming to not work. It is thus:
|  
|folder-hook . 'push :set 
auto_tag=noenteruntag-pattern~Tentertag-pattern~=entertag-prefix-condtag-prefixdelete-messageuntag-pattern~Tenterend-cond:set
 auto_tag=yesenter
| [...]
| 
|  It has just occurred to me, as I type this, from the name
|  tag-prefix-cond, that it is not a little if statement but a
|  variant of tag-prefix - is that the case? Should I just drop the inner
|  tag-prefix?
| 
| Yes, tag-prefix-cond is a variant of tag-prefix. normally the
| action after tag-prefix would be done on the current selected message
| if there is no matching. But tag-prefix-cond will do nothing.

Thanks. I've changed my:

  tag-prefix-condtag-prefix

into:

  tag-prefix-cond

and things seem to be working now.

Cheers,
-- 
Cameron Simpson c...@zip.com.au DoD#743
http://www.cskk.ezoshosting.com/cs/

On two occasions I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?'  I am not able rightly to apprehend the
kind of confusion of ideas that could provoke such a question.
- Babbage


IMAP fetch header failed

2011-10-22 Thread du yang
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


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::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature