PATCH Re: pgp subprocess (was Re: switch from maildir format back to mbox)
On 2001-10-24 21:45:02 -0400, Daniel Eisenbud wrote: Regardless of why mutt couldn't create a PGP subprocess (in this case, as it turns out, because PGP isn't installed) it is arguably a bug that it doesn't display the message body in the pager. Clearly it should show a big message at the top saying that PGP verification failed, but I think that then it should display the message. This is indeed clearly a bug. -- Thomas Roesslerhttp://log.does-not-exist.org/ Index: pgp.c === RCS file: /home/roessler/cvsroot/mutt/pgp.c,v retrieving revision 2.41 diff -u -r2.41 pgp.c --- pgp.c 2001/07/03 12:17:31 2.41 +++ pgp.c 2001/10/25 07:48:26 @@ -265,7 +265,7 @@ char buf[HUGE_STRING]; char outfile[_POSIX_PATH_MAX]; char tmpfname[_POSIX_PATH_MAX]; - FILE *pgpout = NULL, *pgpin, *pgperr; + FILE *pgpout = NULL, *pgpin = NULL, *pgperr = NULL; FILE *tmpfp; pid_t thepid; @@ -296,7 +296,7 @@ clearsign = 1; needpass = 0; } - else if (!option(OPTDONTHANDLEPGPKEYS) + else if (!option (OPTDONTHANDLEPGPKEYS) mutt_strcmp (PUBLIC KEY BLOCK-\n, buf + 15) == 0) { needpass = 0; @@ -355,44 +355,50 @@ -1, tmpfname, needpass)) == -1) { - fclose (pgpout); pgpout = NULL; - mutt_unlink(tmpfname); + safe_fclose (pgpout); + mutt_unlink (tmpfname); + + maybe_goodsig = 0; + + pgpin = NULL; + pgperr = NULL; + state_puts (_([-- Error: unable to create PGP subprocess! --]\n), s); - state_puts (buf, s); - continue; } - - if (needpass) + else { - if (!pgp_valid_passphrase ()) - pgp_void_passphrase (); - fputs (PgpPass, pgpin); - fputc ('\n', pgpin); - } - - safe_fclose (pgpin); - - if (s-flags M_DISPLAY) - pgp_current_time (s); - - rv = mutt_wait_filter (thepid); - - mutt_unlink (tmpfname); + if (needpass) + { + if (!pgp_valid_passphrase ()) + pgp_void_passphrase (); + fputs (PgpPass, pgpin); + fputc ('\n', pgpin); + } + + safe_fclose (pgpin); + + if (s-flags M_DISPLAY) + pgp_current_time (s); + + rv = mutt_wait_filter (thepid); + + mutt_unlink (tmpfname); - if (s-flags M_DISPLAY) - { - rc = pgp_copy_checksig (pgperr, s-fpout); + if (s-flags M_DISPLAY) + { + rc = pgp_copy_checksig (pgperr, s-fpout); + + if (rc == 0) + have_any_sigs = 1; + if (rc || rv) + maybe_goodsig = 0; + } + + safe_fclose (pgperr); - if (rc == 0) - have_any_sigs = 1; - if (rc || rv) - maybe_goodsig = 0; + if (s-flags M_DISPLAY) + state_puts (_(\n[-- End of PGP output --]\n\n), s); } - - safe_fclose (pgperr); - - if (s-flags M_DISPLAY) - state_puts (_(\n[-- End of PGP output --]\n\n), s); } if(s-flags M_DISPLAY) @@ -407,7 +413,7 @@ /* Use PGP's output if there was no clearsig signature. */ - if(!clearsign) + if(!clearsign pgpout) { fflush (pgpout); rewind (pgpout); @@ -432,9 +438,9 @@ /* decode clearsign stuff */ - if(clearsign) + if (clearsign) { - fseek(s-fpin, start_pos, SEEK_SET); + fseek (s-fpin, start_pos, SEEK_SET); bytes += (last_pos - start_pos); bytes= pgp_copy_clearsigned (s, bytes); last_pos = ftell (s-fpin); PGP signature
Re: IMAP/SSL
Thus spake Ralf Hildebrandt ([EMAIL PROTECTED]): While opening an IMAP/SSL Mailbox works just fine after I accept (on)nce the certificate of the IMAP server, I'd still like to know how I can make mutt accept this certificate until it expires (Netscape-speak). You need to both set a certificates files in your .muttrc (I think the variable is called certificates) and you need to touch that file so that it exists. Then you will be prompted to save the certificate forever and it will write it to that file. -- Justin R. Miller [EMAIL PROTECTED] PGP/GnuPG Key ID 0xC9C40C31 (preferred) PGP signature
Re: OT Procmail rule not working.
On Wed, Oct 24, 2001 at 07:13:57PM -0700 I heard the voice of Will Yardley, and lo! it spake thus: i use: #mutt :0 * ^Return-Path:.*mutt-users-owner.*@mutt\.org lists:mutt/ FWIW, I'd venture you'd be better off using the Sender: header. I moved over to maildrop for filtering a while back (too dang sick of procmail's various stupidities), and my rule looks like: # Mutt if(/^Sender: owner-mutt-users/) to $MBOXDIR/mutt-users Using the .*'s in the rule really kills the efficiency of it; with Sender:, you don't need any wildcards, so it's 'quicker'. Of course, whether it's a noticeable difference is questionable... -- Matthew Fuller (MF4839) |[EMAIL PROTECTED] Unix Systems Administrator |[EMAIL PROTECTED] Specializing in FreeBSD |http://www.over-yonder.net/ The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet
Re: Console mail notifiers/displayers
Collin -- ...and then Collin Peters said... % Are there any out there? I can't find any on freshmeat. What I'm % looking for is something that will display all my mailboxes (or groups % of them) with a new/total display. I have gkrellm setup with the % mailboxes plugin in X but I would like something for the console so I % can monitor my mail from an ssh session Check the archives over the past four to six months; this has come up in reference to mutt's folders with new mail display and others' interpretation of what that should mean, and IIRC some scripts, either standalone or perhaps intended as plugins, were posted. Note that I have found, from recent discussion, that gkrellm (and perhaps other new mail programs) improperly handle new and old-but-unread messages (which many folks might consider new, though mutt correctly doesn't, but which may fit within the design spec of gkrellm's counting unread messages purpose) in Maildirs. % % % Collin HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! PGP signature
Mutt's return value
Hi, I didn't find the answer on this question anywhere... I'm running mutt from a shell script and need to investigate a return value. It looks like mutt is always returning 0. For example, echo hi! | mutt -s hello -a $ATTACHMENT [EMAIL PROTECTED] 21 1$OUTFILE $?=0. No errors will be reported even if I'll put a wrong e-mail address, like [EMAIL PROTECTED] Only if I'll put something very bad like zzz it will return an error but $? will still be =0. So, how can I work with a mutt's return value? I've understand that I can redirect an output and investigate an error file. Is this the only possibility? What if, as I've mentioned above, I've just misspell the 1 letter and no error message appear? Thanks, Oleg
Re: IMAP/SSL
* Justin R. Miller [EMAIL PROTECTED]: You need to both set a certificates files in your .muttrc (I think the variable is called certificates) and you need to touch that file so that it exists. Actually, it's certificate_file. Regardless, I tried both, and got: Error in /home/raines/.muttrc, line 14: certificate_file: unknown variable source: errors in /home/raines/.muttrc What gives? -- Drew # certificate_file # # Type: path # Default: # # This variable specifies the file where the certificates you trust are # saved. When an unknown certificate is encountered, you are asked if you # accept it or not. If you accept it, the certificate can also be saved in # this file and further connections are automatically accepted. # # You can also manually add CA certificates in this file. Any server # certificate that is signed with one of these CA certificates are also # automatically accepted. # # Example: set certificate_file=~/.mutt/certificates
list wierdness and muttrc builder
For some reason I was unsubed from this list without warning. Anyone know why that would be? Anyway, according to http://mutt.netliberte.org, the muttrc builder code is under the GPL. I thought at one point, he had a link to download the code but that seems to have vanished. does anyone have an archive of his code? I'd like to look at it to do a similar project unrelated to mutt and I like how he handles things. Thanks. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.uvic.ca UNIX System Administrator Victoria, BC, Canada [EMAIL PROTECTED]
Re: IMAP/SSL
On Thu, Oct 25, 2001 at 09:31:42AM -0500, Drew Raines wrote: You need to both set a certificates files in your .muttrc (I think the variable is called certificates) and you need to touch that file so that it exists. Actually, it's certificate_file. Regardless, I tried both, and got: Error in /home/raines/.muttrc, line 14: certificate_file: unknown variable source: errors in /home/raines/.muttrc What gives? Dunno. Works for me (the original poster) -- Ralf HildebrandtTel. +49 (0)30-450 570-155 Fax. +49 (0)30-450 570-916 Reality dictates that if we want to be wizards and get paid outrageous salaries to do what we might do for free, the users must be given drool-proof paper.
mutt's return value
Hi, I didn't find the answer on this question anywhere... I'm running mutt from a shell script and need to investigate a return value. It looks like mutt is always returning 0. For example, echo hi! | mutt -s hello -a $ATTACHMENT [EMAIL PROTECTED] 21 1$OUTFILE $?=0. No errors will be reported even if I'll put a wrong e-mail address, like [EMAIL PROTECTED] Only if I'll put something very bad like zzz it will return an error but $? will still be =0. So, how can I work with a mutt's return value? I've understand that I can redirect an output and investigate an error file. Is this the only possibility? What if, as I've mentioned above, I've just misspell the 1 letter and no error message appear? Thanks, Oleg
NNTP support
I'm trying to patch mutt so I can read/subscribe/delete news groups and messages from within. I got the latest mutt: 1.2.23, it compiles just fine. I looked at a few nntp patches, and the one that seemed to be the most complete was at: http://mutt.kiev.ua/download/mutt-1.3.23/ And I applied the nntp patch, and followed the meager directions that exist within the file. It seemed to compile okay, but never seemed to use the file nntp.c or nntp.h. Weird. All this newly compiled version of mutt does now is seg fault. What are people using for NNTP support within mutt? Where can I go for good directions, good documentation and a good add-on to the standard mutt package. Is there a most popular patch? What is it?? Thanks! -- Ryan
Re: OT Procmail rule not working.
* John P. Verel ([EMAIL PROTECTED]) wrote: Questions: Does your $HOME/Mail directory exist? What's the PMDIR and INCLUDERC environmental variables for? I'm running procmail-3.21-0.71, and have either of them. They are based on the Procmail Quickstart page: http://www.ii.com/internet/robots/procmail/qs/ procmail is running on the mail server instead of my local machine (that may change in the future). but here's the output of a procmail -v command on the mail server: gulf% procmail -v procmail v3.11pre3 1995/05/17 written and created by Stephen R. van den Berg [EMAIL PROTECTED] Submit questions/answers to the procmail-related mailinglist by sending to: [EMAIL PROTECTED] And of course, subscription and information requests for this list to: [EMAIL PROTECTED] Locking strategies: dotlocking, flock() Default rcfile: $HOME/.procmailrc System mailbox: /usr/spool/mail/$LOGNAME Yeah yeah, I know it's a little old, nothing I can do about it right now. So far none of the suggestions state why it doesn't work correctly. The same script works just fine on my home machine, just not here at work. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.uvic.ca UNIX System Administrator Victoria, BC, Canada [EMAIL PROTECTED]
Re: IMAP/SSL
* Ralf Hildebrandt [EMAIL PROTECTED]: Dunno. Works for me (the original poster) Ah... I hadn't compiled with SSL when I upgraded to 1.3.23. It works now. -- Drew
Re: Wrapping Text
Thanks, I tried that and it only controls the display. Printing is unaffected. On Wed, Oct 24, 2001 at 10:43:44PM -0400, John P. Verel wrote: You may want to have a look at smart_wrap, item 6.3.182 in the manual (F1). John On 10/24/01, 05:51:13PM -0700, Michael Montagne wrote: When viewing a mail message, how do I reset the width of my margins so it will print properly. I use vim to write mail and that is ok but the mutt viewer for mail i receive does not control the width. I know I'm missing something. thanks -mjm -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com -- John P. Verel Norwalk, Connecticut -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com
Re: Console mail notifiers/displayers
As far as GUI programs go, xbuffy is great (and doesn't have a problem with unread messages that aren't new.) It surely wouldn't be too hard to write a curses or even simply text front end to its mailbox code (which is the hard part.) Note that I'm not volunteering to do this, though. -Daniel -- Daniel E. Eisenbud [EMAIL PROTECTED] We should go forth on the shortest walk perchance, in the spirit of undying adventure, never to return,--prepared to send back our embalmed hearts only as relics to our desolate kingdoms. --Henry David Thoreau, Walking
mbox files not showing new mail
I've changed my procmail rule to match mutt-users specifically for now. I think my problem has to do with the version of procmail I'm running (3.11pre3) and sed. At any rate, it's now working with this rule: :0: * ^Sender: [EMAIL PROTECTED] lists/mutt-users However, mutt is not showing the 'N' beside the mbox file to indicate that it has new mail. This is in mutt 1.2.5i on Solaris 8 (maybe I'll grab a newer version, but for now, this is what I need to use). I have this in my .muttrc: mailboxes `for file in ~/Mail/lists/*; do echo -n +lists/$(basename $file) ; done` any ideas? Note: it works fine at home with mutt 1.3.23 or whatever it is I'm running in Debian unstable. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.uvic.ca UNIX System Administrator Victoria, BC, Canada [EMAIL PROTECTED]
Directory browsing
I have configured Mutt to access several IMAP accounts, and can easily change between the different inboxes with c-?-TAB and hitting ENTER to select the appropriate mail box. BUT ... with IMAP, each mailbox can have a complex directory structure underneath for sorting mails. I can only see the INBOX structure of the mailbox that I set initially in .muttrc with 'set folder=imap://tim@server1/INBOX' Is there any way that I can look at e-mails stored in imap://tim-lists@server1/INBOX/mutt Regards,Tim ++ | [EMAIL PROTECTED] | | IT Manager - Carrington Wire Cardiff | | PO Box 56, Pengam Works, Cardiff CF24 2WR | | Tel:+44(0) 29 20256100 Fax:+44(0) 29 20256101 | | www.CarringtonWire.com | ++
Re: Wrapping Text
Michael Montagne wrote: Thanks, I tried that and it only controls the display. Printing is unaffected. ahh didn't notice that part of your message. you should probably use a formatting program to print your mail. there are some discussions of this in the archives; i use: set print_cmd=enscript -Email set print_split=yes (which requires that enscript be installed). other people prefer different or more elaborate printing programs; that seems to work for my needs so i haven't messed with it much. w -- GPG Public Key: http://infinitejazz.net/will/pgp/
Re: How to mark read messages unread?
On Thu, Oct 25, 2001 at 12:12:09AM -0600, Rob 'Feztaa' Park wrote: On Wed, Oct 24, 2001 at 11:42:27PM -0500, Lance Simmons (dis)graced my inbox with: Is it possible to mark a read message in a mailbox as unread, thereby keeping it from automatically being moved to another mailbox (since I've got a folder-hook setting move to yes)? Seems like an obvious thing to want to be able to do, but I can't seem to find it in the manual. Well, Ken's answer will work for you, ... Yes. Don't you think mbox hooks would be so much better than folder hooks for what you are doing with the old mail? :) I'm using an mbox hook to specify where to save read mail from certain mailboxes, and a folder hook to set move to yes for read mail in those mailboxes. For example: folder-hook =mutt-users set move=yes mbox-hook =mutt-users +archive/mutt-users-archive Is there another, better arrangment I should consider? -- Lance Simmons
Re: Wrapping Text
Yes!! Very good. But what does print_split do? It's not in my manual. On Thu, Oct 25, 2001 at 10:01:29AM -0700, Will Yardley wrote: Michael Montagne wrote: Thanks, I tried that and it only controls the display. Printing is unaffected. ahh didn't notice that part of your message. you should probably use a formatting program to print your mail. there are some discussions of this in the archives; i use: set print_cmd=enscript -Email set print_split=yes (which requires that enscript be installed). other people prefer different or more elaborate printing programs; that seems to work for my needs so i haven't messed with it much. w -- GPG Public Key: http://infinitejazz.net/will/pgp/ -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com
Re: Directory browsing
Thus spake Tim Bonnell ([EMAIL PROTECTED]): Is there any way that I can look at e-mails stored in imap://tim-lists@server1/INBOX/mutt You have to hit 'space' instead of 'enter' to get into an IMAP mailbox. -- Justin R. Miller [EMAIL PROTECTED] PGP/GnuPG Key ID 0xC9C40C31 (preferred) PGP signature
Re: Wrapping Text
Michael Montagne wrote: Yes!! Very good. But what does print_split do? It's not in my manual. hrmm not in my man page (maybe the old man page is earlier in the path), and i don't know if it's in 1.2.5, but... (from /etc/Muttrc) set print_split=no Name: print_split Type: boolean Default: no Used in connection with the print-message command. If this option is set, the command sepcified by $print_command is executed once for each message which is to be printed. If this option is unset, the command specified by $print_command is executed only once, and all the messages are concatenated, with a form feed as the message separator. Those who use the enscript(1) program's mail-printing mode will most likely want to set this option. w -- GPG Public Key: http://infinitejazz.net/will/pgp/
documentation?
Hi all Is there any documentation for mutt 1.3.x floating around? All the docs I've found seem to be for 1.2.5... Matt -- Matt Spong || [EMAIL PROTECTED] || AIM: Spong1027 || http://www.forkbomb.net Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one. -Benjamin Franklin PGP signature
Re: documentation?
On Thu, Oct 25, 2001 at 02:14:25PM -0400, Matt Spong [EMAIL PROTECTED] wrote: Is there any documentation for mutt 1.3.x floating around? All the docs I've found seem to be for 1.2.5... The mutt 1.3.x distribution contains a manual for mutt 1.3.x. -Daniel -- Daniel E. Eisenbud [EMAIL PROTECTED] We should go forth on the shortest walk perchance, in the spirit of undying adventure, never to return,--prepared to send back our embalmed hearts only as relics to our desolate kingdoms. --Henry David Thoreau, Walking
Re: documentation?
The mutt 1.3.x distribution contains a manual for mutt 1.3.x. *sigh*, so it does. I looked and saw it said version 1.2.5 in manual.txt, but I guess I looked in the wrong place. Sorry. /me removes foot from mouth Matt -- Matt Spong || [EMAIL PROTECTED] || AIM: Spong1027 || http://www.forkbomb.net Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one. -Benjamin Franklin PGP signature
Re: Console mail notifiers/displayers
There is always the classic - biff ... a console tool. btw - the name is reputedely from the name of a dog in the uc-berserkely dorm who used to bark whenever the mailman came by :-) aloha, dave On Thu, Oct 25, 2001 at 12:29:56PM -0400, Daniel Eisenbud wrote: As far as GUI programs go, xbuffy is great (and doesn't have a problem with unread messages that aren't new.) It surely wouldn't be too hard to write a curses or even simply text front end to its mailbox code (which is the hard part.) Note that I'm not volunteering to do this, though. -Daniel -- Daniel E. Eisenbud [EMAIL PROTECTED] We should go forth on the shortest walk perchance, in the spirit of undying adventure, never to return,--prepared to send back our embalmed hearts only as relics to our desolate kingdoms. --Henry David Thoreau, Walking PGP signature
Re: mutt's return value
No errors will be reported even if I'll put a wrong e-mail address, like [EMAIL PROTECTED] The email system is a lot like the snail mail system -- if you drop a letter with a bad address into a mailbox, you don't find out right away. The mailbox doesn't spit it out. Email works the same way -- if you tell mutt to send a message to [EMAIL PROTECTED], it successfully sends that message off for delivery. It's not until the mail system tries to deliver it (possibly days later) that the address is determined to be invalid. Only if I'll put something very bad like zzz it will return an error but $? will still be =0. is a valid email address -- mutt interprets that as zzz@localhost. Or perhaps @ the value of the hostname variable. Again, it's not until a delivery attempt is made that the invalid address is uncovered. -- Mike Schiraldi Verisign Applied Research smime.p7s
Changing forward intro line?
Hi, I don't like the default intro line when forwarding an email by quoting it: - Forwarded message from NAME ADDRESS - How can I change that? I have not found any suitable option in for muttrc. Bye, Steffen PS: I'm using Mutt 1.3.23i (2001-10-09)
Re: [Announce] mutt-1.3.23i is out (BETA).
is there a 1.3.23 manual available? * Thomas Roessler ([EMAIL PROTECTED]) wrote: I've just released the next mutt beta. This version fixes a bunch of bugs found during the last weeks. Some of the more interesting changes, in no particular order:
Re: OT Procmail rule not working.
I have a procmail rule to move list mail to a folder. But it's not working correctly according to my procmail logs. Here's the procmail script: PATH=/public/bin:/local/bin:/usr/bin:/bin SHELL=/public/bin/tcsh VERBOSE=on LOGABSTRACT=all MAILDIR=$HOME/Mail PMDIR=$HOME/Procmail LOGFILE=$PMDIR/log #INCLUDERC=$PMDIR/testing.rc INCLUDERC=$PMDIR/lists.rc ### # Mailing lists # ### #:0: #* X-Mailing-List: \/[^@]+ #lists/`echo $MATCH | sed -e 's/[\/]/_/g'` :0: * ^Sender: owner-\/[^@]+ lists/`echo $MATCH | sed -e 's/[\/]/_/g'` It's this last rule that doesn't work. Here's what it produced for a mail msg to this list: what's MATCH set to? -- |- CODE WARRIOR -| [EMAIL PROTECTED] * ah! i see you have the internet [EMAIL PROTECTED] (Andrew Brown)that goes *ping*! [EMAIL PROTECTED] * information is power -- share the wealth.
send-hooks don't work
Hallo, I'm using mutt 1.3.x. I use send-hooks to define the my_hdr From:, my_hdr Organisation: and the signature. If write the muttrc file and start mutt, everything works fine, but after a while, mutt gets confused and brings wrong Organisation or wron signatures. Where's the problem. muttrc: set default_hook=~t %s send-hook . my_hdr From: Manuel Hendel [EMAIL PROTECTED] ;\ set signature=peq| send-hook .*@domain\.de$ my_hdr From: x ;\ my_hdr Organisation: x ;\ set signature=~/.mutt/world.sig send-hook .*@domain\.de$ my_hdr From: x ;\ my_hdr Organisation: x ;\ set signature=~/.mutt/xxx.sig Is there anything wrong? I don't think so! Thanks in advance. Manuel PS Just now, mutt does it right. -- Those who make peaceful revolution impossible will make violen trevolution inevitable. -John Fitzgerald Kennedy
Re: Console mail notifiers/displayers
On Thu, Oct 25, 2001 at 10:21:30AM -0400, David T-G (dis)graced my inbox with: Note that I have found, from recent discussion, that gkrellm (and perhaps other new mail programs) improperly handle new and old-but-unread messages (which many folks might consider new, though mutt correctly doesn't, but which may fit within the design spec of gkrellm's counting unread messages purpose) in Maildirs. I still say mutt is wrong - 'unread' is synonymous with 'new' :) -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- Where would man be today if it wasn't for women? In the Garden of Eden eating watermelon and taking it easy. -- C Kennedy PGP signature
Re: How to mark read messages unread?
On Thu, Oct 25, 2001 at 12:26:23PM -0500, Lance Simmons (dis)graced my inbox with: On Thu, Oct 25, 2001 at 12:12:09AM -0600, Rob 'Feztaa' Park wrote: On Wed, Oct 24, 2001 at 11:42:27PM -0500, Lance Simmons (dis)graced my inbox with: Is it possible to mark a read message in a mailbox as unread, thereby keeping it from automatically being moved to another mailbox (since I've got a folder-hook setting move to yes)? Seems like an obvious thing to want to be able to do, but I can't seem to find it in the manual. Well, Ken's answer will work for you, ... Yes. Don't you think mbox hooks would be so much better than folder hooks for what you are doing with the old mail? :) I'm using an mbox hook to specify where to save read mail from certain mailboxes, and a folder hook to set move to yes for read mail in those mailboxes. For example: folder-hook =mutt-users set move=yes mbox-hook =mutt-users +archive/mutt-users-archive Is there another, better arrangment I should consider? Well, that's kind of redunant, I think - if you set your mbox hooks only for the mbox's you want moved, and then you just turn on move globally, it will only move the messages in the mbox's that you have mbox hooks set up for - this is because mutt has nowhere to move the messages from other folders, so it doesn't. In other words, delete all your folder hooks and just set move to yes :) That's how I've got it set up, anyway. -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- The generation of random numbers is too important to be left to chance.
Re: Console mail notifiers/displayers
On 2001.10.25, in [EMAIL PROTECTED], Rob 'Feztaa' Park [EMAIL PROTECTED] wrote: On Thu, Oct 25, 2001 at 10:21:30AM -0400, David T-G (dis)graced my inbox with: Note that I have found, from recent discussion, that gkrellm (and perhaps other new mail programs) improperly handle new and old-but-unread messages (which many folks might consider new, though mutt correctly doesn't, but which may fit within the design spec of gkrellm's counting unread messages purpose) in Maildirs. I still say mutt is wrong - 'unread' is synonymous with 'new' :) Except when it's synonymous with oh, heck, I don't want to deal with this now. That's when I want something to be old instead of new or read, and to stay old between instances of mutt -- but for unread messages to stay unread, without becoming old. Oh, well, I can't have everything I want. :) -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: Console mail notifiers/displayers
David Champion [[EMAIL PROTECTED]] wrote: Except when it's synonymous with oh, heck, I don't want to deal with this now. That's when I want something to be old instead of new or read, and to stay old between instances of mutt -- but for unread messages to stay unread, without becoming old. Oh, well, I can't have everything I want. :) I think it's just a matter of semantics. To me old should be older than the ones that aren't marked at all. Perhaps it should be marked U for unread or something instead... Doesn't matter I s'pose, I turned it off and never really think about it anymore except for when it comes up on the list here. grin -- Ben Reed a.k.a. Ranger Rick ([EMAIL PROTECTED]) http://defiance.dyndns.org/ / http://radio.scenespot.org/ Right now Moltar is heating my skull up to a scorching 450 degrees. It's like getting a scalp massage... from Lucifer. -- Space Ghost
coloring the indicator
YACQ: I'd really like to colorize my indicator. I no longer use %Z in my index_format, and use index coloring to pass along the flag-info I care about. Unfortunately, that means that I can't tell what's up with the message currently under the indicator. Any hints on using patterns to hilight the indicator somehow? -- rjbs PGP signature
Re: Console mail notifiers/displayers
On Thu, Oct 25, 2001 at 06:28:44PM -0500, David Champion (dis)graced my inbox with: On 2001.10.25, in [EMAIL PROTECTED], Rob 'Feztaa' Park [EMAIL PROTECTED] wrote: On Thu, Oct 25, 2001 at 10:21:30AM -0400, David T-G (dis)graced my inbox with: Note that I have found, from recent discussion, that gkrellm (and perhaps other new mail programs) improperly handle new and old-but-unread messages (which many folks might consider new, though mutt correctly doesn't, but which may fit within the design spec of gkrellm's counting unread messages purpose) in Maildirs. I still say mutt is wrong - 'unread' is synonymous with 'new' :) Except when it's synonymous with oh, heck, I don't want to deal with this now. That's when I want something to be old instead of new or read, and to stay old between instances of mutt -- but for unread messages to stay unread, without becoming old. Oh, well, I can't have everything I want. :) Lol. I guess I just realized that I don't care about new mail, I want mutt to tell me when I have unread mail (in mutt's definition). Is that possible? Anyone? :) -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- If I wanted your opinion, I'd give it to you.
Re: send-hook and my_hdr
On Thu, Oct 11, 2001 at 02:53:29PM +0200, Thomas Roessler wrote: See that header in this mail. That is from a send-hook. Problem is that once that hook is activated, the header ends up in all mails (like this one). How to fix? Add a hook matching all messages which unmy_hdrs the entry in question. That won't work in all cases. If i set unmy_hdr in a sent-hook, all from-headers set by a folder-hook are removed too, and not only the hooks which were set by send-hooks. Is there any way to use folder-hooks *and* send-hooks together to modify the From-headers in a way that i want? Some days ago i've described this problem in greater detail in d.c.s.mailreader.misc [EMAIL PROTECTED] but got no solution for it. If somebody has a workaround i would greatly appreciate to hear it. Greetings - Lars.
Re: pgp subprocess
This is why I thought it odd that Suresh's PGP-signed email wouldn't show up. His is the only one like that for me. This is Ricardo's email from just today, how all of them come out: [-- PGP output follows (current time: Thu Oct 25 21:01:42 2001) --] [-- End of PGP output --] [-- The following data is signed --] YACQ: I'd really like to colorize my indicator. I no longer use %Z in my index_format, and use index coloring to pass along the flag-info I care about. Unfortunately, that means that I can't tell what's up with the message currently under the indicator. Any hints on using patterns to hilight the indicator somehow? -- rjbs [-- End of signed data --]
Re: send-hook and my_hdr
On Fri, Oct 26, 2001 at 01:52:16AM +0200, Lars Becker (dis)graced my inbox with: On Thu, Oct 11, 2001 at 02:53:29PM +0200, Thomas Roessler wrote: See that header in this mail. That is from a send-hook. Problem is that once that hook is activated, the header ends up in all mails (like this one). How to fix? Add a hook matching all messages which unmy_hdrs the entry in question. That won't work in all cases. If i set unmy_hdr in a sent-hook, all from-headers set by a folder-hook are removed too, and not only the hooks which were set by send-hooks. Is there any way to use folder-hooks *and* send-hooks together to modify the From-headers in a way that i want? I'm not sure if this will work, but how about setting up a second send-hook that recreates the headers you lost from your folder hook? (of course, this is done after the first send hook nukes your headers...) -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- I always arrive late at the office, but I make up for it by leaving early. -- Charles Lamb
Re: Wrapping Text
Sorry, I missed the printing part as well. Here's my printing configuration: set print_command=enscript --word-wrap --margins=::: -f 'Times-Roman11'-F 'TimesRoman14' --fancy-header='enscript' -i3 This solves all the word wrap problems and makes all printouts real purdy ;) John On 10/25/01, 08:45:37AM -0700, Michael Montagne wrote: Thanks, I tried that and it only controls the display. Printing is unaffected. On Wed, Oct 24, 2001 at 10:43:44PM -0400, John P. Verel wrote: You may want to have a look at smart_wrap, item 6.3.182 in the manual (F1). John On 10/24/01, 05:51:13PM -0700, Michael Montagne wrote: When viewing a mail message, how do I reset the width of my margins so it will print properly. I use vim to write mail and that is ok but the mutt viewer for mail i receive does not control the width. I know I'm missing something. thanks -mjm -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com -- John P. Verel Norwalk, Connecticut -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com -- John P. Verel Norwalk, Connecticut
Re: Console mail notifiers/displayers
At 18:28 -0500 25 Oct 2001, David Champion [EMAIL PROTECTED] wrote: Except when it's synonymous with oh, heck, I don't want to deal with this now. That's when I want something to be old instead of new or read, and to stay old between instances of mutt -- but for unread messages to stay unread, without becoming old. That's pretty much how I use it as well. I've patched mutt so that the functionality of the standard versions $mark_old is split into two variables: - $mark_old, controls if new messages are automatically marked as old when you leave a folder. Also, this is now a quad-option (this part was actually done by somebody else, though I'd have to look to remember who). - $see_old, determines whether or not messages that are marked as old should actually be displayed as such. It's even done in such a way that changing the value of $see_old will take effect immediately, not just when messages are being parsed. The patch (and a couple others I've done) is available from my (currently *very* minimal) mutt page: http://pug.schrab.com/aaron/mutt/ Current version up there was originally against 1.3.8, but it should apply cleanly up to 1.3.23. There's a minor issue applying against the current CVS version, but it's pretty easy to fix. I'll probably put a new version up sometime over the weekend. Of course, I haven't done extensive testing of it in a while; I just know that it works for me with set mark_old=no see_old=yes -- Aaron Schrab [EMAIL PROTECTED] http://www.execpc.com/~aarons/ What kind of head of security would I be if I let people like me know things that I'm not supposed to know?-- Garibaldi
post failure ??
What is happening when I try to mail to someone at aol? I get the following error: Reporting-MTA: dns; localhost.localdomain Arrival-Date: Fri, 26 Oct 2001 04:18:02 + (UTC) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mailin-04.mx.aol.com[152.163.224.122] said: 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE -- Pat Shanahan Registered Linux User #207535 Registered at: http://counter.li.org
Re: post failure ??
pat mutt [25/10/01 23:40 -0500]: What is happening when I try to mail to someone at aol? I get the following error: Reporting-MTA: dns; localhost.localdomain Arrival-Date: Fri, 26 Oct 2001 04:18:02 + (UTC) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mailin-04.mx.aol.com[152.163.224.122] said: 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE Check the MX and A records for your domain - and see you are not sending out mail as [EMAIL PROTECTED] or something. You might ask on postfix-users instead of here. -srs
Re: post failure ??
On Thu, Oct 25, 2001 at 11:40:48PM -0500, pat (dis)graced my inbox with: What is happening when I try to mail to someone at aol? I get the following error: Reporting-MTA: dns; localhost.localdomain Arrival-Date: Fri, 26 Oct 2001 04:18:02 + (UTC) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mailin-04.mx.aol.com[152.163.224.122] said: 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE Just a guess, but it looks like AOL's master mail server is getting confused when it tries to send it to the local mail server for each region (can't resolve the DNS). Ask your friends if they have the same problem... if so, I could be right; if not, I'm wrong. -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- Fiction writing is great. You can make up almost anything. -- Ivana Trump
Re: post failure ??
On Thu, Oct 25, 2001 at 11:40:48PM -0500, pat wrote: What is happening when I try to mail to someone at aol? I get the following error: Reporting-MTA: dns; localhost.localdomain Arrival-Date: Fri, 26 Oct 2001 04:18:02 + (UTC) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mailin-04.mx.aol.com[152.163.224.122] said: 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE -- Pat Shanahan Registered Linux User #207535 Registered at: http://counter.li.org ---end quoted text--- followup to my own post. I get this failure/error when posting from mutt 1.3.23i. I DO NOT get a failure when I copy the same msg to kmail's outbox and then send it (exactly the same msg). ? -- Pat Shanahan Registered Linux User #207535 Registered at: http://counter.li.org
Re: post failure ??
On Thu, Oct 25, 2001 at 11:54:24PM -0500, MuttER (dis)graced my inbox with: followup to my own post. I get this failure/error when posting from mutt 1.3.23i. I DO NOT get a failure when I copy the same msg to kmail's outbox and then send it (exactly the same msg). ? In that case, I don't have a clue. Sorry :( -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- You're one of those condescending Unix computer users! Here's a nickel, kid. Get yourself a real computer. -- Dilbert comic
Re: limit header size
On Wed, Oct 24, 2001 at 09:01:17AM +0200, R . Leponce wrote: Is there a way to limit the size of CC and To field when receiving an email also sent to many users ? Not built in to mutt, but it can be done with an external script and the display_filter variable. I use the following in my muttrc: set display_filter=mail-to-filter where mail-to-filter is a perl script (attached) which I wrote originally in awk and converted to perl with a2p. To: and Cc: lists are only truncated if they are longer than three lines and the deleted lines are replaced with a message saying how many lines were deleted. Since the filter is applied only as the message is displayed, the original message remains intact so that, for example, group replies work correctly. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ | #!/usr/local/bin/perl # mail-to-filter - strips long distribution lists from mail # # AUTHOR # Gary A. Johnson [EMAIL PROTECTED] # Agilent Technologies # Spokane, Washington # May 22, 2000 eval 'exec /usr/bin/perl -S $0 ${1+$@}' if $running_under_some_shell; # this emulates #! processing on NIH machines. # (remove #! line above if indigestible) eval '$'.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_0-9]+=)(.*)/ shift; # process any FOO=bar switches $[ = 1; # set array base to 1 $, = ' '; # set output field separator $\ = \n; # set output record separator $in_to_list = 0; $in_cc_list = 0; $spaces = sprintf('%80s', ''); line: while () { chop; # strip record separator s/\s+$//; # Remove excess spaces at the ends of lines # that can cause lines to wrap unnecessarily. @Fld = split(' ', $_, ); if ($in_to_list == 1) { if (/^T[Oo]:.*@/) { $lines += 1; $last_line = $_; next line; } if (/^[^ \t]/ || /^$/) { if ($lines == 1) { print $last_line; } elsif ($lines 1) { print $indentation . '[' . $lines . ' lines deleted]'; } $in_to_list = 0; } else { $lines += 1; $last_line = $_; next line; } } if ($in_cc_list == 1) { if (/^C[Cc]:.*@/) { $lines += 1; $last_line = $_; next line; } if (/^[^ \t]/ || /^$/) { if ($lines == 1) { print $last_line; } elsif ($lines 1) { print $indentation . '[' . $lines . ' lines deleted]'; } $in_cc_list = 0; } else { $lines += 1; $last_line = $_; next line; } } if (/^T[Oo]:.*@/) { $indentation = substr($spaces, 1, index($_, $Fld[2]) - 1); $in_to_list = 1; $lines = 0; } if (/^C[Cc]:.*@/) { $indentation = substr($spaces, 1, index($_, $Fld[2]) - 1); $in_cc_list = 1; $lines = 0; } print $_; } exit 0;