Re: compressed folders and Maildir
»Sven Guckes« sagte am 2002-03-21 um 00:45:34 +0100 : > who said that the "compressed folders patch" > will work when using Maildir format? ;-) Nobody, that's why I'd like to force mbox_type=mbox when saving to a .bz2 file. > append-hook? is this a new one? Yes. Introduced by CFP. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 13 hours 35 minutes
Re: experience/questions : switching from Netscape to mutt
Flavien ([EMAIL PROTECTED]) wrote: > As the subject says, I recently switched from Netscape to mutt, > a couple of weeks ago. I wanted to do it for a long time, for > several reasons, but you know how lazy one can be when it comes > to changing ones habits... :o) Same for me. I have used Netscape for the past 7 years almost exclusively, but have wanted to switch to something better for a long time. I tried Pine and literally could not stand it. I found VM to be way too heavy and clumsy. > I spent some time on the configuration, and it's _almost_ > perfect (though the perception of perfection tends to change > over time :o) ). It took me nearly a week to learn mutt, and build an initial configuration that I can be happy with. This is not all directly related to mutt, but also fetchmail, procmail, safecat, etc. Now, I can automatically send mails with different From: addresses depending upon which folder I am in when I compose the message, or the From: or To: address it was sent to. In my opinion, this is one of Mutt's strongest features. > Other than that, I'm _so happy_ that I can read my mail archives > from work/home, that I can even use email without X, and that > it starts faster than my previous mailer ... Thanks to mutt > developpers ! :o) I am so also happy that I now have a text based reader that is decent. One of the top things I am waiting for now is the S/MIME support, which I understand is now in CVS and coming to a release quite soon. -- Mike
Re: Replacing a message with its filtered output
* Rob Reid <[EMAIL PROTECTED]> [2002-03-21 19:10:40 -0500]: > At 5:18 PM EST on March 21 Mike Schiraldi sent off: > > I don't know. It would be nice to press the key bound to and type, > > like, > > perl -pe 's/<.*?>//g' > > to remove all HTML tags from a message. > > It's practically a necessity before replying. Here's something from my > .muttrc that saves me a lot of time: > > # Despite the name, stripmime.pl is really for deHTMLization. > macro index "H" "|/home/reid/bin/stripmime.pl >> /var/spool/mail/reid" What happens if some mail is delivered to your inbox while you are executing this macro? I think your mailbox will get corrupt. Nicolas
Re: defining a command -> internal langauge
* Cameron Simpson <[EMAIL PROTECTED]> [2002-03-22 12:24:10 +1100]: > Someone has already mentioned his startup file being: > > source "shell-cmd |" > > Wouldn't: > > macro foo :source "shell-cmd|" > > be general enough to go most algorithmic things without bloating > mutt? The shell hcan hand of to whatever interpreter tickles your fancy. How can I get the "current" settings/status information into the script? For example, the value of editor, or the number of unread messages. Nicolas
Re: experience/questions : switching from Netscape to mutt
* Flavien <[EMAIL PROTECTED]> [2002-03-22 01:10:52 +0100]: > *) I filter my fetchmailed-mails through procmail and send the > mails to the appropriate folders (especially mailing lists). Mutt > does not show "N" in front of the dirs. I read on this list > that's because mutt compares the last-access-time of the mailbox > file, and the one of .muttrc. But in fact, I do not run mutt all > the time, and I frequently start it just for reading an old email, > leaving the mailing lists "for later". Too bad. I changed muttrc > last access time, so it's newer than the mailbox, and I won't see > "N" anymore until a new mail comes in. The *time of your .muttrc is AFAIK irrelevant for the N flag. Mutt compares the atime and mtime of the folders you list as "mailboxes" if they are mbox-folders, it looks for files in new/ if they are maildir-folders (don't know how the other formats work). Nicolas
Re: how to set default from address
Pankaj Jangid ([EMAIL PROTECTED]) muttered: > set from = "[EMAIL PROTECTED]" > > is not working It should (since you are using 1.3.27). I guess you forgot to set $envelope_from? # Configure From: set realname="Michael Tatge" set from="[EMAIL PROTECTED]" set use_from# create From: Header set envelope_from HTH, Michael -- "I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you." (By Vance Petree, Virginia Power) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: defining a command
Rocco, et al -- ...and then Rocco Rutte said... % % Hi, Hello! % % On Thu, Mar 21, 2002 at 07:25:50:AM -0500 David T-G wrote: % > ...and then Rocco Rutte said... % > % % > % define '' ... % > (pager, index, compose, ...) to set the scope of the command, how are the % > two at all different? % %macro index ,filter 'set editor=filter;;set editor=vim' %define index ,filter 'set editor=filter;;set editor=vim' % % Good, this is the first step. See my example. As far as I experienced I OK; I agree that if you have a gawdawful $editor setting then it gets cumbersome or you have to have an editor-definition macro (though that's not so bad 'cuz then you're back to a single place to maintain it). But see below, apparently, about such a macro... % would have to include the first set of commands (instead of just the % name) if I wanted to create another macro which includes the first. I haven't seen that. % % Didn't unterstand that? Okay, another example: % % I start with: % % macro index ,filter 'set editor=filter;;set editor=vim' % % and then do: % % macro index ,name 'set sendmail=mail.pl;set editor=filter;;set editor=vim;set sendmail=/usr/sbin/sendmail' Gotcha. That's the long way around. % % What I'd love to have is instead: % % macro index ,name 'set sendmail=mail.pl;;sed sendmail=/usr/sbin/sendmail' You mean something like macro pager ,@r13on "set display_filter=$HOME/local/bin/rot13;macro pager \\cx ,@r13off 'Toggle ROT13 decoding'\n" macro pager ,@r13off "set display_filter=;macro pager \\cx ,@r13on 'Toggle ROT13 decoding'\n" macro pager \cx ,@r13on 'Toggle ROT13 decoding' or so? The on and off macros each define rot13 behavior and redefine the ctrl-x keystroke. Now, that's sort of boring (I haven't even considered enhancing this; it works and I never have to look at it, just as I suggested in an early reply in this thread), but the good part is that the ctrl-x macro simply calls the "on" macro. % % See? I think so. Do you, or do I not? % % Regards, Rocco :-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! msg25912/pgp0.pgp Description: PGP signature
Re: Filtering a message from the index -> procmail
Cameron, et al -- ...and then Cameron Simpson said... % % On 11:44 21 Mar 2002, Steve Talley <[EMAIL PROTECTED]> wrote: % | David T-G wrote: % | > ...and then Steve Talley said... ... % | > > orignal, why shouldn't it be able to do the same with an arbitrary % | > > shell script? % | > % | > It can -- just as you've defined it within your macro :-) % % Hmm. I was thinging along the same lines as Steve, but then: if my index % is ordered, I'd expect the the edited message to show up in the right spot Sure; that makes sense. % in the index anyway regardless of being "a fresh message". So Steve, do Well, unless you change pertinent information in the message (if you sort by threads but break the References: header, or if you sort by date but change the date, or ...) it ought to land right where you expect it to. % you order your index on some message feature (eg Date:) or just physical % mail folder order? If you sort by mailbox order then it should land at the bottom just as you'd expect from the sorting :-) That's actually only half a smiley; I'd much rather have it down there if that's how I sort than to have it either magically displayed out of order or, heaven forbid, have it inserted in the middle of my potentially huge mbox file. % % | Suppose my default $editor is something ridiculously long, like: % | vi -o2 -e -b '+/^subject' '+s/^subject/SuBJeCt/i' '+/^$/' % | % | Then I have to reset it in every macro: ... % % Stuff in in an envvar. Like $EDITOR, which it probably is anyway. Then: I like this approach as well. There was even a patch that let you access environment vars and/or mutt vars in a script, but I forget the specifics... Perhaps someone could dig it out; I'm almost certain it's by one of the authors in my cocktail. % ... % Maybe a fresh mutt command: % % :pushvar editor='...';e:popvar editor We're treading on risky ground; the next thing you know we'll be putting in a scripting language whether we like it or not :-) % % Just ideas, % -- % Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ % % Nothing is impossible for the man who doesn't have to do it. 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! msg25913/pgp0.pgp Description: PGP signature
Re: defining a command -> internal langauge
Quoting Nicolas Rachinsky <[EMAIL PROTECTED]> [Mar 22, 2002 06:20]: > * Cameron Simpson <[EMAIL PROTECTED]> [2002-03-22 12:24:10 +1100]: > > Someone has already mentioned his startup file being: > > > > source "shell-cmd |" > > > > Wouldn't: > > > > macro foo :source "shell-cmd|" > > > > be general enough to go most algorithmic things without > > bloating mutt? The shell hcan hand of to whatever interpreter > > tickles your fancy. > > How can I get the "current" settings/status information into > the script? For example, the value of editor, or the number of > unread messages. Simple -- make shell-cmd write out a config file as a side effect, and, when it starts, it can read the current config file and use it as a base. (darren) -- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare
Re: Replacing a message with its filtered output
Quoting Mike Schiraldi <[EMAIL PROTECTED]> [Mar 21, 2002 17:17]: > #! /usr/bin/perl -W > while(<>) { print; s/\r//g; chomp; last unless $_; } > while(<>) { y/A-Za-z/N-ZA-Mn-za-m/; print; } while (<>) { (1 .. /^$/) ? s/\r\n//g : y/A-Za-z/N-ZA-Mn-za-m/; print; } :) (darren) -- All pleasures cost at least the time they take.
Re: defining a command -> internal langauge
* Sven Guckes <[EMAIL PROTECTED]> [2002-03-21 23:13:28 +0100]: > * Jeremy Blosser <[EMAIL PROTECTED]> [2002-03-21 16:49]: > > > [SNIP scripting in mutt would be nice] > > [SNIP Sven swears in public] > > Sven [slang, anyone?] I seem to remember that someone does/did maintain a patch that made mutt programmable via slang. -- Dave Pearson: | mutt.octet.filter - autoview octet-streams http://www.davep.org/ | mutt.vcard.filter - autoview simple vcards Mutt: | muttrc2html - muttrc -> HTML utility http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode
Re: experience/questions : switching from Netscape to mutt
On Fri, Mar 22, 2002 at 01:10:52AM +0100, Flavien wrote: > *) Aliases : Do I really have to press ^T and then select each > recipient one at a time when I send an email ? I would like > to select multiple persons. By default, ^T initiate an external address query while alias searching is initiated by , so I'm not sure which you are actually doing. In either case, though, you can tag multiple addresses in the list and the tagged addresses will all be added to the recipient list. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: defining a command -> internal langauge
On Fri, 22 Mar 2002, Dave Pearson wrote: > * Sven Guckes <[EMAIL PROTECTED]> [2002-03-21 23:13:28 +0100]: > > > * Jeremy Blosser <[EMAIL PROTECTED]> [2002-03-21 16:49]: > > > > > [SNIP scripting in mutt would be nice] > > > > [SNIP Sven swears in public] > > > > Sven [slang, anyone?] > > I seem to remember that someone does/did maintain a patch that made mutt > programmable via slang. possibly - but I've only seen it mentioned as a possibility that could be developed rather than an accomplished fact. -- T.E.Dickey <[EMAIL PROTECTED]> http://invisible-island.net ftp://invisible-island.net
Re: defining a command -> internal langauge
On Fri, 22 Mar 2002, Thomas E. Dickey wrote: > > I seem to remember that someone does/did maintain a patch that made mutt > > programmable via slang. > > possibly - but I've only seen it mentioned as a possibility that could > be developed rather than an accomplished fact. speaking of which (since I followed up with a check in google), this page contains a long-obsolete link for ncurses (has not been active for about 6 years): http://www.math.fu-berlin.de/~guckes/mutt/ I would assume that it is not a currently maintained page, since some of the other information on it is not correct, but the header has a pointer to mutt 1.3.x ... -- T.E.Dickey <[EMAIL PROTECTED]> http://invisible-island.net ftp://invisible-island.net
Re: experience/questions : switching from Netscape to mutt
Flavien -- ...and then Flavien said... % % Hi, Hello and welcome! % ... % *) I filter my fetchmailed-mails through procmail and send the % mails to the appropriate folders (especially mailing lists). Mutt % does not show "N" in front of the dirs. I read on this list % that's because mutt compares the last-access-time of the mailbox % file, and the one of .muttrc. But in fact, I do not run mutt all As Nicolas already pointed out but as bears repeating, the .muttrc file timestamp has absolutely nothing to do with new mail checking. I'd like to know where you read that and if you really did; I don't recall such info coming across the list. The mailboxes command will probably take care of this for you, as Will suggested. Beware of anything else checking for new mail, though. ... % *) When I select recipient, There's only one line. If I select % more than 2 persons, then it get's scrolled, and I cannot see % all of them. I find it pretty annoying. This actually just came up recently, and that was the first time I'd seen it. I'd rather have a compose window that doesn't get overloaded with recipient information than try to fit it all in; my last contract status update email went to over 1100 addresses (via bcc, of course) and that would never fit anyway. I like the $edit_headers suggestion; in fact, that's my practice, too. % % *) When reading a list, I often press 'd'. I would like mutt % to display the next _unread_ message, and not the next message % in the list (I have the messages sorted by thread, thus it % often displays messages I already read). This might require a little magic, since I'm too lazy to go into the manual to look to see if you can tell mutt to jump to next-new instead of next when resolving. You could always turn off $resolve and then do something like macro pager d '' macro index d '' and achieve what you desire... % % Any suggestion on one/another of these points ? Hope those help :-) % % Other than that, I'm _so happy_ that I can read my mail archives % from work/home, that I can even use email without X, and that % it starts faster than my previous mailer ... Thanks to mutt % developpers ! :o) Hear, hear :-) % % Flavien. % -- % Thinking is dangerous. It leads to ideas. % -- Seen on #Debian :-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! msg25920/pgp0.pgp Description: PGP signature
Re: defining a command -> internal langauge
* Thomas E. Dickey <[EMAIL PROTECTED]> [2002-03-22 10:28:35 -0500]: > On Fri, 22 Mar 2002, Dave Pearson wrote: > > > I seem to remember that someone does/did maintain a patch that made mutt > > programmable via slang. > > possibly - but I've only seen it mentioned as a possibility that could be > developed rather than an accomplished fact. I've got a pretty clear memory of someone producing and maintain a patch which enabled slang as a scripting language for mutt. I know it was mentioned a good few times, either here or on the developers' mailing list. Am I really miss-remembering that? -- Dave Pearson: | mutt.octet.filter - autoview octet-streams http://www.davep.org/ | mutt.vcard.filter - autoview simple vcards Mutt: | muttrc2html - muttrc -> HTML utility http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode
Re: experience/questions : switching from Netscape to mutt
On Fri, Mar 22, 2002 at 01:08:04PM +0200, Mike Jackson scratched: > Flavien ([EMAIL PROTECTED]) wrote: > > Other than that, I'm _so happy_ that I can read my mail archives > > from work/home, that I can even use email without X, and that > > it starts faster than my previous mailer ... Thanks to mutt > > developpers ! :o) > > I am so also happy that I now have a text based reader that is decent. > One of the top things I am waiting for now is the S/MIME support, which > I understand is now in CVS and coming to a release quite soon. Same here. S/MIME is the reason I switched from mutt/xfmail to Netscape 4.x. I've been using a CVS build, and S/MIME was been working quite well for me. I discovered two minor issues, for which I've sent patches to the mutt-dev list. I've got a couple of things to tweak yet before I'll be as productive with multiple folders as I was in NS, but otherwise I'm a really happy camper. I'm so used to having a 3 way split in my mail program: folders on the left side, message list in the top right, and preview in the bottom right. With that setup, it's a breeze to drag and drop messages to any of my 138 folders. -- Regards, Wim Kerkhoff, Software Engineer Merilus, Inc. -|- http://www.merilus.com Email: [EMAIL PROTECTED]
Re: defining a command -> internal langauge
On Fri, 22 Mar 2002, Dave Pearson wrote: > * Thomas E. Dickey <[EMAIL PROTECTED]> [2002-03-22 10:28:35 -0500]: > > > On Fri, 22 Mar 2002, Dave Pearson wrote: > > > > > I seem to remember that someone does/did maintain a patch that made mutt > > > programmable via slang. > > > > possibly - but I've only seen it mentioned as a possibility that could be > > developed rather than an accomplished fact. > > I've got a pretty clear memory of someone producing and maintain a patch > which enabled slang as a scripting language for mutt. I know it was > mentioned a good few times, either here or on the developers' mailing list. > > Am I really miss-remembering that? I don't know - I searched further and found a patch, but it's pre-1.0 (and don't know if the patch was good or not). -- T.E.Dickey <[EMAIL PROTECTED]> http://invisible-island.net ftp://invisible-island.net
Re: Mail is not reaching destination
* On 2002.03.21, in <[EMAIL PROTECTED]>, * "Jerry Van Brimmer" <[EMAIL PROTECTED]> wrote: > Yes, I am using sendmail, but I have no clue as to where sendmail's log file is. > Do you know? Sendmail doesn't keep an independent log file. All its logs are routed through the syslog service, so the only sure way to find out where they wind up is to look in /etc/syslog.conf and find where it logs "mail" syslogs. My servers store it in /var/log/syslog. But on my personal Solaris box: shell$ egrep 'mail\.' /etc/syslog.conf *.err;kern.debug;daemon.notice;mail.crit/var/adm/messages mail.info /var/log/mail.log The "mail.info" line is the one I'm interested in. You might also look for mail.debug or mail.notice. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: Replacing a message with its filtered output
At 8:42 PM EST on March 21 Gary Johnson sent off: > On Thu, Mar 21, 2002 at 07:58:16PM -0500, Rob Reid wrote: > > I've tried w3m and stripmime does just as well. In fact, I don't want any > > fancy interpretation of HTML mail by default - it slows things down and can > > be dangerous if the HTML interpreter executes javascript, etc.. > > If stripmime works for you, then that's what you should use. w3m > doesn't do javascript, etc., so it's safe. One of these days it will, but javascript capable browsers always seem to have a way of turning it off, for this reason. > It does slow down the display of messages a bit, but not so much that it > bothers me. It does me, although I'm not sure the time difference has compensated for finding and installing stripmime yet. Anyway stripmime is so simple that I can quickly read the source and be sure what it's doing. > > And then if the message had a good reason to use HTML, I'd have to dig up > > how to *not* auto_view it, in order to send it to a real browser. That's > > why I stopped using auto_view for html in the good old days before > > Microsoft bought hotmail. > > That's what mutt's attachment menu is for. Just type 'v' from the index > or pager and select the part of the message you want to view with a > browser. My mailcap actually has these lines: > > #text/html; mutt_netscape %s; test=RunningX > text/html; w3m %s; nametemplate=%s.html > text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput Thanks. What is mutt_netscape? > I still prefer w3m as the browser because it is so much faster than > netscape, so I have the netscape line commented-out for now. By "good reason to use HTML" I meant either forms (w3mable) or essential inlined images (not w3mable). I'm almost always running X, so I just send it to galeon. As far as speed, this isn't from my mailcap, but I'm sure you'll get the gist: netscape "${}" & else netscape -remote "openURL(${})" If something takes a long time to start, you probably only need to start it once, i.e. emacs/emacsclient. Netscape's successor galeon does even better: just "galeon URL" does the right thing. Unfortunately I haven't found a way to do the same with Konqueror. -- We have to pursue this subject of fun very seriously if we want to stay competitive in the 21st century. - George Yeo, Singapore's Minister of State for Finance. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/pgp.html
Re: Replacing a message with its filtered output
At 6:10 AM EST on March 22 Nicolas Rachinsky sent off: > * Rob Reid <[EMAIL PROTECTED]> [2002-03-21 19:10:40 -0500]: > > macro index "H" "|/home/reid/bin/stripmime.pl >> /var/spool/mail/reid" > > What happens if some mail is delivered to your inbox while you are > executing this macro? I think your mailbox will get corrupt. I'm not completely sure what happens, but my mail comes in through sendmail which passes it to procmail. My reading of the procmail man page indicates that it locks the inbox when delivering to it. And the purpose of lockfiles is to force other processes to wait before writing, right? Even if no queue is formed and stripmime's output gets trashed, I can just redo it. Not that I cared when I wrote the macro. I was pretty ticked at the time. More explicit (and therefore more trustworthy) solutions would be to use procmail with a lock like someone suggested in this thread (but then all HTML mail gets the treatment) or macro index "H" "|stripmime.pl >> dehtmled" Thanks for the warning. -- All men are mortal. Socrates was mortal. Therefore, all men are Socrates. - Woody Allen Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
VVV-NNTP patch send-hook
What's the equivalent of send-hook when using the NNTP patch? Is there a followup-hook? I'd like to add a header for only news postings. -- Drew
Re: VVV-NNTP patch send-hook
Drew -- ...and then Drew Raines said... % % What's the equivalent of send-hook when using the NNTP patch? Is there a % followup-hook? I don't think that there is any such beast. % % I'd like to add a header for only news postings. This came up just recently. I think Sven Guckes, at least, was in the discussion, though I'm not positive. An approach that I recall as successful was to set up a send-hook that only triggered when there is no to: field and set the header in there, turning it off (or changing it) otherwise if to: can match anything. Have a look and see... % % -- % Drew :-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! msg25928/pgp0.pgp Description: PGP signature
Re: VVV-NNTP patch send-hook
+ David T-G <[EMAIL PROTECTED]>: > > An approach that I recall as successful was to set up a send-hook that > only triggered when there is no to: field and set the header in there, > turning it off (or changing it) otherwise if to: can match anything. I believe the suggestion was something to the effect of send-hook ! . 'my_hdr Blah: foo' with the assumption that a news post would match because it contains nothing in its To: and Cc: fields. Unfortunately, this doesn't actually match any posts. send-hooks do apparenly affect [P]ost's because the following adds Blah: to news postings: send-hook . 'my_hdr Blah: foo' So I guess it's just a matter of figuring out a correct pattern. -- Drew
Re: Replacing a message with its filtered output
Rob -- ...and then Rob Reid said... % % At 6:10 AM EST on March 22 Nicolas Rachinsky sent off: % > % > What happens if some mail is delivered to your inbox while you are % > executing this macro? I think your mailbox will get corrupt. % % I'm not completely sure what happens, but my mail comes in through sendmail ... % to force other processes to wait before writing, right? Even if no queue is % formed and stripmime's output gets trashed, I can just redo it. It's not stripmime that will be the problem; it's the rest of your mailbox. The shell doesn't care about lockfiles (or other locking methods), so procmail could lock it all day long and you would still trash it with this method. Yes, you want to let procmail or mutt or some lock-aware app handle putting the output back onto your mailbox for you. % ... % Thanks for the warning. 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! msg25930/pgp0.pgp Description: PGP signature
Re: VVV-NNTP patch send-hook
Drew -- ...and then Drew Raines said... % % + David T-G <[EMAIL PROTECTED]>: % > % > An approach that I recall as successful was to set up a send-hook that % > only triggered when there is no to: field and set the header in there, % > turning it off (or changing it) otherwise if to: can match anything. % % I believe the suggestion was something to the effect of % %send-hook ! . 'my_hdr Blah: foo' Something like that, but perhaps with more or different quoting. % % with the assumption that a news post would match because it contains % nothing in its To: and Cc: fields. Unfortunately, this doesn't actually % match any posts. It could be that the suggestion didn't pan out, but my recollection is that the requestor went away happy. % % send-hooks do apparenly affect [P]ost's because the following adds Blah: % to news postings: % %send-hook . 'my_hdr Blah: foo' Oh, send-hooks will certainly work; I don't there's any question of that. % % So I guess it's just a matter of figuring out a correct pattern. Exactly. % % -- % Drew 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! msg25931/pgp0.pgp Description: PGP signature
Re: Replacing a message with its filtered output
On Fri, Mar 22, 2002 at 12:40:40PM -0500, Rob Reid wrote: > At 8:42 PM EST on March 21 Gary Johnson sent off: > > > And then if the message had a good reason to use HTML, I'd have to dig up > > > how to *not* auto_view it, in order to send it to a real browser. That's > > > why I stopped using auto_view for html in the good old days before > > > Microsoft bought hotmail. > > > > That's what mutt's attachment menu is for. Just type 'v' from the index > > or pager and select the part of the message you want to view with a > > browser. My mailcap actually has these lines: > > > > #text/html; mutt_netscape %s; test=RunningX > > text/html; w3m %s; nametemplate=%s.html > > text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput > > Thanks. What is mutt_netscape? Sorry about that. mutt_netscape is a script I wrote to make a copy of mutt's temporary file, then launch netscape on that file and return immediately to mutt. If you want to look at it, it's at http://www.spocom.com/users/gjohnson/mutt/mutt_netscape It also does what you describe later, i.e., it first tries to connect to an existing netscape instance and if that fails, it starts a new netscape instance. > > I still prefer w3m as the browser because it is so much faster than > > netscape, so I have the netscape line commented-out for now. > As far as speed, this isn't from my mailcap, but I'm sure you'll get the gist: > > netscape "${}" & else netscape -remote "openURL(${})" > > If something takes a long time to start, you probably only need to start it > once, i.e. emacs/emacsclient. Netscape's successor galeon does even better: > just "galeon URL" does the right thing. Unfortunately I haven't found a way to > do the same with Konqueror. The speed issue I was referring to was not the time to start, but the time to render a page. When a page contains tables, and graphic embellishments, and those d***ed banner ads, it can take netscape an annoyingly long time to render it. W3m is much faster--the page just appears. I use w3m as much as I can, especially for reading articles and for browsing familiar sites where I know I won't be missing anything by not seeing the graphics. Otherwise I use netscape. I'd use one of the newer graphical browsers instead, but building one on HP-UX doesn't sound like fun. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: defining a command -> internal langauge
At 16:00 + 22 Mar 2002, Dave Pearson <[EMAIL PROTECTED]> wrote: > I've got a pretty clear memory of someone producing and maintain a patch > which enabled slang as a scripting language for mutt. I know it was > mentioned a good few times, either here or on the developers' mailing list. > > Am I really miss-remembering that? No, you're remembering correctly. The Richard Roth is the person who did this. The patches are still available from: http://www.katn.com/opensw/ But, the latest version for which a patch is provided is mutt 0.95. -- Aaron Schrab [EMAIL PROTECTED] http://www.schrab.com/aaron/ Vir: Ahh, he has become one with his inner self. Garibaldi: He's passed out. Vir: That too.
Re: editor startup "ridiculously long"
* Steve Talley <[EMAIL PROTECTED]> [2002-03-21 18:45]: > Suppose my default $editor is something ridiculously long, like: > vi -o2 -e -b '+/^subject' '+s/^subject/SuBJeCt/i' '+/^$/' then you certainly have a problem with your editor's setup. ;-) you can put all these commands into a file and use this instead: vim -u file -s file and then there are autocommands which you can trigger via the "mail" filetype... Sven
Re: different hooks for Email/Usenet - nntp patch vs BCC?
* Andre Berger <[EMAIL PROTECTED]> [2002-03-18 15:51]: > > Can't you BCC all messages to one address, and filter with procmail? > that's what I'm doing :) The problem is, when I > post news (nntp-patch), I don't want a Bcc header. well, does this BCC header get posted, too? if not then I don't a problem.. *shrug* Sven