Re: Is there any way to prevent the *ll-oo-nn-gg* wait while mutt checks a PGP signature?

2010-11-26 Thread Charles Jie
There is a parameter to turn off the auto-verifying, isn't there?

#unset pgp_verify_sig   # automatically verify message signatures 
(yes)

Just uncomment this line (if not, add it).

best regards,
charlie


On Fri, Nov 26, 2010 at 08:50:15PM +, Chris G wrote:
 On Fri, Nov 26, 2010 at 03:35:20PM -0500, Nathan Stratton Treadway wrote:
  On Fri, Nov 26, 2010 at 19:56:13 +, Chris G wrote:
   Sitting for tens of seconds while mutt retrieves a key from a web site
   is just silly.
  
   Is there a way to turn this off while still allowing me to send (using
   'p') signed messages?
 
  I haven't paid a lot of attention to the Mutt side of configuring GPG
  operation recently (since the setup that I put in place years ago has
  been doing what I need), but off hand it sounds like you may be able to
  do what you would like by commenting out the keyserver line in the
  $HOME/.gnupg/gpg.conf file.
 
  Once you do that, GPG won't try to automatically download keys for new
  correspondents when checking signatures (it will instead give just you
  a warning that the signature could not be verified), but it shouldn't
  change the way it signs your outgoing messages...
 
 Thanks, I've done that (commenting out the keyserver line), we'll see if
 it works!  :-)

 --
 Chris Green


signature.asc
Description: Digital signature


Re: mailboxes directive not working correctly (a known bug)

2010-11-20 Thread Charles Jie
Hi,

It's a bug introduced in mutt 1.5.19. If you can go back to 1.5.18, you
will be rescued. If not, 'set check_mbox_size=yes' before the mailboxes
directive. (It use an alternative method for new-mail checking.)

Please check my recent post with subject:

New mail problem - Why I have to leave a folder twice? (New workaround)

best regards,
charlie

On Sat, Nov 20, 2010 at 09:00:47AM -0400, Monte Stevens wrote:
 On Fri, Nov 19, 2010 at 07:51:33PM -0800, emmanuel_mays...@lynceantech.com 
 wrote:

  For some reason, as soon as I quit my mailbox (with c), it reports in
  the status bar that new mail has been received in the mailbox I am
  just leaving.  All emails are read as far as I can tell.

 Try check_mbox_size.

 --
 Monte


New mail problem - Why I have to leave a folder twice? (New workaround)

2010-11-16 Thread Charles Jie
Hi,

I raised this topic on 2010/8/6 as appended, and suggested going back to
use 1.5.18.  Now I can no more use 1.5.18 (with ubuntu), however I
discover a new workaround: use the 'check_mbox_size' variable in .muttrc.

. On Mandriva 2010.0, which uses mutt 1.5.20, I can hardly live with
  this 'new mail' bug.  I fetched the rpm source of mutt 1.5.18 and
  built its rpm successfully. Then I lived on happily.

. Recently I transfer to Ubuntu 10.10, which uses mutt 1.5.20, too.
  The 'new mail' problem goes even worse. Now I can not 'c'(change)
  to a third mailbox with new mail. Mutt just switches between the
  first two mailboxes. Never ends. And I can not live.

. I went to get the 1.5.18 from ubuntu pool for my rescue. But this
  time I don't have the same luck. The debian source of mutt 1.5.18
  won't build (with debuild failure) in Ubuntu 10.10.

. I tried to compare the code of mutt 1.5.18 and 1.5.20, and
  discovered that they had provided a way to help when detecting the
  atime and mtime is not reliable. It uses mailbox filesize to check
  new mails instead. Yes, it works. And I survives.

What I did is put a setting to enable 'check_mbox_size' before the
'mailboxes' directive, like below:

set check_mbox_size=yes
#- Enabling this can work around the new_mail bug of 1.5.20, before it's 
fixed.
#-   It uses filesize to decide if a mbox has new mail, instead of using 
atime and mtime.
#-   It must appear before the 'mailboxes' directive. See man:muttrc.
mailboxes =mbox =mbox.work =mbox.club =mbox.ret =mbox.club2 =mbox.misc 
=mbox.fw =mbox.ad =mbox.subscribe =mbox.mutt

Hope it's helpful.

best regards,
charlie


On Fri, Aug 06, 2010 at 10:00:34AM +0800, me wrote:
 Hi,

 Since I upgraded Mandriva from 2009.0 to 2010.0 (for mutt, 1.5.18 to
 1.5.20), now I have to leave an mbox which got new mail twice.

 I sort my incoming mail into 10 mailboxes (mbox type). It's a
 nightmare to check new mail with them when I have to leave each
 twice to really leave a mailbox.

 (Most of the time I leave the read messages in the same mailbox. I
 rename such mailboxes manually by quarter or half-a-year, or I
 automatically rotate them by month.)

 I've searched for this problem and its solution. It's rarely addressed.
 (why?) And the mentioned answers didn't really solve the problem.

 It's ever addressed here:
 http://www.mail-archive.com/mutt-users@mutt.org/msg39101.html

 Someone said it's a bug and have been fixed. But it's not true.

 I've tried a patch about it, and tried a snapshot in March as well,
 but both failed.

 I tried an up-to-date snapshot of Aug. 4 again, but it got worse -
 the 'c' command with now switch between two of my mailboxes without
 ending. It won't change to any other mailbox which really gets new
 mail.

 What's wrong with the update from 1.5.18 to 1.5.20? Can anybody show
 me what are they doing with the 'new mail' flag? (It looks they are
 making some incompatible change.)

 Yesterday, I fetched the 1.5.18 rpm source from Mandriva 2009.0 and
 rebuilt. Now it works so good so smooth, just like in the past 10 years,
 the good old days.

 best regards,
 charlie


Add a header when sending, if signed

2010-09-12 Thread Charles Jie
Hi,

I want mutt to add a header 'X-PGP-Key' if the message is signed
(from 's' command in pgp-menu).

I tried to use 'send-hook' as following:

send-hook ~g 'my_hdr X-PGP-Key: http://wwwkeys.us.pgp.net:11371/...'

while '~g' means to match cryptographically signed messages

The intention of this is to Add the X-PGP-Key header if this
message is signed before sending.

Of course this configuration does not work, because:

1. The send-hook is triggered when composing the message.

2. The send-hook only sees the pattern as about recipients, not
   about anything else.

Do I have any suitable 'hook' to do it?

We can only sign it after the message is finished, right?

So I need a hook which will be triggered when I send the
message (after I decided to sign it). This hook will check if
it's signed and run a my_hdr command to add a header about
keyserver info.

Any clue?

(Though I could always add this header even I don't sign. I
still hope to keep the message cleaner and reduce internet
traffic.)

best regards,
charlie



pgpUOI988Xjla.pgp
Description: PGP signature


Possible to launch Thunderbird to view a mail with images?

2010-09-04 Thread Charles Jie
Dear mutt users,

I've been using mutt for 7 years. From time to time, such idea may flash
in my brain.

I can read most of my daily mail with mutt without problem.

But sometimes some friends may send me an html mail with pretty rich
inline images. Such embedded images need to be seen in right
context (there are related text arround them).

My current practice is bouncing the mail to another user in my linux
box, and launch Thunderbird to get and read it.

I'm wondering if it is possible for my mutt to copy the message to a
temporary mbox file, and launch a GUI mail viewer to view it. (the way a
little like what we do about attachment)

I've checked Thunderbird's command line usage. It accepts a URL
(thunderbird -mail URL) but it doesn't treat it as mbox (but raw
text).

Any idea or experience?

best regards,
charlie



Re: Possible to launch Thunderbird to view a mail with images? (thanks)

2010-09-04 Thread Charles Jie
Hi, thank you for your 3 responses. I've gone through your texts and
those are interesting and helpful.

I do use a browser to read the html part when needed, like Grant and
Andreas said.

I press Enter to call w3m to view it. It's good for most of the
cases, showing images as well if they are remote URLs.

If it's not good enough, I press 'w'(a macro) to call Google Chrome
to view it. It does a better job.

However, in this case I mentioned, it's about a message EMBEDDING many
INLINE images, which are not visible to the browsers.

Why? Because the images are not saved to the filesystem together
with the HTML part.

A GUI mail client like Thunderbird does be able to deal with such a
message and display the html message with those inline images
inserted in the right places.

This is why I have to save the WHOLE message and ask a mail client
to look at it.

Christian's solution looks like doing the job I need, because it feeds
the MESSAGE to the viewhtmlmsg.

Thank you. I like Python and expect to see it more (Most of the time
I code in Perl). I'll give it a try, and report it later.

(Googling 'viewhtmlmsg', I found some previous relevant discussions.)

thanks,
charlie

On Sat, Sep 04, 2010 at 12:59:36PM +0100, Christian Ebert wrote:
 * Charles Jie on Saturday, September 04, 2010 at 18:40:43 +0800
  I've been using mutt for 7 years. From time to time, such idea may flash
  in my brain.
 
 I can read most of my daily mail with mutt without problem.
 
 But sometimes some friends may send me an html mail with pretty rich
 inline images. Such embedded images need to be seen in right
 context (there are related text arround them).
 
 My current practice is bouncing the mail to another user in my linux
 box, and launch Thunderbird to get and read it.
 
  I'm wondering if it is possible for my mutt to copy the message to a
  temporary mbox file, and launch a GUI mail viewer to view it. (the way a
  little like what we do about attachment)
 
 I've checked Thunderbird's command line usage. It accepts a URL
 (thunderbird -mail URL) but it doesn't treat it as mbox (but raw
 text).
 
 Any idea or experience?

 Shameless plug:

 If you're not afraid of Python, you could try viewhtmlmsg of my
 muttils bundle. It seems to do what you want.

 $ viewhtmlmsg -h
 Usage: viewhtmlmsg [options]

 Displays html message read from stdin.  $BROWSER environment may be overridden
 with option -b.

 Options:
   --version show program's version number and exit
   -h, --helpshow this help message and exit
   -s, --safeview html w/o loading remote files
   -k KEEP, --keep=KEEP  remove temporary files after KEEP seconds (0 for
 keeping files)
   -b APP, --browser=APP
 prefer browser APP over $BROWSER environment

 But it is mainly meant to be used from within Mutt via a macro:

 # call viewhtmlmsg from macro
 macro index,pager F7 \
 enter-command set my_wait_key=\$wait_key wait_key=noenter\
 pipe-messageviewhtmlmsgenter\
 enter-command set wait_key=\$my_wait_key my_wait_keyenter\
  view HTML in browser

 macro index,pager F8 \
 enter-command set my_wait_key=\$wait_key wait_key=noenter\
 pipe-messageviewhtmlmsg -senter\
 enter-command set wait_key=\$my_wait_key my_wait_keyenter\
  view HTML (safe) in browser

 c

On Sat, Sep 04, 2010 at 02:58:38PM +0200, Andreas Kalex wrote:

 * Charles Jie ch...@keya.com.tw wrote on 04.09.2010 at 12:50:
 
  My current practice is bouncing the mail to another user in my linux
  box, and launch Thunderbird to get and read it.
 Why don't use a browser to open a html mail?
 I use v to see the attachments of the mail, and scroll to the one which has 
 text like this:
  [text/html, quoted, iso-8859-1, 41K]  on the right side. Now it depends on 
 the entries in mailcap which program is to open.

 Andreas

On Sat, Sep 04, 2010 at 01:03:52PM +, Grant Edwards wrote:

 I use Firefox instead of Thunderbird. In my .mailcap file I have this
 entry:

   text/html; links -force-html -dump %s; copiousoutput; print = firefoxurl %s;

 That uses links to render html by default.  If that's not good
 enough, I hit p in mutt to print the html, and that lauches
 firefox using this script:

 -firefoxurl-
 #!/bin/bash
 set -x
 MRC=mozilla-xremote-client -a firefox
 URL=$1
 if $MRC 'ping()' 2/dev/null ; then
   $MRC openURL($URL,new-tab)
 else
   firefox $URL
 fi
 

 I know that's not quite what you're asking for, but maybe it's a start.

 If that's not good enough, then I just launch Thunderbird manually
 (which is set up to use the same IMAP server that mutt is using).



Re: Hello

2010-08-27 Thread Charles Jie
Hi, Janc,

Welcome! You are using mutt 1.5.17, that's good. (though it's packed in
an older linux distribution.)

1.5.20 has a 'New mail' bug. Before that, everthing works very nice.
Take care when you upgrade your linux.

best regards,
charlie (has gone back to 1.5.18)


On Fri, Aug 27, 2010 at 10:10:57AM +0200, j...@telefonica.net wrote:
 Hello friends.
 Here is a new Mutt fan, I have it configured and working very nice.
 Best regards.

 --
 Jose Angel Navarro Cortes
 email: j...@telefonica.net
 web: http://janc.es/
 Usuario Linux: #49178


Re: Problem with mutt and mailbox changes (currently best 1.5.18)

2010-08-09 Thread Charles Jie
Thank Erik, and suggestion to Jeff,

Before the bug is fixed, I suggest going back to mutt 1.5.18.

I found it has an extra benefit - it opens mailbox much faster than
1.5.20. I don't know why, but you can benchmark it. (I have some
mailboxes of size 1-200MB. The time-saving for them is obvious.)

best regards,
charlie


On Mon, Aug 09, 2010 at 10:34:06PM +, Jeffery Small wrote:
 Erik Christiansen dva...@internode.on.net wrote about open ticket items
 related to the new mail reporting bug:

 Erik:

 Thanks for the information.  It looks like this is a similar problem.  I
 hope that this can get addressed soon as it is a real hassle, and I cannot
 go back to mutt 1.4 because there is a serious 256-character buffering
 problem with the earlier version that is constantly truncating saved mail
 and attachments.  This has been fixed in 1.5.

 Regards,
 --
 Jeff Small


Re: Problem with mutt and mailbox changes

2010-08-08 Thread Charles Jie
Dear Jeffery,

Thank you for your question and hints. I have seen similar problem with
mutt 1.5.20 since half an year ago. (And reported it the other day)

You said: if I do anything that changes the inbox file, such as
deleting a message, then the Gnome mail monitor sees this change and
begins indicating that there is new mail. This is a good discovery. It
looks that mutt 1.5.20 forgets to clear or set something which would
avoid the mail monitor or mutt itself think there is new mail.

(I've rewound my mutt back to 1.5.18, which runs perfectly.) Would you
please check the file status of the mailbox with the 'stat' command?

This is my test on mbox.mutt with mutt 1.5.18:

(1) Before I leave the mail box 'mbox.mutt':
[23:45:20] $ stat mbox.mutt
  File: `mbox.mutt'
  Size: 38403   Blocks: 80 IO Block: 4096   regular file
Device: 805h/2053d  Inode: 687405  Links: 1
Access: (0600/-rw---)  Uid: (  500/ jie)   Gid: (  500/ jie)
Access: 2010-08-08 23:45:10.0 +0800
Modify: 2010-08-08 23:35:02.0 +0800
Change: 2010-08-08 23:35:02.0 +0800

(2) After I left the 'mbox.mutt':
[23:46:36] $ stat mbox.mutt
  File: `mbox.mutt'
  Size: 13651   Blocks: 32 IO Block: 4096   regular file
Device: 805h/2053d  Inode: 687405  Links: 1
Access: (0600/-rw---)  Uid: (  500/ jie)   Gid: (  500/ jie)
Access: 2010-08-08 23:45:10.0 +0800
Modify: 2010-08-08 23:35:02.0 +0800
Change: 2010-08-08 23:46:47.0 +0800

Note: The time of 'Change' is updated to newer than the time of 'Acesss'.
  (Because I deleted a message in it.)

Please help check if your mutt 1.5.20 does the same thing or not.
(You need to delete a message in it.)

best regards,
charlie

On Sun, Aug 08, 2010 at 04:27:53AM +, Jeffery Small wrote:
 I have been using mutt 1.4.2.1i for quite some time on my Solaris 10 system
 with the Gnome desktop manager.  Gnome has an inbox monitor program that
 was working perfectly with mutt 1.4.  It would indicate new mail, and when
 I double-clicked on the monitor icon, it would launch mutt in a pop-up
 xterm window and immediately stop indicating new mail.  I would read and
 process my mail and exit mutt without any problems.

 I just switched to mutt 1.5.20 which is working fine, except that I now
 have a strange new problem with the Gnome mail monitor.  When it indicates
 new mail I double-click on the icon and it launches the new version of mutt
 just fine and stops indicating new mail.  However, if I do anything that
 changes the inbox file, such as deleting a message, then the Gnome mail
 monitor sees this change and begins indicating that there is new mail, when
 in fact, there is none.  This happens whether mutt is still running or has
 been exited.

 I can understand that the monitor is seeing an update on the inbox file
 timestamp due to the content changing, but my question is why didn't this
 ever happen with mutt version 1.4.2.1i?  What was the old version doing that
 the new one is not?  I'm using pretty much the same config file settings.

 Thanks for any insights.

 Regards,
 --
 Jeffery Small


New mail problem - Why I have to leave a folder twice?

2010-08-05 Thread Charles Jie
Hi,

Since I upgraded Mandriva from 2009.0 to 2010.0 (for mutt, 1.5.18 to
1.5.20), now I have to leave an mbox which got new mail twice.

I sort my incoming mail into 10 mailboxes (mbox type). It's a
nightmare to check new mail with them when I have to leave each
twice to really leave a mailbox.

(Most of the time I leave the read messages in the same mailbox. I
rename such mailboxes manually by quarter or half-a-year, or I
automatically rotate them by month.)

I've searched for this problem and its solution. It's rarely addressed.
(why?) And the mentioned answers didn't really solve the problem.

It's ever addressed here:
http://www.mail-archive.com/mutt-users@mutt.org/msg39101.html

Someone said it's a bug and have been fixed. But it's not true.

I've tried a patch about it, and tried a snapshot in March as well,
but both failed.

I tried an up-to-date snapshot of Aug. 4 again, but it got worse -
the 'c' command with now switch between two of my mailboxes without
ending. It won't change to any other mailbox which really gets new
mail.

What's wrong with the update from 1.5.18 to 1.5.20? Can anybody show
me what are they doing with the 'new mail' flag? (It looks they are
making some incompatible change.)

Yesterday, I fetched the 1.5.18 rpm source from Mandriva 2009.0 and
rebuilt. Now it works so good so smooth, just like in the past 10 years,
the good old days.

best regards,
charlie



Re: No locks available (errno 37) while upgrade to Mandrake 9.0

2002-10-02 Thread Charles Jie

I've identified that the problem is at the nfs system, which now has
interoperability problem.

pc1 exports ~/Mail with nfs-utils-0.3.3-3mdk
pc2 mounts it  with nfs-utils-1.0.1-1mdk

I use mutt on pc2, which complains cannot monitor pc1 in syslog, and
No locks available in mutt.

I'm studying nfs documents and plan to upgrade pc1's nfs to 1.0.1 -
though I'm not sure it's the very solution or not.

If any advice available, please help and let me know asap. After all, I
just want to get my mutt work. I don't really like to study nfs.

thanks,
charlie

On Wed, Oct 02, 2002 at 12:38:59PM +0800, Charles Jie wrote:
 Mandrake 9.0 is really trobulesome!

 I've just upgraded from MD8.2 to 9.0 and suffered a lot, including mutt.

 Now my mutt will complain fctrl: No locks available (errno = 37) when
 I open any mbox. This makes the mbox readonly.

 I have no cue how to start trouble-shooting. Help!

 (Further info:
 1. My $MailDir is $HOME/Mail, which is an nfs mounting on another pc
(pc1).
 2. On pc1 (which is still using MD8.2), I can still use mutt as usual
w/o problem.
 3. I've tried to upgrade mutt from 1.3.27 to 1.4. The problem remains.
Even I use the mutt coming with MD9.0, the same problem. So I know
it's system's problem instead of mutt. But I have no experience about
such locking issue with other s/w. So look forward to the help from
you. Thanks.
 )

 charlie



Resolved

2002-10-02 Thread Charles Jie

I've resolved it. It's the nfslock that doesn't function. Detailed as
below:

1. I run /etc/init.d/nfslock status (client of nfs). It shows lockd
   is running but rpc.statd is stopped.

2. Checked man rpc.statd and found that this daemon maintains stuff in
   /var/lib/nfs/statd/sm - but I found all the dirs/files in statd/ have
   strange owner/group attributes.

3. The strange owner attributes is the result of a clean installation of
   MD9.0 over the old system of MD8.2. The dirs/files keep the old uid
   of rpcuser, while the new installation assigns a new value as the uid
   of rpcuser. This inhibits rpc.statd from working.

4. Fixing the owner/group of them, and restarting nfslock, my mutt now
   works well as before.

best regards,
charlie

On Wed, Oct 02, 2002 at 09:46:00PM +0800, Charles Jie wrote:
 I've identified that the problem is at the nfs system, which now has
 interoperability problem.

 pc1 exports ~/Mail with nfs-utils-0.3.3-3mdk
 pc2 mounts it  with nfs-utils-1.0.1-1mdk

 I use mutt on pc2, which complains cannot monitor pc1 in syslog, and
 No locks available in mutt.

 I'm studying nfs documents and plan to upgrade pc1's nfs to 1.0.1 -
 though I'm not sure it's the very solution or not.

 If any advice available, please help and let me know asap. After all, I
 just want to get my mutt work. I don't really like to study nfs.

 thanks,
 charlie

 On Wed, Oct 02, 2002 at 12:38:59PM +0800, Charles Jie wrote:
  Mandrake 9.0 is really trobulesome!
 
  I've just upgraded from MD8.2 to 9.0 and suffered a lot, including mutt.
 
  Now my mutt will complain fctrl: No locks available (errno = 37) when
  I open any mbox. This makes the mbox readonly.
 
  I have no cue how to start trouble-shooting. Help!
 
  (Further info:
  1. My $MailDir is $HOME/Mail, which is an nfs mounting on another pc
 (pc1).
  2. On pc1 (which is still using MD8.2), I can still use mutt as usual
 w/o problem.
  3. I've tried to upgrade mutt from 1.3.27 to 1.4. The problem remains.
 Even I use the mutt coming with MD9.0, the same problem. So I know
 it's system's problem instead of mutt. But I have no experience about
 such locking issue with other s/w. So look forward to the help from
 you. Thanks.
  )
 
  charlie



No locks available (errno 37) while upgrade to Mandrake 9.0

2002-10-01 Thread Charles Jie

Mandrake 9.0 is really trobulesome!

I've just upgraded from MD8.2 to 9.0 and suffered a lot, including mutt.

Now my mutt will complain fctrl: No locks available (errno = 37) when
I open any mbox. This makes the mbox readonly.

I have no cue how to start trouble-shooting. Help!

(Further info:
1. My $MailDir is $HOME/Mail, which is an nfs mounting on another pc
   (pc1).
2. On pc1 (which is still using MD8.2), I can still use mutt as usual
   w/o problem.
3. I've tried to upgrade mutt from 1.3.27 to 1.4. The problem remains.
   Even I use the mutt coming with MD9.0, the same problem. So I know
   it's system's problem instead of mutt. But I have no experience about
   such locking issue with other s/w. So look forward to the help from
   you. Thanks.
)

charlie



Feature request: cross-mbox threading

2002-07-02 Thread Charles Jie

Hi,

Situation:

I usually have to switch between =mbox and =outbox to check the mails on
a specific topic we've gone on for a while. Sometimes, another one, say
=work/project-A, needs to get involved, too.

The same case happens among =mbox.mutt, =outbox, and =mlist/mutt for my
daily life. (=mbox,mutt is the in-coming one, =mlist/mutt is for saving
the mail I'd like to keep.)


Request:

Is it possible to have a cross-mbox-threading function as following:

1. A variable, say ref-mboxes (Type: string, default: =mbox:=outbox),
   to specify related mboxes to reference. The mailbox in front of ':'
   is the main (or working) mail box, the right side lists the mailboxes to
   reference. You can add more reference groups by separating them with
   ';'.

2. A variable, say cross-reference (Type: boolean, default: no), to turn
   on or off the cross-reference. It will make the referenced mail
   appear/disappear on the index.

3. When you work on your coming-in =mbox, you can see the threading also
   reference to those mails in =outbox. (with some display difference)

   Not all the mails in =outbox appear in current work session - only
   those belonging to the threads in =mbox will appear.

   The mails of ref. mailboxes can be read but are read-only. User can
   not delete or edit them. (unless another variable
   'allow-change-ref-mbox' is turned on) It's to avoid confusing.

I found such 3-way cross-reference is quite common in my life, and hope
it to come true. Thanks.

best regards,
charlie



Re: Can not input 8bit chars in command line

2002-04-04 Thread Charles Jie

Thanks for all your help.

I've got the answer - 'unset meta_key'.

Setting meta_key will strip the 8th bit of any 8bit key value, which is
both the key value of alt-key and mbyte characters.

best regards,
charlie

On Wed, Apr 03, 2002 at 10:49:45PM +0800, ¬ö¬K¿³/Charles Jie wrote:
 Hi,

 I can read and write mail of 8bit charset (Traditional Chinese) in mutt.
 But I can not input them in mutt's command line - such as To:, Subject:,
 Search, Alias (the characters from XIM are stripped of the 8th bit).

 Is there a setting to enable 8bit characters in command line at bottom?

 thanks,
 best regards,
 charlie



Can not input 8bit chars in command line

2002-04-03 Thread Charles Jie

Hi,

I can read and write mail of 8bit charset (Traditional Chinese) in mutt.
But I can not input them in mutt's command line - such as To:, Subject:,
Search, Alias (the characters from XIM are stripped of the 8th bit).

Is there a setting to enable 8bit characters in command line at bottom?

thanks,
best regards,
charlie




Possible to send mail at a specified time w/ mutt?

2002-03-19 Thread Charles Jie

Hi,

I'd like to prepare a birthday greeting mail and send it on my friend's
birthday morning.

I do it currently this way:

$ at 6am Mar 25
at mutt -s 'Happy birthday' guy@domain  ~/text/to-guy.eml

But it's not convenient enough. I wish I could do it all in mutt. Is it
possible?

best regards,
charlie



Search pattern: fail to enter mbyte characters

2002-03-18 Thread Charles Jie

Hi,

Is it possible to let mutt accept muilt-byte (eg. Traditional Chinese)
charaters while entering search pattern?

mutt strips the 8th bit. I can not find the setting to tell it not to.
Thanks.

best regards,
charlie




Re: decoding quoted-printable attachement names?

2002-03-11 Thread Charles Jie

Hi,

I've noticed this problem, too. The worse is that mutt refuses to decode
such encoded text in Subject/To/From/Cc if there is intervening spaces.
(very sticky to the standard and not tolerant)

I use procmail to decode such text by myself before reading mail with
mutt. But I only finished the work for the header part. If anybody is
interested in such recipe, I may hurry up the part about attachment names.

best regards,
charlie


On Mon, Mar 11, 2002 at 12:18:32PM +0100, Louis-David Mitterrand wrote:

 Hi,

 Often I receive attachements that carry quoted-printable names like
 (screenshot follows):

 -- Mutt: Attachments
   I 1 no description [text/plain, 8bit, iso-8859-1, 2.9K]
   A 2 =?iso-8859-1?Q?Pr=E9vision_tr=E9so.xls?=[applica/vnd.ms-exc, base64, 4
   A 3 =?iso-8859-1?Q?Pr=E9visions_020304-3_ans[applica/vnd.ms-pow, base64, 1
   A 4 =?iso-8859-1?Q?Pr=E9visions_020304-3_ans[applica/vnd.ms-pow, base64, 1

 When trying to save them Mutt doesn't try to decode their name and
 convert them to accented characters.

 Is there a way to get

   Prévision_tréso.xls

 instead of

   ?iso-8859-1?Q?Pr=E9vision_tr=E9so.xls?

 as a suggested saved name? Or should I blame the remote MUA for not
 complying to certain standards?

 Thanks in advance,




Re: How to display texts encoded in UTF-8?

2002-03-10 Thread Charles Jie

Thank you anyway, Roman.

I'm the only Asian in this mailing list since I was in 3 months ago. I
don't wonder this question can not be answered, or no real answer for
mutt. :-)

best regards,
charlie

On Fri, Mar 08, 2002 at 05:06:35PM +0100, Roman Neuhauser wrote:
  Date: Sat, 2 Mar 2002 08:34:50 +0800
  From: Charles Jie [EMAIL PROTECTED]
  To: mutt [EMAIL PROTECTED]
  Subject: How to display texts encoded in UTF-8?
 
  Hi,
 
  My linux box has locale zh_TW.Big5 (Traditional Chinese). I have the
  following settings in .muttrc and it works well in most of the cases.
 
  set charset=big5
  charset-hook  big5# for the mail missing 'charset'
 
  But from time to time, I may get mail from MUA that encodes in UTF-8.
  Then the pager would fail to display.
 
  Could anybody give a hand? I can not find solution in manual.txt.

 Hi Charles,

 this is what I get when I grep my .muttrc for 'charset':

 set charset = iso-8859-2
 set send_charset = us-ascii:iso-8859-2:utf-8

 and utf-8 messages are displayed just fine. Makes me think you
 should be looking elsewhere. Sorry for not having an answer.




How to get mutt bark for new created mbox?

2002-03-05 Thread Charles Jie

Hi,

Now I have a mail system with 7 mboxes. Some of them are usually cleared
to empty and removed by mutt.

I found that if procmail feeds new mail into such mboxes and creates them,
mutt will not get aware of the new mails. Is it a feature?

best regards,
charlie




Re: How to bind esct to pager as it's done to index?

2002-03-03 Thread Charles Jie

Ah... I see. Thank you all.

The misunderstanding came from that I used to call the screen triggered
by '?' help, and call the very long file manual.txt manual.

Now I take Benjamin's macro for my need. Thanks.

But, BTW, it should be exit instead of quit in the macro.

best regards,
charlie

On Sun, Mar 03, 2002 at 07:20:32AM +, Benjamin Smith wrote:
 On Sun, Mar 03, 2002 at 09:08:41AM +0200, Holger Lillqvist wrote:
  It seems you didn't understand parv's comment. The function tag-thread
  isn't available in the pager. So it is pointless to try to bind a
  non-existent function to a key...

 Yes, but you could write a macro to quit the pager than tag the thread:

 macro pager \eT quittag-thread Tag the current thread

 --
 Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]





Re: How to bind esct to pager as it's done to index?

2002-03-03 Thread Charles Jie

Thank Pat's comment

The inconsistency in manual indicates that such funcions are reasonable
and perhaps useful in PAGER mode, too

* How to request mutt developers to add them to mutt so that we can have
  these functions in more intuitive and natural way?

best regards,
charlie

On Sun, Mar 03, 2002 at 08:12:19AM -0500, MuttER wrote:
  It seems you didn't understand parv's comment The function tag-thread
  isn't available in the pager So it is pointless to try to bind a
  non-existent function to a key

 His confusion MAY come from the manual:

  233  Threaded Mode

   When the mailbox is `sorted'' by threads, there are a few additional
   functions available in the index and pager modes

   D  delete-thread   delete all messages in the current thread
  ^U  undelete-thread undelete all messages in the current thread
  ^N  next-thread jump to the start of the next thread
  ^P  previous-thread jump to the start of the previous thread
  ^R  read-thread mark the current thread as read
  ESC d   delete-subthreaddelete all messages in the current subthread
  ESC u   undelete-subthread  undelete all messages in the current subthread
  ESC n   next-subthread  jump to the start of the next subthread
  ESC p   previous-subthread  jump to the start of the previous subthread
  ESC r   read-subthread  mark the current subthread as read
  ESC t   tag-thread  toggle the tag on the current thread


 NOTICE: above indicates INDEX and PAGER modes

 --
 Pat Shanahan Registered Linux User #207535
   Registered at: http://counterliorg



How to bind esct to pager as it's done to index?

2002-03-02 Thread Charles Jie

Hi,

I'd like the 'ESC t' or meta-key alt-t in pager bound to tag-thread as
in index menu But I failed

I tried:

bind pager esct tag-thread

 There is an error It may be because it's not a single key
 But there is no description about how to name such keys in manual

I tried again:

macro pager esct tag-thread

 It got wrong action though I can see it right with '?'
 It just tags a single message and prompts me to define an alias

* How do people do to bind such 'ESC t' or alt-t key?

(I use mutt-1327i + patchvvvnntp)

Thanks for your help

best regards,
charlie




How to display texts encoded in UTF-8?

2002-03-01 Thread Charles Jie

Hi,

My linux box has locale zh_TWBig5 (Traditional Chinese) I have the
following settings in muttrc and it works well in most of the cases

set charset=big5
charset-hook  big5# for the mail missing 'charset'

But from time to time, I may get mail from MUA that encodes in UTF-8
Then the pager would fail to display

Could anybody give a hand? I can not find solution in manualtxt

best regards,
charlie



mutt's mime decoding is too strict?

2002-02-27 Thread Charles Jie

Hi,

I've posted before about that mutt can not decode a mime qp-encoded
string with raw spaces in it. I was answered that the standard doesn't
accept a raw space in qp-encoded string.

I took it for granted.

But today I happened to find that Perl module MIME::QuotedPrints
encode_qp() also leaves the space as it is. It doesn't encode space as
'=20'.

Thus I turn to check the unix tool 'mimencode' (from package
metamail-2.7) and find it does in the same loose way.

* I would comment that mutt has a too strict strategy to DECODE such
non-standard qp-encoded string, hasn't it?

best regards,
charlie




Re: How to avoid and handle looong lines

2002-02-27 Thread Charles Jie

Hi,

It's my first time to try fmt. And I found some differences between fmt
and vim's gq:

. gq keeps the 1st line's indent and re-fill all the following, while
  fmt keeps the first two lines' indent and re-fill from the 2nd line
. fmt has it's own width (75)
. fmt has a couple of options if you like...

best regards,
charlie

 
  hi joel, i am curious as to why would you prefer 'fmt' than vim's
  built in 'gq' command?
 
   - parv



Help for patching problem (attached)

2002-02-22 Thread Charles Jie

Hi, Vsevolod,

Could you help me identify what's wrong with my patching
patch-1.3.27.vvv.nntp?

There are a couple of failures reported for 3 files. (patch.err)

I have inspected browser.c. and its .rej but can not why - it looks it
should work. (browser.c.rej, buffy.c.rej and compose.c.rej)

Is it because I have an incompatible patch tool?

1. mutt-1.3.27i.tar.gz and patch-1.3.27.vvv.nntp are just downloaded
   yesterday.

2. my patch is patch-2.5.4-9mdk

3. my diff is diffutils-2.7-29mdk

4. It's Mandrake 8.1 box with locale zh_TW.Big.

Many thanks.

best regards,
charlie



$ patch -p0  ../rpm/mutt/patch-1.3.27.vvv.nntp
patching file mutt-1.3.27/ChangeLog.nntp
patching file mutt-1.3.27/OPS
patching file mutt-1.3.27/PATCHES
patching file mutt-1.3.27/acconfig.h
patching file mutt-1.3.27/account.c
patching file mutt-1.3.27/account.h
patching file mutt-1.3.27/attach.h
patching file mutt-1.3.27/browser.c
Hunk #4 FAILED at 323.
Hunk #6 FAILED at 450.
Hunk #7 FAILED at 539.
Hunk #12 FAILED at 984.
Hunk #13 FAILED at 1046.
Hunk #14 FAILED at 1116.
Hunk #15 FAILED at 1371.
7 out of 15 hunks FAILED -- saving rejects to file mutt-1.3.27/browser.c.rej
patching file mutt-1.3.27/browser.h
patching file mutt-1.3.27/buffy.c
Hunk #2 succeeded at 278 with fuzz 2.
Hunk #3 FAILED at 299.
Hunk #4 FAILED at 379.
2 out of 4 hunks FAILED -- saving rejects to file mutt-1.3.27/buffy.c.rej
patching file mutt-1.3.27/commands.c
patching file mutt-1.3.27/complete.c
patching file mutt-1.3.27/compose.c
Hunk #10 FAILED at 598.
Hunk #11 FAILED at 828.
Hunk #12 FAILED at 838.
Hunk #13 succeeded at 868 with fuzz 2.
3 out of 13 hunks FAILED -- saving rejects to file mutt-1.3.27/compose.c.rej
patching file mutt-1.3.27/config.h.in
patching file mutt-1.3.27/configure.in
patching file mutt-1.3.27/curs_main.c
Hunk #5 succeeded at 657 with fuzz 1.
Hunk #6 succeeded at 710 with fuzz 2.
Hunk #7 FAILED at 915.
Hunk #8 FAILED at 1134.
Hunk #9 FAILED at 1181.
Hunk #10 FAILED at 1219.
Hunk #11 succeeded at 1526 with fuzz 1.
Hunk #12 succeeded at 1875 with fuzz 2.
Hunk #13 succeeded at 1920 with fuzz 2.
patch:  malformed patch at line 2112: ue?)) != M_YES)



***
*** 299,306 
return (src);
  }
  
  static void add_folder (MUTTMENU *m, struct browser_state *state,
-const char *name, const struct stat *s, int new)
  {
if (state-entrylen == state-entrymax)
{
--- 323,408 
return (src);
  }
  
+ #ifdef USE_NNTP
+ static const char *
+ newsgroup_format_str (char *dest, size_t destlen, char op, const char *src,
+   const char *fmt, const char *ifstring, const char *elsestring,
+   unsigned long data, format_flag flags)
+ {
+   char fn[SHORT_STRING], tmp[SHORT_STRING];
+   FOLDER *folder = (FOLDER *) data;
+ 
+   switch (op)
+   {
+ case 'C':
+   snprintf (tmp, sizeof (tmp), %%%sd, fmt);
+   snprintf (dest, destlen, tmp, folder-num + 1);
+   break;
+   
+ case 'f':
+   strncpy (fn, folder-ff-name, sizeof(fn) - 1);
+   snprintf (tmp, sizeof (tmp), %%%ss, fmt);
+   snprintf (dest, destlen, tmp, fn);
+   break;
+ 
+ case 'N':
+   snprintf (tmp, sizeof (tmp), %%%sc, fmt);
+   if (folder-ff-nd-subscribed)
+snprintf (dest, destlen, tmp, ' ');
+   else
+snprintf (dest, destlen, tmp, folder-ff-new ? 'N' : 'u');
+   break;
+ 
+ case 'M':
+   snprintf (tmp, sizeof (tmp), %%%sc, fmt);
+   if (folder-ff-nd-deleted)
+snprintf (dest, destlen, tmp, 'D');
+   else
+snprintf (dest, destlen, tmp, folder-ff-nd-allowed ? ' ' : '-');
+   break;
+ 
+ case 's':
+   if (flags  M_FORMAT_OPTIONAL)
+   {
+if (folder-ff-nd-unread != 0)
+  mutt_FormatString (dest, destlen, ifstring, newsgroup_format_str,
+data, flags);
+else
+  mutt_FormatString (dest, destlen, elsestring, newsgroup_format_str,
+data, flags);
+   }
+   else if (Context  Context-data == folder-ff-nd)
+   {
+snprintf (tmp, sizeof (tmp), %%%sd, fmt);
+snprintf (dest, destlen, tmp, Context-unread);
+   }
+   else
+   {
+snprintf (tmp, sizeof (tmp), %%%sd, fmt);
+snprintf (dest, destlen, tmp, folder-ff-nd-unread);
+   }
+   break;
+ 
+ case 'd':
+   if (folder-ff-nd-desc != NULL)
+   {
+snprintf (tmp, sizeof (tmp), %%%ss, fmt);
+snprintf (dest, destlen, tmp, folder-ff-nd-desc);
+   }
+   else
+   {
+snprintf (tmp, sizeof (tmp), %%%ss, fmt);
+snprintf (dest, destlen, tmp, );
+   }
+   break;
+   }
+   return (src);
+ }
+ #endif /* USE_NNTP */
+ 
  static void add_folder (MUTTMENU *m, struct browser_state *state,
+const char *name, const struct stat *s,
+void *data, int new)
  {
if (state-entrylen == state-entrymax)
{
***
*** 344,352 
  

Re: Help for patching problem (attached)

2002-02-22 Thread Charles Jie

Hi, Vsevolod,

Thank you very much for your quick response. And it hit the problem!

I use 'md5sum' to check both downloads. mutt is OK but your patch got a
different MD5.

I download your patch again with Nescape and this time it gets the same
MD5 as that you gave.

I recalled that I downloaded your patch yesterday with Lynx - it didn't
go to disk directly. It happened to be displayed on screen and saved to
disk afterward. This caused the patch to have many changes in tab and
space! Yes, just differences in white spaces. And this is why I could not
identify it with the context, which looks OK in all places.

Thank you again. I'm ready to try it. :-)

best regards,
charlie


On Fri, Feb 22, 2002 at 12:24:27PM +0200, Vsevolod Volkov wrote:
 Hi Charles!

 On Fri, Feb 22, 2002 at 11:22:17AM +0800, Charles Jie wrote:
 CJ Hi, Vsevolod,

 CJ Could you help me identify what's wrong with my patching
 CJ patch-1.3.27.vvv.nntp?


 CJ 1. mutt-1.3.27i.tar.gz and patch-1.3.27.vvv.nntp are just downloaded
 CJyesterday.


 Here are commands to patch mutt:

 vvv md5 *
 MD5 (mutt-1.3.27i.tar.gz) = 88e7e61686b0959733ae3f7cadb07bce
 MD5 (patch-1.3.27.vvv.nntp) = f7e96b2d1f7f72c40ec98cc6da5da889
 vvv tar xzf mutt-1.3.27i.tar.gz
 vvv patch -p0 patch-1.3.27.vvv.nntp
 vvv find mutt-1.3.27 -name '*.rej'
 vvv

 I have no rejects after patching. Probably, you've applied other
 patches before patch-1.3.27.vvv.nntp.




Could I temporarily switch smtp server?

2002-02-10 Thread Charles Jie

Due to an annoying firewall strategy on a mailing list server, I can not
use my own server to send it mail. What I can do is using ISP's smtp
server.

Is it possible for mutt to switch smtp server (by default it uses my
postfix) to my ISP's with send-hook? I didn't find a related variable.

Thanks.

best regards,
charlie




Re: Could I temporarily switch smtp server?

2002-02-10 Thread Charles Jie

Thank you, Scott.

Do you mean that mutt can not have and switch among multiple smtp
servers like netscape does?

best regards,
charlie

On Sun, Feb 10, 2002 at 09:26:48PM -0500, Scott Lambert wrote:
 On Mon, Feb 11, 2002 at 09:52:34AM +0800, Charles Jie wrote:
  Due to an annoying firewall strategy on a mailing list server, I can not
  use my own server to send it mail. What I can do is using ISP's smtp
  server.
 
  Is it possible for mutt to switch smtp server (by default it uses my
  postfix) to my ISP's with send-hook? I didn't find a related variable.

 Just set relay_host=mail.yourisp.com in postfix's main.cf.



Re: mutt doesn't support standard MIME-type filename for attachment?

2002-02-09 Thread Charles Jie

Thank you so much, Byrial.

I'm so much amazed to learn that.

You may know, such message came from Microsoft Outlook Express 5.0. Once
again I learned that MS is that irresponsible for the technology
society. Or it's their trick again to dominate this kind of software.
They've done it in browser - some bad imcompatibilty make people think
netscape crippled. They've also tried to do it to java but were stopped.

I respect those people that are willing to follow standards - it's them
making our life easier, not M$. :-)

best regards,
charlie

On Sat, Feb 09, 2002 at 07:53:01AM +0100, Byrial Jensen wrote:
 On Sat, Feb 09, 2002 at 09:40:16 +0800, Charles Jie wrote:

  But I found mutt doesn't decode them if such encoding happens at
  attachment.
 
  Content-Type: image/gif;
  name==?big5?B?pN+4Zy5naWY=?=
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment;
  filename==?big5?B?pN+4Zy5naWY=?=

 Right. These parameters may not ne encoded this way according to
 RFC 2047, and Mutt won't decode them by default.

 It should help to set the rfc2047_parameters configuration
 variable.

  I did experiments and sent me a file in attachment with Chinese
  filename. Mutt displays OK. But it uses a different and strange
  encoding:
 
  ontent-Type: text/html; charset=big5
  Content-Disposition: attachment;
  
filename*=big5''%A6p%A6%F3%BF%EF%A4%40%B1i%A6n%A7%C9%AD%DD%BD%CD%BA%CE%AB%BA%2Ehtm
  Content-Transfer-Encoding: 8bit
 
  What's the matter?

 This is the right way to be it: encoding as specified in RFC 2231.



Re: Sorting in mailbox question

2002-02-08 Thread Charles Jie

1. I agree that this is a good compromise for the need of sorting for
   index.

* 2. And I concern a pre-mentioned sorting need - about file browser. We
   need at least two levels: folder/file and then name. Could this be
   considered to improve at the same time?

3. About qsort, (I don't know how mutt is coded with qsort , but I have
   some experiences using qsort to do multiple-level sorting on files.),
   my approach will focus on the fcmp() function(fed to qsort), which
   you can have arbitrary levels of sorting like below:

   fcmp(e1, e2)
   {
   for (i = 0; i  levels; i++)
   {
   sort_method_function_pointer = sort_with[i];
   cmp = (*sort_method_function_pointer)(e1, e2);
   if (cmp) return cmp;
}
return 0;
}

A logic like this avoids multiple uses of qsort or a special
mutt_qsort(). What it adds is just a for-loop and an array. It won't
probably have an impact on performance because most of comparison
will just stop at 1st or 2nd level.

best regards,
charlie


On Wed, Feb 06, 2002 at 01:13:13PM -0500, Daniel Eisenbud wrote:
 I've been planning to do this for a while.

 It seems to me that the only time that more than two levels of sorting
 is useful is when the first level is threads.  If anyone can give me a
 plausible scenario where they'd want more than three, or more than two
 unthreaded, I'll think about my approach.  But for the moment the right
 thing to do seems to be to break threading out into its own config
 variable.  So you can set

 threads=forward
 threads=reverse
 or
 threads=off

 and then sort and sort_aux are what's used for secondary and tertiary
 sorting, or primary and secondary if threads=off.  Make sense to people?

 -Daniel




mutt doesn't support standard MIME-type filename for attachment?

2002-02-08 Thread Charles Jie

My locale is zh_TW.Big5. Surely I often receive mail encoded in big5.

Mutt does a good job in decoding the Chinese text in Subject and From,
which appears rawly as =?big5?B?=?= (base64. quoted-printable
OK, too).

But I found mutt doesn't decode them if such encoding happens at
attachment.

Content-Type: image/gif;
name==?big5?B?pN+4Zy5naWY=?=
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename==?big5?B?pN+4Zy5naWY=?=

I did experiments and sent me a file in attachment with Chinese
filename. Mutt displays OK. But it uses a different and strange
encoding:

ontent-Type: text/html; charset=big5
Content-Disposition: attachment;

filename*=big5''%A6p%A6%F3%BF%EF%A4%40%B1i%A6n%A7%C9%AD%DD%BD%CD%BA%CE%AB%BA%2Ehtm
Content-Transfer-Encoding: 8bit

What's the matter?

best regards,
charlie




Re: [OT] Re: Wish about mutt's file browser

2002-02-05 Thread Charles Jie

Hi, Justin,

I wish I could find any diagnostic tool for my KDE of Mandrake 8.1. It
does have some problems, like the damn small and vague fonts. It hangs
w/o apparent reason from time to time. You use XKill to kill a window on
strike, then the whole desktop gets on strike. I don't think it's more
stable than MS windows. :-) Though for sure, its kernel is more robust
that I can still telnet and login from another machine to reboot it.

The bad thing is that the current KDE is not like what I learned from
Running Linux. Now I don't really trust the gui configuration tool,
which doesn't look doing the right job, changes files under the surface
that I have no chance to backup, verify or restore.

I need some right documents about KDE so that I can handle and improve
the situation. It's not yet time to enjoy. :-)

best regards,
charlie

On Mon, Feb 04, 2002 at 11:56:01AM -0500, Justin R. Miller wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Said Charles Jie on Tue, Feb 05, 2002 at 12:46:17AM +0800:

  1. The file manager Konqueror is not mature (crash so oftern)

 If it crashes, then your setup has issues.  It has been stable for
 years... even for opening big directories like /dev.




Wish about mutt's file browser

2002-02-04 Thread Charles Jie

There do be something I miss since I moved from MS-windows to linux -
the file manager. (But I mean the old style one instead of the web-style.)

Its features:
  . A directory tree at left side - very easy to trace down a branch
  . A listing of directory content at right side, while
- A list of sorted folders come first
- A list of sorted files follow.
  . You can click any title (Name, Ext, Size, Date...) to sort them
- But folders and files are always put separated - that's a good
  practice

And the pop-up dialog for file selection is pretty convenient:
  . A 'back' button allows you to go up one level of directory
  . A 'new' button allows you to create new directory
  . A file (or folder) name template - copy the file name you select so
that you can edit it.


Now let's see linux (for me, Mandrake 8.1):
1. The file manager Konqueror is not mature (crash so oftern)
2. The 'ls' don't group directories/files into two part.
   - If you code something to achieve it, you lose the COLORs.
*3. Mutt's file browser - also mix up directories and files, which hurts
   eyes.
   - We also want an option to IGNORE the cases of file/folder names in
 sorting.

- any patch can help?

File system is everything. If we can not deal with it smoothly, life is
tough.

best regards,
charlie



Re: Wish about mutt's file browser

2002-02-04 Thread Charles Jie

Hi, Philip,

Thank you for your idea. This does keep the colors.

I rewrite it as:

function d()
{
x=`find * -type d -maxdepth 0`
[[ -n $x ]]  l -d $x
x=`find * -type l -maxdepth 0`
[[ -n $x ]]  l $x
x=`find * -type f -maxdepth 0`
[[ -n $x ]]  l $x
unset x
}

to avoid redundant output while nothing *found*. It works fine w/o
delay.

* However, I wish mutt's file browser can also improve like this to make
  our life easier. :-)

best regards,
charlie

On Mon, Feb 04, 2002 at 11:53:58AM -0500, Philip Mak wrote:
 On Tue, Feb 05, 2002 at 12:46:17AM +0800, Charles Jie wrote:
  2. The 'ls' don't group directories/files into two part.
 - If you code something to achieve it, you lose the COLORs.

 Try typing this and see if it does what you want:

 ls -d `find * -type d -maxdepth 0`; ls `find * -type f -maxdepth 0`

 You could put this in your .bashrc (or equivalent file):

 alias dir=ls -d `find * -type d -maxdepth 0`; ls `find * -type f -maxdepth 0`

 and then just type dir and you will see the directories, followed by
 the files, and it's sorted and has color.

 Warning: It might not work right for directories that have a huge
 number of files due to limits in argument list length.



Pity that mutt doesn't read news - what's the best match?

2002-01-31 Thread Charles Jie

I have been a netscape user. Now I'm satisfied with mutt and will not go
back to netscape except one thing - reading news groups.

Could any Mutter suggest a good news reader of mutt style? (Highly
customizable)

thanks,
charlie



Re: Pity that mutt doesn't read news - what's the best match?

2002-01-31 Thread Charles Jie

Great! Thank you all.

And I need some further suggestions:

* Which is better for me to start? Using slrn or using the patch for mutt?

* After a long time, which would be more probable for my working mode?
  mutt + slrn, or mutt + patches? (ie ultimate mode of using mail/news)

best regards,
charlie

On Thu, Jan 31, 2002 at 11:44:24AM -0600, Jeremy Blosser wrote:
 On Feb 01, Charles Jie [[EMAIL PROTECTED]] wrote:
  I have been a netscape user. Now I'm satisfied with mutt and will not go
  back to netscape except one thing - reading news groups.
 
  Could any Mutter suggest a good news reader of mutt style? (Highly
  customizable)

 SLRN.  Much of Mutt's user interface was based on SLRN originally.
 http://slrn.sourceforge.net/

 Also, there are various patches to make Mutt do NNTP, if that's your thing.
 See http://www.mutt.org/links.html#patch.  Most people seem to use
 Vsevolod Volkov's.





Re: [OT] Exit status (was Re: getmail bug reported: failed to work with procmail or maildrop)

2002-01-19 Thread Charles Jie

Hi, Derek,

Thank you very much for your example and patient explanation. That's
pretty helpful. It's clear enough, while I also check wait(2) for
complete document. (I have no that book. Maybe go buy it if it's pretty
good.)

I'm trying to find out what the exit code 0xB4 means.

best,
charlie


On Sat, Jan 19, 2002 at 12:53:13AM -0500, Derek D. Martin wrote:
 At some point hitherto, Charles Jie hath spake thusly:
Aborting... (command /usr/bin/maildrop ~/.maildroprc returned 19200 
(maildrop: signal 0x06))
   
I can not explain the 'returned 19200'. For someone's exercise. ;-)
  
   It's the exit code and the signal, encoded in a standard format.  It's
   not just the exit code.
 
  Really? That's beyond my knowledge. Pleae cite me for further info.

 Well, I haven't seen the code, but it's probably the status field of
 the wait(2) system call.  For details, see man 2 wait.  Here's a
 little program that will give you a breakdown:

 Assuming this is what we're dealing with, it should mean that the
 program exited normally (WIFEXITED = 1) and that the exit status was
 0x4b, or 60 decimal.  It was not killed by a signal (WIFSIGNALED = 0),
 nor was it stopped (WIFSTOPPED = 0).  The value 4b associated with the
 WSTOPSIG macro is meaningless, because WIFSTOPPED is false.  There's
 also a good discussion of this in W. Richard Stevens, Advanced
 Programming in the Unix Environment if you're interested.




How to pipe attachment to netscape?

2002-01-18 Thread Charles Jie

Previously I have this in my .mailcap:

text/html; netscape -remote openfile\\(%s\\)

But I change to use this for speed:

text/html; lynx %s; nametemplate=%s.html

* I still want to view the attachment with netscape as an alternative if
  it's worth the effort. I plan to have a macro to do it. But could I
  use pipe? (I see the problem with %s.) Is there any trick for it?

* And strange, now my lynx just show the source content of html instead
  of the previous formated view. What's
  wrong? :-(

best,
charlie



getmail bug reported: failed to work with procmail or maildrop

2002-01-18 Thread Charles Jie

(I post it to mutt-users, too, because I called for help here first and I
realize many mutt users want getmail very much to assist mutt, like me.)

SYMPTOM

getmail always reports things like below in logfile:

retrieved message 3939610e6c2e596fee8bbb94d4c03a54
new message [EMAIL PROTECTED]: from #@[]
Aborting... (command /usr/bin/procmail -m /home/jie/.procmail-filter 
returned -1 ())

and you'll repeately receive the same mail in your mailbox, while
ignoring the rest mails in remote pop server.

ANALYSYS

1. I can not blame procmail because it finished delivery, it has no
   error in its log, and it exits with 0 if I run it from bash(1).

2. I check procmail mailing list archive: 2001-12/msg00036:

   Re: Procmail returning -1 (trace of procmail spawned from getmail)

   which concluded:

   That getmail is seeing a different exit status would seem to
   indicate that there's a bug in getmail...

3. I recalled and checked bash(1) that exit values range only from 0
   to 255. The 'returned -1' is strange.

4. I looked into getmail.py and identified where the message from.
   It appears like:

cmd = popen2.Popen3 (command, 1, bufsize=-1)
...

r = cmd.poll ()
if err or r:
raise getmailDeliveryException, 'command %s returned %i (%s)' \
 % (command, r or 0, err)

5. I searched in Web for what's poll (I have no idea about
   Python.) and get:

class Popen3
  Class representing a child process.  Normally instances are
  created by the factory functions popen2() and popen3().


poll(self)
Return the exit status of the child process if it has finished,
or -1 if it hasn't finished yet.
wait(self)
Wait for and return the exit status of the child process.


6. Now it's clear that getmail.py using 'poll' is responsible for
   the early aborting. getmail should not quit the game just because
   his team member can not work as fast as him. ;-)

   That 'poll' returns -1 doesn't indicate an error. It's just the
   case the child process has not yet finished. It's not an exit
   value of child process, either.

ACTION

Fix the bug by replacing the 'poll' with 'wait' in /usr/lib/getmail/getmail.py.

Now my getmail does a good job.

best regards,
charlie

P.S.

I've tried to use maildrop other than procmail, while having the
following log message:

Aborting... (command /usr/bin/maildrop ~/.maildroprc returned 19200 (maildrop: 
signal 0x06))

I can not explain the 'returned 19200'. For someone's exercise. ;-)




How to have a flag in index_format showing number of attachment?

2002-01-13 Thread Charles Jie

I'd like to make the index_format show number (or existence) of attachment in
message, but failed to find a way.

It is usual to see a mark of attachment in GUI MUA's, isn't it? Could
mutt do it?

charlie



Re: Color mails which are a reply to a mail from me?

2002-01-12 Thread Charles Jie

Hi, Justin,

How about sharing your 'regex' here for our reference?

I've tried to write one but found it's inefficient due to searching in
all the message bodies (~b). How do you think about it?

* Is it possible to limit the lines to scan for message body? I think
  only 5 lines at the top and bottom is enough. (Refer to Vim's
  modeline concept - for the majority of cases my name would only
  appear at top or bottom of the message.)

BTW, I found I can not handle mutt's regexp though I'm an experienced
Perl programmer. :)

  color index red default '~b (Charles|Charlie)'  = Unmatched (

not to mention:

  color index red default '~b Charl(es|ie)'  = Unmatched (

* Could anybody explain mutt's operator precedence and association
  criteria?

best,
charlie


On Sat, Jan 05, 2002 at 06:09:31PM -0500, Justin R. Miller wrote:
 Thus spake Gerhard Siegesmund ([EMAIL PROTECTED]):

  I don't know if it is at all possible, but I loved this feature with
  crosspoint (in the old times of fido-net). Is it possible to color (in
  the index) a mail which is a reply to a mail from me? So that I can
  see very fast if someone answered me in a list? (Hope this is not a
  FAQ).

 I have a regex color set up for any mail that mentions my name in the
 body, since I'll usually be attributed in a followup on the lists I'm
 on.  That works well for me...



msg22995/pgp0.pgp
Description: PGP signature


Like to see your script

2002-01-11 Thread Charles Jie

Thank you, Chris. I'm glad to see/use your script with my mutt. Please
post it.

I've ever thought to leave a mark for 'receipt-sent' in the header with
a specific field (say, X-Receipt) or some common field. But it looks
making management of mbox complicated. Your marking strategy should be
better.

best regards,
charlie

On Mon, Jan 07, 2002 at 08:43:48AM -0600, Chris Gentle wrote:

 I'll be happy to send you my script if you think it would help you
 out.

 --
 Chris  Linux is the answer.  Now, what was your question?



msg22924/pgp0.pgp
Description: PGP signature


Re: Suggestion for List Etiquette

2002-01-11 Thread Charles Jie

Agree with you, too. Your post showed one well-tailored. :-)

best,
charlie


On Thu, Jan 10, 2002 at 08:55:24AM +0100, Volker Moell wrote:
 Charles Jie wrote:
  I Agree. For an hacker, his message should be as well tailored as his
  programs.

 But please: Don't snip *everything*! Just reading the answer or comment
 (to an unknown question, because I deleted the original posting in the
 meantime) ist more painful than ignoring superfluous quoting lines.

 Just my .02?

 -volker



msg22925/pgp0.pgp
Description: PGP signature


Re: For messages without charset specified

2002-01-11 Thread Charles Jie

Thank you, Boris.

But that's weird for your case. If you have attachment, your header
should have only 'Content-Type: multipart/...' instead of 'text/plain'
or 'text/html'.

For my cases, they have the latter content-type and no attachment. They
send me inline 8-bit muitibyte (big5) text. Mutt will depend on the
charset specified in Content-Type: filed.

charset-hook:

This doesn't look matching my problem. If a message speicifies a strange
charset, it can map it. But for my case, messages miss 'charset=big5'
and mutt thinks to use some DEFAULT that I don't know where it comes from.

My locale is LANG=zh_TW.big5. And my mutt has 'set charset=big5'. I
don't know what is missing.

best,
charlie

On Thu, Jan 10, 2002 at 07:41:38PM +0300, boris karlov wrote:
 On Thu, 10 Jan 2002 09:48:30 +0800, Charles Jie [EMAIL PROTECTED] wrote:
  In our country, I used to receive messages without 'charset' specifed in
  Content-Type:, while the text body is encoded in big5.
 
  I have my mutt set charset=big5 but the pager just display '?'s for
  such messages (other charset-tagged messages are OK).

 -- i have the same problem. check by view-attachments for assumed charset
 - is it us-ascii? i have the last one if there's no charset part in header.

 
  How can I do it in mutt? set charset=big5 looks not working.

 On Fri, 28 Dec 2001 Michael Tatge [EMAIL PROTECTED]
 in thread `charset in text/plain attachments: how to tune?' has supposed to
 use charset-hook (e.g. charset-hook  big5). i have `empty
 (sub)expression' error in this case, but Michael does not. it's worth a try

 10x, karlov.



msg22932/pgp0.pgp
Description: PGP signature


Re: For messages without charset specified

2002-01-11 Thread Charles Jie

Thank you very much, Cristiano.

Thanks to this MAGIC setting, now the pager display right.

Frankly speaking, I've read 'charset-hook' section of the manual a
couple of times, which defines alias. I can hardly imagine we can set
and use it this way. :-)

best regards,
charlie

On Fri, Jan 11, 2002 at 02:18:33PM -0200, Cristiano Reis Monteiro wrote:
 I had the same problem an used:

 charset-hook  iso-8859-1

 I think you can use:

 charset-hook  big5

 This will match any message without 'charset' specified.

 Hope this helps

 []'s

 - Cristiano

 Em Thu, 10 Jan 2002, Charles Jie escreveu:

  In our country, I used to receive messages without 'charset' specifed in
  Content-Type:, while the text body is encoded in big5.
 
  I have my mutt set charset=big5 but the pager just display '?'s for
  such messages (other charset-tagged messages are OK).
 
  In Mozilla, I can have the following settings for 'Message Display':
 
  [v] Apply default to all messages (ignore character coding specified
  by MIME header)
 
  How can I do it in mutt? set charset=big5 looks not working.
 
  charlie

 --
  ===
/^\__/\
   /' , :Conhecimento nao e' crime !
  ~o   o
  /   ,  \   [EMAIL PROTECTED]
   (  `- ..__   Estudante de Ciencia da Computacao - UFBA
  '  /'  http://cristiano.dhs.org
 PGP public key available by WWW and on request.
  ===

  /\
  \ /? CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
   X?? ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
  / \

--
===
Charles Jie (¬ö¬K¿³)   Keya Technologies (¶}¶®¬ì§Þ)
(O) +886 2 2936 0813   (Mobile) 0920 397 746
===



msg22966/pgp0.pgp
Description: PGP signature


Re: Possible to get the mail fetched by getmail filtered?

2002-01-10 Thread Charles Jie

Thanks, Roman.

1. My getmail.log gives:

 Aborting... (command /usr/bin/maildrop ~/.maildroprc returned 19200
 (maildrop: signal 0x06))

 $getmail gives sth similar:

  msg #1 : len 998 ... retrievedfailed to process message list for
  charlesjie (command /usr/bin/maildrop ~/.maildroprc returned 19200
  (maildrop: signal 0x06))
  Resetting connection and aborting...

2. My maildrop now looks OK and saves message to given mbox. The problem
   is that getmail doesn't remove message in POP server. I'll get a copy
   of the same message each time I run getmail.

3. getmail also fails to fetch mail if the destination mbox doesn't
   exist. Thus I can not let mutt remove the empty mbox file when all
   messages are deleted.

4. My getmail is 2.1.9, while maildrop is 1.3.4.
   The broken getmail rpm from Mandrake 8.1 is 2.1.5. I'll send it to
   you in another mail. It misses ALL the python modules.

5. About getmail documentation, I agree the author did work hard and
   write much. I just happen to need sth not sufficiently covered.
   To have a filter, I can only find an instance throughtout the
   mentioned documents -

   postmaster = |/path/to/command

   that's all. No syntax description about such case.

   When I try to add arguments to the command, I've got to try out:

   postmaster = |/usr/bin/procmail -Y -t  (wrong)
   postmaster = |/usr/bin/procmail -Y -t (correct)

6. Futher, getmail doesn't mention the restriction of point 3.

7. It takes no hard work to prepare man page but it's a big convenience.
   Without it, I need to run $ rpm -ql getmail to find out the right
   document every time, and then copy and paste to run less to check it.
   Do you have a better approach to do it?

thanks, (and sorry to post getmail's question here. I regard such filter
function as a part of Using Mutt.)

charlie


On Wed, Jan 09, 2002 at 05:07:03PM +0100, Roman Neuhauser wrote:
  I've tried procmail and maildrop to go with getmail but all failed. I
  believe they should be able to work someday when I have enough hard work
  on them. :)
 
  Report:
  2. maildrop returns (-1) while I set for getmail:
 
 postmaster = |/usr/bin/maildrop ~/.maildroprc
 
 (The .maildroprc contains stuff like Roman's.)

 Interesting. I suggest you to enable logging in both getmail and
 maildrop, tail -f both logfiles, and get some mail.
 Also, it'd be nice if you provided version numbers. I'm no maildrop
 hacker, but Charles wrote getmail, and a version number could
 probably help.

  3. getmail doesn't have enough documentation at this moment:

 I dare to disagree:

 share/doc/getmail/CHANGELOG
 share/doc/getmail/docs.txt
 share/doc/getmail/faq.txt
 share/doc/getmail/getmail.txt
 share/examples/getmail/getmailrc-example

a. no man page

 While man page would be really nice IMO, Charles
 expressed he was not interested in maintaining it. That said, the
 tarball *does* have enough docs IMO.

b. the rpm package comes with Mandrake 8.1 is broken. It misses a (at
   least) python module. I replace it with a D/L one.

 You should bug the package's maintainer. The FreeBSD port I
 installed Getmail from didn't give me any trouble. And again, not
 enough info: *what* Python module?


 --
 FreeBSD 4.4-STABLE
 4:52PM up 14 days, 3:30, 20 users, load averages: 0.03, 0.02, 0.02



Suggestion of adding some contents

2002-01-10 Thread Charles Jie

Thank you, Justin. I've just gone thru your tutorial. It's helpful.

However, I would suggest some more info to be included, which I've tried
hard (with 'man gpg' and google search) but can not yet get a clear
picture of pgp.

Don't blame me posting this in mutt mail listing, and asking your
tutorial too much. :-)  Because mutt is the starting point that I learn
PGP. And I believe many people need some basic concepts which are hard
to find explained. (That's pretty weird!) I hope your tutorial can help
newbies like me.

1. There is a confusing set of terms for a key: user id, fingerprint,
   public key which refer to sililar/related stuff. Especially the
   various forms of specifying a user id.

   AFAIK:

   fingerprint - an ID for human eye's verification?
   public key - a file containing an unreadable value for algorithm
   user id (short form, 8 hex digits) - an key ID for your convenience
 to specify a key for gpg, not guaranteed to be unique (non-ambiguous)
   user id (long form, 16 hex digits) - better ID but who'll use it?
   user id (catenated fingerprint digits, 40) - BEST ID (I then found
 the 'short form' is the right-most 8 digits of fingerprint.
   user id (in the form of your account name, real name or email
 address) - these are just 'searchable' string for your key that gpg
 can maintain a couple of them in term of 'uid' when you run
 '$ gpg --list-keys any of your id shown above'.

2. In gpg's key listing, I see, eg.:

pub  1024D/C9C40C31 2001-05-25 Justin R. Miller [EMAIL PROTECTED]
uidJustin R. Miller [EMAIL PROTECTED]
uidJustin R. Miller [EMAIL PROTECTED]
sub  1024g/59FAB546 2001-05-25

But what's the 'sub' entry? What's the ID in it?
I guess the 'uid' entries are just extensions of 'pub' entry, which
contains a key ID plus a 'uid'(the 'name e-mail' string). But it takes
me long to get it. Sign! Why don't they make a newbie's life easier?

3. When I get clearer with gpg, I try to make my 'uid' more informative
   for others. But I found gpg doesn't provide good maintaining method
   to update them. You can not update uid except using adduid/deluid.
   You can not(?) change the 'preference' order of those uid's. The
   worse, I found I have no way to remove my old uid's in keyserver - they
   just accumulate. Strange gpg.

Justin, you are a good tutor. If you can rescue, please help.

best regards,
charlie


On Fri, Jan 04, 2002 at 05:35:39PM -0500, Justin R. Miller wrote:
 I wrote a guide on using GnuPG with Mutt, including some of the theory
 behind how it works (in a very non-technical way).  It also features a
 link to someplace or other that explains some thoughts behind the need
 for encryption and digital signatures.  You can see it at:

   http://codesorcery.net/mutt/

 --
 Justin R. Miller [EMAIL PROTECTED]
 View my website at http://codesorcery.net
 Please encrypt email using key 0xC9C40C31



Re: Why use pgp with mutt?

2002-01-10 Thread Charles Jie

Hi, Nick,

'man gpg' has a section How to specify a user ID giving details of it.

charlie


On Sat, Jan 05, 2002 at 01:28:19PM +0100, Nick Wilson wrote:

 Thanks Morten. I'm on the Man page as I write!
 I got confused as the key in Justins example is 10chars and mine was 8.
 Am I correct in thinking that the key id is the second part of the '
 pub' line, making yours D796A4EB?

 Much thanks




Re: Possible to get the mail fetched by getmail filtered?

2002-01-09 Thread Charles Jie

Thank you, Charles, Roman and Mark.

I've tried procmail and maildrop to go with getmail but all failed. I
believe they should be able to work someday when I have enough hard work
on them. :)

Report:
1. procmail returns (-1) while I have the following in
   .getmail/getmailrc:

   postmaster = |/usr/bin/procmail -Y -t

   (My .procmailrc works for postfix, set in main.cf with
   |/usr/bin/procmail -Y -a $DOMAIN -t.)

2. maildrop returns (-1) while I set for getmail:

   postmaster = |/usr/bin/maildrop ~/.maildroprc

   (The .maildroprc contains stuff like Roman's.)

3. getmail doesn't have enough documentation at this moment:
  a. no man page
  b. the rpm package comes with Mandrake 8.1 is broken. It misses a (at
 least) python module. I replace it with a D/L one.
  c. It has not a single word about how to use command for 'postmaster'.
 Only the line of example:

 postmaster = |/path/to/command

 (You are not even alerted to QUOTE the whole command if you have
 arguments.)

thanks,
charlie



msg22692/pgp0.pgp
Description: PGP signature


For messages without charset specified

2002-01-09 Thread Charles Jie

In our country, I used to receive messages without 'charset' specifed in
Content-Type:, while the text body is encoded in big5.

I have my mutt set charset=big5 but the pager just display '?'s for
such messages (other charset-tagged messages are OK).

In Mozilla, I can have the following settings for 'Message Display':

[v] Apply default to all messages (ignore character coding specified
by MIME header)

How can I do it in mutt? set charset=big5 looks not working.

charlie



Re: Please help verify my procmail settings to go with mutt

2002-01-09 Thread Charles Jie

Thanks, Igor and Will,

I've found that .forward (with procmail called) works for default postfix settings.

As mentioned by Will, those advanced settings of procmail should have
been set by default.

Now my procmail can work well with postfix.

The only pity is procmail doesn't work (return -1) if I call it from within getmail.

best,
charlie




Re: Suggestion for List Etiquette

2002-01-09 Thread Charles Jie

I Agree. For an hacker, his message should be as well tailored as his
programs.

charlie



Re: What's the trick to getting the sender address set properly?

2002-01-08 Thread Charles Jie

Hi,

I have no much knowledge about sendmail, mutt, etc. but I have a similar
network as yours. Perhaps my experience helps.

1. Suppose you have a sendmail or postfix MTA running in your linux box.
   Send mail by yourself. This avoids rejection by the mail server of
   your ISP.

2. I run my own DNS and get my registrar having a DNS record to my
   dynamic IP. (The Cable connection can maintain that IP for long time
   if thay don't have a problem.)

3. Your DNS should have a MX (mail-exchange) record so that other mail server can drop
   mails to your domain.

I hope this will simplify the problem.

charlie




What's the '*' symbol in thread tree?

2002-01-06 Thread Charles Jie

I found the star in ACS display of thread tree but I can not find
explanation in manual. What does it mean?

Something...
|
+-*

charlie



Re: How to place a request of receipt for an outgoing mail?

2002-01-06 Thread Charles Jie

Hi, Erika,

It looks your postman is specailly friendly to you and you never have to
sign a receipt for a registered snail mail. (Or you just reject them
all. :)

I think such function or mechanism USEFUL because some people, including
me, need it from time to time.

And I believe most of people won't abuse it and annoy others. It could
be thought more positively.

best,
charlie


On Sat, Jan 05, 2002 at 06:28:05PM +0100, Erika Pacholleck wrote:
 [03.01.02 11:30 +0800] Charles Jie -- :
  What I want to get is the RECIPIENT's answering (eg. thru a dialog box),
  not of the system.
 
  The value of this mechanism is that the recipient is automatically
  prompted for a receipt, and I can get noticed as soon as possible when
  he/she is back or available - avoiding many calls in vain.

 How do you want to prompt at the recipients side? You might get from
 my headers my MUA (if I do not forbid to send it) but besides this
 maybe-information you don't know anything, not the system I am running
 nore the layout. Or do you expect every MUA to include a mechanism
 to interupt with prompting? And what, just in case M$ has already
 thought of this, I click it away? Do you expect to stop the whole
 system until the recipient has sent out the receipt?

 If it is that important mail might not be the right choice at all.
 --
 Erika Pacholleck [EMAIL PROTECTED]



Re: change-folder in browser?

2002-01-04 Thread Charles Jie

AFAIK, browser is not a standalone function for mutt. It's usually used
to provide a file/directory as an argument for a pending function, like
change-folder or save-message - I think it's the reason mutt avoids
accepting a function like change-folder in the browser.

charlie

On Wed, Jan 02, 2002 at 06:28:38PM -0800, Will Yardley wrote:
 maybe this is a dumb question, but is there a reason you can't do
 change-folder in the browser?




Thank you

2002-01-04 Thread Charles Jie

Hi, thank you all,

Now it's easier for me to do mailing experiments. :)

charlie




Possible to get the mail fetched by getmail filtered?

2002-01-04 Thread Charles Jie

Now I have a mail system = postfix + mutt + procmail + getmail.

getmail fetches my mail in some POP3 servers. But it just places mail in
some mboxes - compared to the mail received by postfix and
sorted/filtered by procmail - and looks having no way to sort/filter
mail further.

How do you do it for POP3 mail? (some of these mailboxes do be able to
'forward' mail to my server, but inevitably add lines to message header.
:)

best,
charlie



To log the time I spend in reading/writing a mail

2002-01-02 Thread Charles Jie

Mail consumes a lot of time.

Is it possible to have mutt record the time I use to read or write a
mail? I hope to know how much time I spend in a folder (a kind of info).

Further, I want a timer to alert me when I'm going to run out of the
pre-set time for reading or writing a mail.

Are the solution there? Or quick solution available?

thanks,
charlie



Re: To log the time I spend in reading/writing a mail

2002-01-02 Thread Charles Jie

Thank you for your answer, Philip. The idea is wonderful. Now it's
crystally clear to me. I'll roll up my sleeves to code it.

I've just got used to the built-in pager and thought their combination
is not bad. Thus I might not plan to replace it with 'less'.

Before I try to contribute mutt's source code, I'll go thru mutt manual
first. :)

best,
charlie


On Wed, Jan 02, 2002 at 09:46:45AM -0500, Philip Mak wrote:

 I don't know of any existing solutions, but I can tell you where to start,
 assuming you can program it yourself.
 ...



Info about field Status: and X-Status:

2002-01-02 Thread Charles Jie

My mutt in linux can not get along well with my mozilla in
windows. I found mutt maintains Status:, and mozilla Status: plus
X-Status. It looks there is something wrong with it.

To do some more experiments, I need documents about the (X-)Status:
field but I can not find.

Could anybody show me where can I get info about how the mailers use the
flags in (X-)Status: ?  Thanks.

charlie



Re: How to place a request of receipt for an outgoing mail?

2002-01-02 Thread Charles Jie

Hi, thank you, Alain, et al,

After reading Cliff's post and mutt's manual, I am not sure whether
Disposition-Notification-To: will do what I want.

It's said it's dealt with by MTA. And reports success when the
transmission succeeds. -- Does that mean the mail just succeessfully
drops into the recipient's mbox instead of being opened for reading?

What I want to get is the RECIPIENT's answering (eg. thru a dialog box),
not of the system.

The value of this mechanism is that the recipient is automatically
prompted for a receipt, and I can get noticed as soon as possible when
he/she is back or available - avoiding many calls in vain.

many thanks,
charlie


On Tue, Jan 01, 2002 at 09:05:40PM +0100, Alain Bench wrote:

 Put this line in your muttrc to always request for receipt:

 my_hdr Disposition-Notification-To: [EMAIL PROTECTED]




Hope the patch for X-label editing can be merged into mutt soon

2002-01-01 Thread Charles Jie

Hi,thank you all,

That's exactly the function I want.

But because it's a sourcer-level patch that I need to
patch-compile-install. I'm afraid that might cause trouble with my
current installation from rpm package by Mandrake 8.1.

I'll wait some while for that rpm comes. Thank you.

best regards,
charlie


On Sat, Dec 29, 2001 at 11:49:20PM -0500, David T-G wrote:

 I *highly* recommend these patches (as appropriate for your version of
 mutt).  The X-Label: header is invaluable.  The one thing I don't know
 whether or not it can do is be used in a fcc expando like

   fcc-save-hook . =archive/%y

 or some such.




Please help verify my procmail settings to go with mutt

2001-12-31 Thread Charles Jie

Hi,

I'm trying to substitute Mutt with Mozilla.

One important porting work is dealing with the multiple accounts I keep,
especially the mailing list.

* But I found the flow of incoming mail dropping down. vim mailing list
sent me a message telling me my mail is bouncing.

On 12/28 and 29, I received about 20 mails from mutt-users. But 12/30 I
had no more than 5. It also happened to [EMAIL PROTECTED], dropping from
20-30 down to 4. (But my testing mail all survived.)

(My MTA is postfix (on Mandrake 8.1). Mutt is 1.3.24i. procmail 3.21.)
I wonder whether the following files (copied from 'man procmail') have
anything wrong. Help, please.

* My ~/.forward:

|IFS=' 'p=/usr/bin/procmailtest -f $pexec $p -Yf-||exit 75 #jie

(Could anybody help explain:
1. Why IFS=' ' checking?
2. Why the options -Yf- in exec $p -Yf-?
3. Why exit 75?
)

* My ~/.procmailrc:


MAILDIR=$HOME/Mail  #you'd better make sure it exists
#DEFAULT=$MAILDIR/mbox  #completely optional
LOGFILE=$MAILDIR/proc.log   #recommended

:0:
* ^(To|CC|From): .*mutt-users
mbox.mutt

:0:
* ^(To|CC|From): .*[EMAIL PROTECTED]
mbox.vim

:0:
* ^Subject: .*Fwd?:
mbox.fw

:0
* ^Reply-To: [EMAIL PROTECTED]
mbox.spam

If I can not handle multiple accounts well with mutt, I may need to go
back to Mozilla or Netscape, which are so heavy.

Thank you in advance,
charlie

--
Charles Jie (¬ö¬K¿³)   Keya Technologies (¶}¶®¬ì§Þ)
(O) +886 2 2936 0813   (Mobile) 0920 397 746



Thanks and a further question

2001-12-31 Thread Charles Jie

Thank you very much, David.

I like Mutt's configurability and think it's the best MUA of
programmers, isn't it?

I don't think the missing of mail is Mutt's fault, either. What I
suspect is procmail, which I found hard to understand it in short term.
I place my question in mutt-users@ (sorry :-) because I think it's
inevitable for Mutt users to use procmail to the FILTER function
like that available in Outlook or Netscape. And mutt users should
have similar situation/consideration to mime. :)

I'm happy my procmail setting is fine. I'll put it back and watch on.
Thank you very much.

Q: Is it possible to query Mutt server for a listing of posting for one
day so that I can collate it with those mail I got? How?

best regards,
charlie




Where to put 'procmail'?

2001-12-31 Thread Charles Jie

Thank you both for hints about procmail, Will and Ren.

Your suggestions make me curious about the issue of procmail that I
postpone putting back my .forward.

1. In main.cf, I found a line:

mailbox_command = /usr/bin/procmail -Y -a $DOMAIN

2. In /var/log/syslog, I also found this command is run by postfix/local when I remove 
.forward.

I have questions;

Q1. I know the 'procmail' in .forward precedes that in main.cf. But can
I just use mailbox_command in main.cf and forget .forward?

Q2. If yes, do I need to append '-t' (fail softly) to the procmail command?

Q3. How do I know whether I need to give the '-Y' option?

Q4. I don't have the ENV variable $DOMAIN in shell, the '-a $DOMAIN' is
OK?

best regards,
charlie


On Mon, Dec 31, 2001 at 05:47:24PM +0100, Ren? Clerc wrote:
 * Will Yardley [EMAIL PROTECTED] [31-12-2001 17:15]:

 | Charles Jie wrote:
 | 
 |  (My MTA is postfix (on Mandrake 8.1). Mutt is 1.3.24i. procmail 3.21.)
 |  I wonder whether the following files (copied from 'man procmail') have
 |  anything wrong. Help, please.
 | 
 |  * My ~/.forward:
 | 
 |  |IFS=' 'p=/usr/bin/procmailtest -f $pexec $p -Yf-||exit 75 #jie
 |
 | with postfix, just:
 | | /usr/bin/procmail -t
 |
 | should be fine.
 |
 | the fancy sendmail style trickery shouldn't be necessary.

 But, make sure in your postfix/main.cf the following line is present:

 mailbox_command = /usr/bin/procmail

 (or where ever your procmail resides)

 HTH,

 --
 Ren? Clerc  - ([EMAIL PROTECTED])

 A pedestal is as much a prison as any small, confined space.
 -Gloria Steinem



--
Charles Jie (¬ö¬K¿³)   Keya Technologies (¶}¶®¬ì§Þ)
(O) +886 2 2936 0813   (Mobile) 0920 397 746



Re: Getting mailing lists to work?

2001-12-30 Thread Charles Jie

I use:

subscribe [EMAIL PROTECTED]

instead of just mutt-users.

It works.

charlie

On Sun, Dec 30, 2001 at 12:28:57PM +0100, Nick Wilson wrote:
 Hi everyone
 for some reason I can't get mutt to 'list-reply'.
 In my .muttrc I have a line --- subscribe mutt-users
 but whenever I try to list reply it comes up with the gbnet address.
 I'm having a few problems I really need some help with but unless i can sort
 this one I'm stumped!

 if you can lend a hand I'd be most grateful

 Regards

 Nick

--
Charles Jie (¬ö¬K¿³)   Keya Technologies (¶}¶®¬ì§Þ)
(O) +886 2 2936 0813   (Mobile) 0920 397 746



How to place a request of receipt for an outgoing mail?

2001-12-30 Thread Charles Jie

I was able to request for receipt in my mail while using Outlook Express
or Netscape.

But how to do it in Mutt? Thanks.

charlie

--
Charles Jie (¬ö¬K¿³)   Keya Technologies (¶}¶®¬ì§Þ)
(O) +886 2 2936 0813   (Mobile) 0920 397 746



Re: Moving between folders

2001-12-28 Thread Charles Jie

I'm glad to read good tricks about mutt. The document (manual.txt) is
too short of examples that we have to pull out handfuls of hairs to get a
function work. :)

charlie

--
On Thu, Dec 27, 2001 at 02:39:48AM -0700, Rob 'Feztaa' Park wrote:
 On Thu, Dec 27, 2001 at 01:36:51PM +0800, Charles Jie (dis)graced my inbox with:
  You should not keep that many messages in a working 'folder' (indeed
  file). You'd better initialize a new one for high traffic folder
  yearly, quarterly or even monthly.

 I agree, I automatically move all my old mail into compressed folders
 that are named for the year and month of the mails in them.

 If you need help setting that up, just ask :)



Possible to add a user-defined field Keyword to read message before/when save?

2001-12-28 Thread Charles Jie

Obviously I don't mean 'e' (edit) command count.

The purpose of it is that I want to give keywords or category to read messages so that 
I can search them easier later.

If I can add this field easily when I save it or before I press 's' with
ease, I don't bother to save messages into that many folders. :)

charlie



Re: Mutt can not cooperate with mozilla

2001-12-26 Thread Charles Jie

With experiments, I conclude the following are right format/instances:

 text/html;  mozilla -remote openurl\\(file:%s\\)

 text/html;  mozilla -remote openfile\\(%s\\)

 text/html;  mozilla %s (this should also work if run in shell w/o problem)

thanks for your help,
charlie

On Wed, Dec 26, 2001 at 01:30:47AM -0500, Philip Mak wrote:
 On Wed, 26 Dec 2001, Charles Jie wrote:

  In my .mailcap:
 
  text/html;  mozilla -remote openurl\(file:%s\)
 
  always fails because %s is expanded as ''
 
  The quotes are the problem because they mix up in the URL.

 How about this?

 text/html;  mozilla -remote openurl\(file:`echo %s | sed s/^'\(.*\)'$/\1/`\)

 sed s/^'\(.*\)'$/\1/ will read 'something' from standard input and write
 it to standard output without the single quotes.



Quoted-printable string not decoded

2001-12-26 Thread Charles Jie

I found mutt can not decode qp strings in Subject if there is space in it. Such like

=?big5?Q?Re: =BCW=A5[=B1z=AA=BA=A6=AC=A4J?=

If I change ' ' to '=20', it works.

Does the spec. of qp not allow spaces?

thanks,
charlie



This save-hook never works

2001-12-26 Thread Charles Jie

Hi,

I've tried to auto-move all messages To: or CC: to [EMAIL PROTECTED] into a mailbox 
=mutt. But the following trial failed:

save-hook ~C mutt-users +mutt

or

save-hook ~Cmutt-users +mutt


Does ~C not work  in save-hook? I didn't find enough info about save-hook. It's said 
(by default) save-hook check only To: and From: in different cases. I'm not sure ~C 
can change the rule or not.

expecting for help,
charlie



Re: Moving between folders

2001-12-26 Thread Charles Jie

You should not keep that many messages in a working 'folder' (indeed file). You'd 
better initialize a new one for high traffic folder yearly, quarterly or even monthly.

For sent folder, I'll rename the file to sent.2001 soon in the end of
this year.

best regards,
charlie

--
On Thu, Dec 27, 2001 at 12:27:40AM -0500, Philip Mak wrote:
 Is there a way to make it so that when I use the c command to change to
 a different folder, the original one remains open?

 My ~/Maildir/ folder has 1 messages, and my =sent folder has 6000
 messages, so it's slow to switch between them if they get closed each time
 I switch.

 BTW, I just noticed a minor bug: If I'm in my sent mail folder and I
 compose a message, it will say Mailbox was externally modified.  Flags
 may be wrong. due to it writing a new message into the sent mail folder.



Mutt can not cooperate with mozilla

2001-12-25 Thread Charles Jie

In my .mailcap:

text/html;  mozilla -remote openurl\(file:%s\)

always fails because %s is expanded as ''

The quotes are the problem because they mix up in the URL.

Could we work around it? (avoid having the 's)

thanks,
charlie