Re: Help on save-hook please
On Fri, Jun 30, 2000 at 03:36:56PM +0300 or thereabouts, Mikko Hänninen wrote: Richard Curnow [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Is mbox-hook what you're after? Yes, that's what I meant. I thought I *knew* there was a way to do it, just forgot what it was. Then got confused by the $mbox explanation which doesn't talk about mbox-hook at all.. Oops again? :-) Okay if you read my reply to your first reply I've already discovered, and using, the mbox-hook to save read messages. Thought I'd let you know.
Re: Help on save-hook please
Rino Mardo [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Hmm, that could be the reason why I'm getting a repetition operand invalid. Yes. :-) * means "any number (0 or more) of the character just before", so using * alone doesn't make sense, as there is no character just before it. * works as a wildcard for "anything" in some cases in the Mutt parser, but those cases have been special-cased and they aren't usually regexps actually. But if you want automatic saving of read messages, what you're looking for is in fact: folder-hook . set record='+read.mutt' But this is assuming I am only subscribed mutt-users right? So all mails go to "read.mutt" because of that "." in folder-hook. Oops, what I meant is probably something like this: folder-hook . set record='+read' folder-hook =mutt set record='+read.mutt' Although the folder hook(s) would depend on what folder names you have. The idea is that the default stored folder is +read, and for the =mutt folder it's +read.mutt... Hope this example illustrates to you how to set it up, and it's what you'd like. The example I gave before was a bit wrong, as you indeed wouldn't want $record pointing to +read.mutt for *every* folder. :-) Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / An unbreakable toy is good for breaking other toys.
Re: Help on save-hook please
Mikko Hänninen [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Oops, what I meant is probably something like this: folder-hook . set record='+read' Another oops. I wonder how come nobody else caught this yet and corrected me? :-) Anyway, I shouldn't be talking about $record, I mean $mbox of course. eg. folder-hook . set mbox='+read' $record is your default saved outgoing messages (Fcc) folder, $mbox is the folder where read messages go. I never change $record and I don't use $mbox myself, that's my excuse for confusing the two. :-) Reading the documentation on $move and $mbox, it turns out that this feature is only enabled for the spool mailbox, so apparently you can't use it to auto-save read messages for other incoming mail folders??? Although I'm not sure what would be the result if you changed $spoolfile in each folder-hook... It's easy enough to test whether the documentation is right, I haven't got the time *right now* though. Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / "Caffeine is an important part of a balanced food diet."
Re: Help on save-hook please
On Fri, Jun 30, 2000 at 02:05:40PM +0300, [EMAIL PROTECTED] wrote: Mikko Hänninen [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Reading the documentation on $move and $mbox, it turns out that this feature is only enabled for the spool mailbox, so apparently you can't use it to auto-save read messages for other incoming mail folders??? Although I'm not sure what would be the result if you changed $spoolfile in each folder-hook... It's easy enough to test whether the documentation is right, I haven't got the time *right now* though. Is mbox-hook what you're after? -- By day : Richard Curnow---SuperH Core Architecture at STMicroelectronics [EMAIL PROTECTED]http://www.superh.com/-http://www.st.com/ and by night . author and maintainer of open-source stuff .. [EMAIL PROTECTED]http://go.to/chrony/---http://www.rrbcurnow.freeuk.com/
Re: Help on save-hook please
Richard Curnow [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Is mbox-hook what you're after? Yes, that's what I meant. I thought I *knew* there was a way to do it, just forgot what it was. Then got confused by the $mbox explanation which doesn't talk about mbox-hook at all.. Maybe I should just shut up, rather than talking about things where I'm not sure how to do them. :-) Thanks. Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Note: Signature quote supply exhausted, please refill.
Help on save-hook please
Hi. I've been running mutt for several days now and also managed to setup my own procmail recipes. My problem is with the the save-hook as I want to be able to save read messages to, let's say, a "Mail\read.mutt" file. This is my present ~/.muttrc contents for the save-hook: folder-hook . set sort=threads folder-hook /var/mail/rino set sort=date-received folder-hook =sent set sort=date-sent folder-hook . save-hook * =received folder-hook IN.misc save-hook * =obsd folder-hook IN.ipfilter save-hook * =ipf folder-hook IN.mutt-users save-hook * =mutters I have "~/Mail/IN.misc", "~/Mail/IN.ipfilter", "~/Mail/IN.mutt-users" for my other mailboxes which I can read using "mutt -f". I have gone and checked the FAQs, Nancy's, and the mini-FAQ (bronto-FAQ now) and couldn't find a clue why read messages still reside in my ~/Mail/IN.mutt file or any other mailboxes. For normal mail that arrives in /var/mail/rino they get saved in "~/Mail/received" without problems but not any other messages from my other mailboxes.
Re: Help on save-hook please
Rino Mardo [EMAIL PROTECTED] wrote on Wed, 28 Jun 2000: My problem is with the the save-hook as I want to be able to save read messages to, let's say, a "Mail\read.mutt" file. Do you want to save read messages automatically when you exit a folder, or do you want to specify the default folder you're given in the prompt when you choose to save a message? The first is done by setting $record appropriately (and $move should be something else than "no", of course). The second is done with save-hooks (or fcc-save-hooks, but you seem to want just save-hooks). save-hooks are checked when you do save-message which is bound to "s" by default, they are not checked on folder exit. folder-hook . save-hook * =received The * should be a . instead, like this: folder-hook . save-hook . =received But if you want automatic saving of read messages, what you're looking for is in fact: folder-hook . set record='+read.mutt' The + character is a shortcut to your $folder dir, which by default is ~/Mail. Alternatively you could also use = instead of +, but in the above it would be confusing. :-) Hope this helps, Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Funny off-topic messages are always on-topic.
Re: Help on save-hook please
On Thu, Jun 29, 2000 at 11:33:33PM +0300 or thereabouts, Mikko Hänninen wrote: snipped... folder-hook . save-hook * =received The * should be a . instead, like this: folder-hook . save-hook . =received Hmm, that could be the reason why I'm getting a repetition operand invalid. But if you want automatic saving of read messages, what you're looking for is in fact: folder-hook . set record='+read.mutt' But this is assuming I am only subscribed mutt-users right? So all mails go to "read.mutt" because of that "." in folder-hook. The + character is a shortcut to your $folder dir, which by default is ~/Mail. Alternatively you could also use = instead of +, but in the above it would be confusing. :-) Hope this helps, Mikko Yes the "+" part as I've already fixed my problem using mbox-hook for each of my mailing lists. Either I need new reading glasses or more sleep as I wasn't able to find what that "+" means up to now. Thank you for responding.