Using Maildirs, messages have 0 lines

2001-12-24 Thread Philip Mak
Even in the latest (beta) version, mutt displays the size of all messages as 0 if they are in a Maildir. I looked at the FAQ and it has a workaround that uses procmail to insert a Lines: header, but I'm wondering if there's a less kludgy way to do this. Wouldn't it be relatively easy to patch

Any good mbox-Maildir conversion tool?

2001-12-24 Thread Philip Mak
[Summary: Is there a simple mbox-Maildir conversion tool that preserves the Replied, Seen, Trashed and old/new status of the messages?] --- I've looked through 3 different mbox-Maildir conversion tools (http://www.qmail.org/top.html#maildir), but none of them seem to address the problem of

Re: Any good mbox-Maildir conversion tool?

2001-12-24 Thread Philip Mak
On Tue, 25 Dec 2001, Jeremy Blosser wrote: [Summary: Is there a simple mbox-Maildir conversion tool that preserves the Replied, Seen, Trashed and old/new status of the messages?] --- Yes, use mutt itself. 1) mutt -f mbox 2) tag all 3) tag copy/save to new maildir Nice. It preserved

Re: Using Maildirs, messages have 0 lines

2001-12-24 Thread Philip Mak
On Tue, 25 Dec 2001, Philip Mak wrote: Wouldn't it be relatively easy to patch mutt so that it displays bytes instead of lines? In a Maildir, it only takes a simple stat() operation to find the size of a message. I'm more used to seeing bytes anyway since I come from using pine... Never

Perfect mbox to Maildir converter

2001-12-25 Thread Philip Mak
chgrp -R mail ~$x/Maildir done #!/usr/bin/perl # Simple but Perfect mbox to Maildir converter v0.1 # by Philip Mak [EMAIL PROTECTED] # Usage: perfect_maildir ~/Maildir mbox # Simple - only converts one mbox (can use script in one-liners) # Perfect - message Flags/X-Flags are converted

Good vim configuration?

2001-12-25 Thread Philip Mak
I'm used to using pine's editor, which handles filling of paragraphs (even if they start with due to quoting) fairly nicely. How can I achieve the same thing in vi? I'd like to be able to bind a key such that when I press it, it automatically refills the current paragraph smartly. Some

Re: Good vim configuration?

2001-12-25 Thread Philip Mak
I did some digging around Google and came up with this: [pmak@lina pmak]$ cat .muttvimrc map C-J {gq} # Ctrl+J rejustifies current paragraph set formatoptions=tcroqv# see :help formatoptions set comments=nb: # rejustify quoted text correctly set tw=75

Re: Good vim configuration?

2001-12-25 Thread Philip Mak
I tinkered around a bit more and came up with this code for making Ctrl+J (justify paragraph) work, even with quoted text. It assumes that ^[ ]*$ is the paragraph separator, meaning that any line which is blank or only contains '' and ' ' separates a paragraph. Here is the full code for making

Re: Mutt can not cooperate with mozilla

2001-12-25 Thread Philip Mak
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 |

View HTML files when running mutt through SSH

2001-12-25 Thread Philip Mak
I had an interesting little idea on how to view HTML files on my desktop web browser, even though I'm running mutt through SSH! I put this in my .mailcap: text/html; opera %s opera is a simple perl script to rename the attachment to a value that is guaranteed to be unique (time_pid.html),

Escaping From separator line in an mbox

2001-12-26 Thread Philip Mak
Regarding the From [EMAIL PROTECTED] Wed Jun 06 18:44:53 2001 lines in an mbox file... What is the regular expression for matching whether the line in an mbox file is the beginning of a new message? What is the regular expression for matching lines like From that should have the removed before

Re: Escaping From separator line in an mbox

2001-12-26 Thread Philip Mak
On Wed, 26 Dec 2001, David T-G wrote: Your MDA will also escape any ^From_ in the body to avoid confusion with a message separator line -- if it's delivering to an mbox file. That doesn't seem to be true. For example, in one of my sent-mail files from pine, I saw this line (there was no

Dealing with bad MIME types

2001-12-26 Thread Philip Mak
Someone sent me an attachment called designview.jpg with MIME type of application/octet-stream. Since it wasn't image/jpg or image/jpeg, mutt didn't know how to view it correctly. How could I have made mutt treat that as image/jpg (by making it look at the filename extension, perhaps) despite

Free code! Integrate mutt through SSH with your desktop

2001-12-26 Thread Philip Mak
Here's a beta version of code that I made for myself. My desktop is a Windows system, but I run mutt through SSH. I'd like to be able to have HTML and image attachments come up directly on my web browser, so I made this code. Prerequisites: - mutt (of course!) - SecureCRT SSH client (or other

Moving between folders

2001-12-26 Thread Philip Mak
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

Re: mutt opens folders too slowly? (Re: Mutt is great!)

2001-12-26 Thread Philip Mak
* Cleber S. Mori [EMAIL PROTECTED] [011207 22:32]: Mutt have just one problem. It is slow to open folders, because it does not cache them. Pine did it, and it feels much more fast. I don't know if there is a option for that, but I believe not. mutt takes 7 seconds to open my 1 message

Re: Escaping From separator line in an mbox

2001-12-27 Thread Philip Mak
2001 -0500 Date: Sat, 10 Nov 2001 03:17:28 -0500 (EST) From: Philip Mak [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: James Ventrillo [EMAIL PROTECTED], Mike Little [EMAIL PROTECTED] Subject: IP address problems on buildreferrals.com Message-ID: [EMAIL PROTECTED] MIME

Re: Configuration problems

2001-12-27 Thread Philip Mak
On Thu, 27 Dec 2001, [iso-8859-1] René Clerc wrote: * Skylar Thompson [EMAIL PROTECTED] [27-12-2001 14:10]: | (1) Vim no longer does syntax highlighting. It isn't major, but it did look | nice. set editor=vim -u ~/.muttvimrc +/^$ It looks like you're using the code that I posted to this

Re: Using mutt in command line ..

2001-12-27 Thread Philip Mak
On Thu, 27 Dec 2001, Ivan Castillo Escobar wrote: Somebody can tell me how to write the exact command to send a mail with an attachment using the command line (mutt), without the need to enter the vi editor to write the message body???. I need to use a mutt command to be executed in a UNIX

Bug? Pressing $ when new mail arrives

2001-12-27 Thread Philip Mak
Scenario: When I press $ to purge the deleted messages in my mailbox, and it asks me: Purge 8 deleted messages? ([yes]/no): and I answer yes, if new mail has arrived that mutt didn't see yet, it will show the new mail and *abort* the purge operation. Is this a bug/is there a workaround for

Re: Bug? Pressing $ when new mail arrives

2001-12-27 Thread Philip Mak
On Thu, 27 Dec 2001, Brian Clark wrote: if new mail has arrived that mutt didn't see yet, it will show the new mail and *abort* the purge operation. Is this a bug/is there a workaround for this? If you don't want to be asked, I think you want this: ### delete ### Type: quadoption ###

Re: Bug? Pressing $ when new mail arrives

2001-12-27 Thread Philip Mak
On Thu, 27 Dec 2001, Benjamin Smith wrote: That's not what I was talking about, actually. I was saying that when it asks me Purge 8 deleted messages? ([yes]/no): and I answer yes, it DOES NOT purge the messages if new mail has just arrived. I've found this irritating too, but since it

Writing bullets/lists in vim

2001-12-27 Thread Philip Mak
Does anyone have a vim configuration to make writing bullets/lists easier? e.g. when I'm writing something like this: --- begin example --- 1. Pick one of the RaQs to be the DNS server. 2. E-mail [EMAIL PROTECTED] and ask him for an additional IP for that RaQ. 3. When you get the IP, tell me

big mailbox v.s. rotated mailbox; thoughts

2001-12-27 Thread Philip Mak
I was thinking about the merits of keeping one large mailbox, versus keeping a mailbox that's rotated monthly/quarterly/yearly. Some people prefer to keep one huge mailbox, and some other people prefer to rotate it. I'd like to explore the reasons why people do it one way and not the other.

Re: Bug? Pressing $ when new mail arrives

2001-12-27 Thread Philip Mak
On Thu, 27 Dec 2001, Benjamin Smith wrote: I was thinking of that too, but since mutt still knows how to mark the messages to be deleted after the purge, why not delete them after the check... ? Good question... Currently the code just does this (in mbox_sync_mailbox): /* Check to

mutt loosing D flags

2001-12-29 Thread Philip Mak
I think I did something recently (it had to do with answering no when mutt asked me whether I wanted to purge deleted messages) that caused mutt to lose track of which messages had D (Deleted) flags on them. Does anyone know what I did, and how to avoid doing it again? I think someone recently

Re: problem with timestamps

2001-12-29 Thread Philip Mak
On Sat, 29 Dec 2001, Andy Spiegl wrote: I hope I can make this clear, when mutt modifies a file (mbox) it doesn't update the timestamps. Sure, I know this problem very well and started a long thread about this, but in the end I was told that it's not a bug, but a feature. I still don't

Re: GPG-PGP

2001-12-31 Thread Philip Mak
On Mon, 31 Dec 2001, Benjamin Michotte wrote: just to say that I finally win :) I convert 3 friends to use mutt and they're really happy now ;) On Tue, Dec 11, 2001 at 10:18:50PM, Benjamin Michotte wrote: Is it possible to ask mutt sending signed messages in line or must I force my

Where's the MAIL FROM line?

2002-01-01 Thread Philip Mak
Is it possible to see the SMTP MAIL FROM line of a message in my mailbox, or does Maildir format strip that information out before storing it?

Re: big mailbox v.s. rotated mailbox; thoughts

2002-01-02 Thread Philip Mak
I just had another thought: Might it make sense to store sent mail together with normal messages? A fundamental problem is that mutt's Search feature cannot search over multiple mailboxes. Thus, if I want to review a series of e-mails that I exchanged with someone about a specific topic, then it

Re: Where's the MAIL FROM line?

2002-01-02 Thread Philip Mak
, when I send e-mail to [EMAIL PROTECTED], I think the SMTP transaction goes something like this: $ telnet localhost 25 HELO localhost MAIL FROM:[EMAIL PROTECTED] RCPT TO:[EMAIL PROTECTED] DATA From: Philip Mak [EMAIL PROTECTED] To: Mutt Users' List [EMAIL PROTECTED] Subject: Re: Where's the MAIL

Re: Support for Maildir in mutt

2002-01-02 Thread Philip Mak
On Tue, 1 Jan 2002, Sudhir Kumar wrote: We have qmail installed in our system and the default delivery mechanism is Maildir.How can I configure mutt to read mails from Maildir. Put this in /etc/profile (or equivalent file if your system use something else): MAIL=$HOME/Maildir/ Does mutt

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

2002-01-02 Thread Philip Mak
On Wed, 2 Jan 2002, Charles Jie wrote: 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

Figured out (Re: Where's the MAIL FROM line?)

2002-01-02 Thread Philip Mak
I figured it out. It had to do with my MDA (Mail Delivery Agent). qmail sets environment variables that tells the MDA what the MAIL FROM line was. But, my MDA (maildrop) does not read the environment variables, so that the data doesn't get saved in my Maildir. It was a matter of changing my

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

2002-01-02 Thread Philip Mak
On Wed, 2 Jan 2002, Thorsten Haude wrote: 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'. You might try $display_filter. I was thinking about $display_filter... that command is indeed executed when the user

Re: How to allow mutt accept composing an empty-body mail?

2002-01-04 Thread Philip Mak
On Fri, Jan 04, 2002 at 12:37:03PM +0800, Charles Jie wrote: I didn't find suitable setting to make mutt not to abandon composing a mail without content. Help, please. charlie set abort_nosubject=no # allow sending messages without subject set abort_unmodified=no # allow sending messages

multipart/alternative and text/html

2002-01-06 Thread Philip Mak
How can I make mutt able to display text/html attachments inline, WITHOUT making it pick text/html (instead of text/plain) when the original message was sent as multipart/alternative? I find the text/html versions to be formatted worse. This is my .mailcap for text/html: text/html; lynx %s;

Re: multipart/alternative and text/html

2002-01-06 Thread Philip Mak
On Sun, Jan 06, 2002 at 09:21:25PM +0700, budsz wrote: How can I make mutt able to display text/html attachments inline, WITHOUT making it pick text/html (instead of text/plain) when the original message was sent as multipart/alternative? I find the text/html versions to be formatted worse.

set mail_check lies

2002-01-07 Thread Philip Mak
set mail_check configures how often (in seconds) mutt should look for new mail. I have it set to 5, but new e-mail that I receive does *not* show up within 5 seconds. It seems that it only shows up if I press a key in mutt. Does anyone have any ideas?

Re: set mail_check lies

2002-01-07 Thread Philip Mak
On Mon, Jan 07, 2002 at 11:18:06AM +0100, René Clerc wrote: | set mail_check configures how often (in seconds) mutt should look | for new mail. I have it set to 5, but new e-mail that I receive does | *not* show up within 5 seconds. | | It seems that it only shows up if I press a key in

Re: set mail_check lies

2002-01-07 Thread Philip Mak
On Mon, Jan 07, 2002 at 01:13:59PM +0100, Michael Tatge wrote: Philip Mak muttered: set mail_check configures how often (in seconds) mutt should look for new mail. I have it set to 5, but new e-mail that I receive does *not* show up within 5 seconds. It seems that it only shows up

Customizing mutt to work the way you want!

2002-01-07 Thread Philip Mak
name and e-mail address here, since my server hosts # multiple domain names. my_hdr From: Philip Mak [EMAIL PROTECTED] # List e-mail addresses being received by this mailbox, separated by a # pipe (|). set [EMAIL PROTECTED]

Good HTML to text converter?

2002-01-07 Thread Philip Mak
On Mon, Jan 07, 2002 at 08:50:16PM +0100, Michael Wagner wrote: I have this in my mailcap file: text/html; html2text %s; copiousoutput; nametemplate=%s.html because the output is much better than this lynx or w3m. Try it. The problem that I see with lynx, w3m and links is that the -dump

Re: Mutt sucks less than the rest

2002-01-07 Thread Philip Mak
On Mon, Jan 07, 2002 at 08:59:04PM -0500, Derek D. Martin wrote: Mike L, if you have tricks for figuring out WHICH mozilla window the page will pop up in, I'd like to see that. Yeah, that'd do it, but I'd rather just leave one up and have it use the same one all the time. No need to

Re: maildir (number of lines in index)

2002-01-08 Thread Philip Mak
On Tue, Jan 08, 2002 at 02:06:37PM -0600, David wrote: I did a quick check for maildir in the manual as well as a quick archive search but couldn't hit what I wanted. I just switched a couple of my boxes to maildir to deal with NFS not setting mtime and atime properly. Only trouble so far is

Moving (not saving) a message to another folder

2002-01-31 Thread Philip Mak
I think that it would be nice to have the ability to move (not [S]ave) a message to another folder in a single atomic operation, without having to [$]Synchronize. (Assuming that the current folder is a Maildir, where moving a message is just moving a file.) In my conceptual model of e-mail, I

Re: Moving (not saving) a message to another folder

2002-01-31 Thread Philip Mak
On Thu, Jan 31, 2002 at 07:25:41PM +0100, Adam Byrtek wrote: On Thu, Jan 31, 2002 at 01:03:32PM -0500, Philip Mak wrote: So, it makes sense for me to keep my inbox clean so that it only contains messages that I still have to do something about. Any messages that I have finished, I move

Re: Moving (not saving) a message to another folder

2002-01-31 Thread Philip Mak
On Thu, Jan 31, 2002 at 12:46:03PM -0600, Knute wrote: Right now, in order to make the moved message disappear immediately from the message listing, I would have to synchronize, which would also delete any messages (and also takes a second or two; synchronize is not instantaneous).

Exporting a message?

2002-01-31 Thread Philip Mak
How do I save a message to a file (like the [E]xport command in pine) such that all text attachments are included, as well as the headers of the message? The best way I've found is to press [e]dit, then use the :w command in vi to write it out to a file. That takes a few more keystrokes than it

Re: Exporting a message?

2002-01-31 Thread Philip Mak
On Thu, Jan 31, 2002 at 11:29:57PM -0800, Michael Elkins wrote: How do I save a message to a file (like the [E]xport command in pine) such that all text attachments are included, as well as the headers of the message? If your $mbox_type is set to mbox, then a simple C (copy-message) will

timeout/mail_check doesn't always work?

2002-02-02 Thread Philip Mak
I have the following lines in my .muttrc file: set mail_check=5 # check for new mail every 5 seconds set timeout=10 # if no keypress in 10 seconds, check for new mail It doesn't seem to work correctly always, though. What's been happening is that I run screen and I leave multiple instances of

[e]dit command causes new mail?

2002-02-04 Thread Philip Mak
When I use the [e]dit command in mutt to edit a message in my folder (e.g. to add my own annotations to it), it deletes the old message and delivers the message I just edited as a new message into my mailbox. Wouldn't it make more sense for mutt to just apply the edit to the message without

Re: Wish about mutt's file browser

2002-02-04 Thread Philip Mak
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

People who don't wrap their lines

2002-02-07 Thread Philip Mak
I'm having trouble reading messages from people who don't wrap their lines. They have it so that one paragraph is a very long line, but it seems to cut off after about 255 characters, i.e. I can only see the first 255 characters of each line in the pager. I can't reproduce this always, though.

New mail notification ideas

2002-02-12 Thread Philip Mak
One thing that I've always missed since I switched from pine to mutt was pine's more verbose e-mail notification. Instead of just saying New mail in this mailbox. it would say something like: [New mail from Philip Mak re New mail notification ideas] Also, pine checks for new mail when

Re: ^From line?

2002-02-12 Thread Philip Mak
On Tue, Feb 12, 2002 at 09:05:37AM -0800, Carl B. Constantine wrote: Wrong. It's actually part of one of the internet RFC's. MUTT is not the only client that does this. All E-mail programs place a quoted symbol '' for most people by the word From if it's the first word in a paragraph. Going

stupid PGP question

2002-02-12 Thread Philip Mak
I couldn't find the answer in the manual, so I'm asking it here: How do I make mutt not bother checking PGP signatures on messages (since I don't have anyone's PGP keys anyway)?

How is maildir_trash supposed to work?

2002-02-15 Thread Philip Mak
I'm a bit confused about how to use maildir_trash. If maildir_trash is off, then when I quit mutt, if I answer no to purging the messages, then it will lose all the Deleted flags. If maildir_trash is on, then that works. However, then it doesn't seem to be possible to purge deleted messages

Aborting a message

2002-02-19 Thread Philip Mak
When I press 'q' to abort a message being composed, is there a way to make it ask: Abort this message? (y/N) (answering y will exit the message composing screen and throw away the message; answering n will do nothing, i.e. don't postpone it, but don't throw it away either) instead of asking me

Any mailbox cleaner program?

2002-02-19 Thread Philip Mak
Does anyone know of a program that I can set as a cron job to go through an mbox file, and delete all messages that are from a mailing list and are 21 days old?

Reply quoting an unwrapped message

2002-02-21 Thread Philip Mak
When I reply to a message that was composed without line wrapping (i.e. each paragraph is one long line), how can I make mutt wrap it before inserting ? e.g. instead of: You know I have a question...is anyone else besides me and Erica looking at these vids? Just checking, because if no one on

Re: Reply quoting an unwrapped message

2002-02-21 Thread Philip Mak
On Thu, Feb 21, 2002 at 05:26:19PM -0800, Will Yardley wrote: I suppose I could code some sort of startup code in 'vi' to find and wrap long lines, but how would I make it only trigger when 'vi' is being started on composing a new reply (and not any other time, e.g. editing an existing

Re: SMTP Authorization

2002-02-23 Thread Philip Mak
On Sat, Feb 23, 2002 at 12:27:15PM +0100, Martin Karlsson wrote: The 'USER: unknown' bit makes me think you should try just: set pop_user = jerryvb Otherwise the POP-server thinks you're trying to log in as [EMAIL PROTECTED]@pop3.ispwest.com. I don't think that's the problem. I tried

Suggest addition to manual

2002-02-23 Thread Philip Mak
In the Reference section of the manual, I recommend adding a warning at the place where it describes imap_pass and pop_pass: mutt's bug reporting program will send the user's .muttrc file to everyone on the development list, so imap_pass and pop_pass should really be put in a separate file

Using scoring to delete old mailing list messages

2002-02-26 Thread Philip Mak
I configured mutt to automatically delete messages from mailing lists that are older than 21 days, provided that the message is not flagged or addressed to me. Here's what I came up with, in case it's useful to anyone else: my_hdr From: Philip Mak [EMAIL PROTECTED] # alternate e-mail addresses

Re: Is mutt really handicapped?

2002-03-07 Thread Philip Mak
On Wed, Mar 06, 2002 at 09:01:09AM -0500, Ben Logan wrote: Yes, it doesn't have nice and point-and-clicky interface, but I don't like them, anyway. Like many of you on this list probably do, I get several hundred messages a day (up to 600). I almost hyperventilate at the thought of

Writing a memo to myself

2002-04-12 Thread Philip Mak
Scenario: I want to write a memo to myself that appears in my inbox. What's the easiest/fastest way to do this? Right now I'm doing m, pmakENTER, subjectENTER and then typing it. A side effect of this is that the memo ends up in my sent-mail folder too. Oh, is it a bug that when I press y to

Re: New Messages Flag

2002-05-13 Thread Philip Mak
On Mon, May 13, 2002 at 09:59:40AM -0500, David T-G wrote: % I'm trying to get a new message flag to display in front of my % folder name in the folder index view. So I'm doing the following: % %set folder_format=%2C %N %8s %d %f % I'm seeing: % %10 66442 May 13

Content-Type us-ascii

2002-05-14 Thread Philip Mak
I just received a message with this header: Content-Type: text/plain; charset=us-ascii It contained the following line: Since you92re a WebPosition customer, where 92 is how it looks when I less the Maildir file. But when I use the mutt pager to view the message (and even if

text/plain is unsupported?

2002-06-04 Thread Philip Mak
I just got this e-mail message, and when I looked at it in the pager, all I saw was this: Date: Tue, 4 Jun 2002 02:40:08 From: Ryan Edwards [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Classic Cars or parts for sale [-- text/plain, is

[a]lias command

2002-06-24 Thread Philip Mak
I don't like the user interface for the [a]lias command. When I add an alias, it prompts me through a series of one-line prompts in the status bar. If I make a mistake, I have to press Ctrl+G and start the whole series of prompts over. And, it asks me at the end where I want to save the alias

[OT] Re: spamassassin

2002-08-19 Thread Philip Mak
An off-topic query concerning spamassassin: Can it be set to delete spam automatically (I'm not so interested in just *marking* spam, because if it only marks spam I still have to sift through it), without getting too many false positives? I'm thinking of doing something about the 20+ spam