limiting by number of lines
Hi, all -- With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a message? I have a folder with messages from all over and I can easily limit the display to only a given subject, but the 10-line messages are just acks and so I'd like to also exclude them from the display -- but I don't want to sort by size because I'd like to see them in date order. TIA 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
Re: limiting by number of lines
On Mon, Sep 10, 2001 at 09:38:44AM -0400, David T-G wrote: With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a message? I have a folder with messages from all over and I can easily limit the display to only a given subject, but the 10-line messages are just acks and so I'd like to also exclude them from the display -- but I don't want to sort by size because I'd like to see them in date order. wouldn't this work? ~s subject ~z 1k guessing that a 10 line message will be less than 1k in size...? -- Dan Boger Linux MVP brainbench.com PGP signature
Re: limiting by number of lines
Dan, et al -- ...and then Dan Boger said... % On Mon, Sep 10, 2001 at 09:38:44AM -0400, David T-G wrote: % With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a ... % % wouldn't this work? % % ~s subject ~z 1k Hmmm... I suppose so; I was thinking in terms of lines, as in the index display, but size would work, too. % % guessing that a 10 line message will be less than 1k in size...? It will take some tweaking, since all of the acks are 10 lines long and none of the good messages are less, but some of the good messages are only 13 or 15 lines long (while others are easy at 220 lines)... % % -- % Dan Boger % Linux MVP % brainbench.com % Thanks! :-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
Re: limiting by number of lines
On Mon, Sep 10, 2001 at 10:07:34AM -0400, David T-G wrote: % guessing that a 10 line message will be less than 1k in size...? It will take some tweaking, since all of the acks are 10 lines long and none of the good messages are less, but some of the good messages are only 13 or 15 lines long (while others are easy at 220 lines)... of course, you could always try to hack it... maybe score messages with the output of `wc -l` - assuming you don't use scoring for something else... :) -- Dan Boger Linux MVP brainbench.com PGP signature
Re: limiting by number of lines
Dan -- ...and then Dan Boger said... % % of course, you could always try to hack it... maybe score messages with % the output of `wc -l` - assuming you don't use scoring for something % else... I was thinking of scoring but still thinking of lines; I think that size will do quite nicely. Perhaps if I used scoring I'd have had more ideas. Then, again, I might not have it available for this :-) % % :) % % -- % Dan Boger % Linux MVP % brainbench.com % :-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
Re: limiting by number of lines
David, * David T-G [EMAIL PROTECTED] [09-Mon-01 06:41 -0700]: With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a message? I have a folder with messages from all over and I can easily limit the display to only a given subject, but the 10-line messages are just acks and so I'd like to also exclude them from the display -- but I don't want to sort by size because I'd like to see them in date order. do you have access to procmail? would not this be a job for procmail, or am i misunderstanding? you could simply filter all those messages into separate folder, and then go look at them once in a while to see if something of interest got through. while i dont remember (i am a procmail neophyte for the most part) how to base rules on # of lines, but worst come to worst you could either pipe into 'wc -l', or write a script if you want to skip headers when counting lines (which would perhaps be more reliable) anyway, just an idea denis -- // mailto: Denis Perelyubskiy [EMAIL PROTECTED] // icq : 12359698 // PGP : http://www.cs.ucla.edu/~denisp/files/pgp.asc
Re: limiting by number of lines
Denis -- ...and then Denis Perelyubskiy said... % David, Hello! % % * David T-G [EMAIL PROTECTED] [09-Mon-01 06:41 -0700]: % % With mutt-1.2.5 (or -1.3.22.1), can one limit by the % number of lines in a message? I have a folder with ... % % do you have access to procmail? would not this be a job for I sure do; you should see my directory of include files :-) % procmail, or am i misunderstanding? you could simply filter % all those messages into separate folder, and then go look at % them once in a while to see if something of interest got % through. Well, yeah, but I'm already filtering these and other such messages into a folder, and I want to keep the 10-line messages to note when nothing came (an error). % % while i dont remember (i am a procmail neophyte for the most % part) how to base rules on # of lines, but worst come to worst % you could either pipe into 'wc -l', or write a script if you % want to skip headers when counting lines (which would % perhaps be more reliable) I'm not sure how, either, but I bet that formail will count them and so I could pump them thru formail to create a X-Lines: header (to avoid confusion with any existing Lines: header) for starters. I'll limit on size, though, once I figure out how large the default message is. % % anyway, just an idea Thanks! % % denis % % -- % // mailto: Denis Perelyubskiy [EMAIL PROTECTED] % // icq : 12359698 % // PGP : http://www.cs.ucla.edu/~denisp/files/pgp.asc :-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
Re: limiting by number of lines
* Denis Perelyubskiy ([EMAIL PROTECTED]) [010910 10:32]: while i dont remember (i am a procmail neophyte for the most part) how to base rules on # of lines, but worst come to worst you could either pipe into 'wc -l', or write a script if you want to skip headers when counting lines (which would perhaps be more reliable) Here's a hint, too: a 'b' flag in a procmail recipe means feed just the body into this pipe. See procmailrc(5) for more info. -- Vineet http://www.anti-dmca.org Unauthorized use of this .sig may constitute violation of US law. echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M' PGP signature