Re: Quotes [Was: saving messages to files/permissions?]
On Thu, Jun 18, 2015 at 12:20:51PM -0500, Derek Martin wrote: > On Thu, Jun 18, 2015 at 08:59:53AM -0700, Ian Zimmerman wrote: > > Which RFC specifies the multi-> quoting, anyway? > > IIRC, it's in no RFC--it's a DEFACTO standard from almost 50 years of > convention. Though the RFCs for flowed text (2646, 3676, section 4.5) do specify ">" as the canonical quote marker for format=flowed. https://en.wikipedia.org/wiki/Posting_style mentions: There is no standard declaring one quote-prefix to be "right" and others to be "wrong", but some standards depend on conventional quoting. The (unpublished) "son-of-1036" draft recommends ">" as the quote-prefix; the son-of-1036 draft is in rfc1849. https://tools.ietf.org/html/rfc1849 w
Re: How to ask mutt to not check for new mail
On 2015-06-18 18:51 -0400, Patrick Shanahan wrote: > And my mail check is set to: > set timeout=60 > set mail_check=15 # how often to poll for new mail What I don't understand is why these 2 values need ever to be different. You only get notified every 60 seconds max anyway, right? At least that's how I read the documentation. I think my problem about which I complain in the other thread, about not getting notified in the browser, may well be caused by the long (600) default value of timeout. -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 06:28:34PM -0500, Derek Martin wrote: > On Thu, Jun 18, 2015 at 09:34:13PM +0200, Suvayu Ali wrote: > > On Thu, Jun 18, 2015 at 02:49:35PM -0400, Xu Wang wrote: > > This variable configures how often (in seconds) mutt should look for new > > mail. > > Also see the $timeout variable. > > > > So I don't think 0 makes sense here. > > The code (in buffy.c) is: > > ... > t = time (NULL); > if (!force && (t - BuffyTime < BuffyTimeout)) > return BuffyCount; > > BuffyTime = t; > BuffyCount = 0; > BuffyNotify = 0; > ... > > So, it appears that if mail_check is 0, mutt will simply do the mail > check every time it can (every time mutt_buffy_check() is called). > If it's not clear, BuffyTimeout gets initialized from the value of > mail_check. This code also shows that there are times when mutt will > check for mail regardless of how mail_check is set--whenever the > function is called with the force parameter != 0. That happens in 3 > places in the code. > > So, no, there's no way to prevent mutt from checking for new mail. > Having answered the question, I am pretty curious: Why on earth would > you want to do that?! "Continuous" checking of mail is unreasonable but seems to be what mail_check == 0 appears to do. Perhaps a mutt enhancement would be to let a zero value mean do not check for new mail based on a time interval. Such a change would have no effect on current settings of > 0, likely 99.99+ percent of mutt installations. And for those few who do use mail_check == 0, a change to "1" would be little affected as far as I can see. Jon -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: How to ask mutt to not check for new mail
* Xu Wang [06-18-15 20:06]: > On Thu, Jun 18, 2015 at 7:28 PM, Derek Martin wrote: [...] > > Having answered the question, I am pretty curious: Why on earth would > > you want to do that?! > > The reason is that I have focus problems (attention deficit disorder I > believe is the English term). I would like to start Mutt and have Mutt > check for new mail *at the initial starting* and then address all of > the mail there, and only after that check if there is new mail. If I > am working on my inbox and all of a sudden a new email arrives, it > completely throws me out of focus. I imagine this must be difficult > for many to understand but that is how I am. I understand the need for "no distraction" but cannot understand what checking mail has to do with that unless you have some buffy pgm advising new mail. My setup only advises where new mail is when I change files (mbox) and the request to change files provides the next file which has "new mail". Ie: I do not disable checking mail but do not get a visible or interruptive announcement of new mail. But my vision my be limited as I *only* employe mbox and read remotely via ssh into my server box. gud luk, -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 7:28 PM, Derek Martin wrote: > On Thu, Jun 18, 2015 at 09:34:13PM +0200, Suvayu Ali wrote: >> On Thu, Jun 18, 2015 at 02:49:35PM -0400, Xu Wang wrote: >> This variable configures how often (in seconds) mutt should look for new >> mail. >> Also see the $timeout variable. >> >> So I don't think 0 makes sense here. > > The code (in buffy.c) is: > > ... > t = time (NULL); > if (!force && (t - BuffyTime < BuffyTimeout)) > return BuffyCount; > > BuffyTime = t; > BuffyCount = 0; > BuffyNotify = 0; > ... > > So, it appears that if mail_check is 0, mutt will simply do the mail > check every time it can (every time mutt_buffy_check() is called). > If it's not clear, BuffyTimeout gets initialized from the value of > mail_check. This code also shows that there are times when mutt will > check for mail regardless of how mail_check is set--whenever the > function is called with the force parameter != 0. That happens in 3 > places in the code. > > So, no, there's no way to prevent mutt from checking for new mail. Thank you for finding this answer Derek! Someday I hope to have the knowledge of C to dig into source code as you have done for me. > Having answered the question, I am pretty curious: Why on earth would > you want to do that?! The reason is that I have focus problems (attention deficit disorder I believe is the English term). I would like to start Mutt and have Mutt check for new mail *at the initial starting* and then address all of the mail there, and only after that check if there is new mail. If I am working on my inbox and all of a sudden a new email arrives, it completely throws me out of focus. I imagine this must be difficult for many to understand but that is how I am. Kind regards, Xu
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 06:28:34PM -0500, Derek Martin wrote: > > So, no, there's no way to prevent mutt from checking for new mail. I guess there is another way to go about this. The OP can set it to a large number of seconds, maybe something like 86400 (that's a day). That should effectively do what the OP wants. > Having answered the question, I am pretty curious: Why on earth would > you want to do that?! I'm curious too! -- Suvayu Open source is the future. It sets us free.
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 6:45 PM, Patrick Shanahan wrote: > * Xu Wang [06-18-15 18:33]: > [...] >> Suvayu, I saw the same description (with 'man muttrc'). I suppose you >> are right that if 0 is not mentioned then it is not defined what it >> does. >> >> So in that case, there is no way to disable checking for new mail? > Dear Patrick, Thank you for your response. > So, you didn't try it? I did try it, as I mentioned in my first email. But I cannot be sure that it worked or didn't work because I don't know if other muttrc variables affect the behavior I am describing. > no one as actually told you that it would not work English is not my first language, but Suvayu said "I don't think 0 makes sense here." which I interpret to contradict your claim. > only that the docs do not mention it. > Try it, cannot hurt and simple to revert. As mentioned in this email above, I did try it (see there for explanation). Kind regards, Xu
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 09:34:13PM +0200, Suvayu Ali wrote: > On Thu, Jun 18, 2015 at 02:49:35PM -0400, Xu Wang wrote: > This variable configures how often (in seconds) mutt should look for new > mail. > Also see the $timeout variable. > > So I don't think 0 makes sense here. The code (in buffy.c) is: ... t = time (NULL); if (!force && (t - BuffyTime < BuffyTimeout)) return BuffyCount; BuffyTime = t; BuffyCount = 0; BuffyNotify = 0; ... So, it appears that if mail_check is 0, mutt will simply do the mail check every time it can (every time mutt_buffy_check() is called). If it's not clear, BuffyTimeout gets initialized from the value of mail_check. This code also shows that there are times when mutt will check for mail regardless of how mail_check is set--whenever the function is called with the force parameter != 0. That happens in 3 places in the code. So, no, there's no way to prevent mutt from checking for new mail. Having answered the question, I am pretty curious: Why on earth would you want to do that?! -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpzUsItHx6ul.pgp Description: PGP signature
Re: How to ask mutt to not check for new mail
* Patrick Shanahan [06-18-15 18:45]: > * Xu Wang [06-18-15 18:33]: > [...] > > Suvayu, I saw the same description (with 'man muttrc'). I suppose you > > are right that if 0 is not mentioned then it is not defined what it > > does. > > > > So in that case, there is no way to disable checking for new mail? > > So, you didn't try it? Thus you *really* do not know as no one as > actually told you that it would not work, only that the docs do not > mention it. Try it, cannot hurt and simple to revert. > > Often: The proof is in the pudding. Brings a question, why do you not want to know there is new mail. My mutt does not announce new mail but does indicate which files contain new mail, mbox. And my mail check is set to: set timeout=60 set mail_check=15 # how often to poll for new mail set mail_check_recent -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net
Re: How to ask mutt to not check for new mail
* Xu Wang [06-18-15 18:33]: [...] > Suvayu, I saw the same description (with 'man muttrc'). I suppose you > are right that if 0 is not mentioned then it is not defined what it > does. > > So in that case, there is no way to disable checking for new mail? So, you didn't try it? Thus you *really* do not know as no one as actually told you that it would not work, only that the docs do not mention it. Try it, cannot hurt and simple to revert. Often: The proof is in the pudding. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 4:16 PM, Gary Johnson wrote: > On 2015-06-18, Xu Wang wrote: >> On Thu, Jun 18, 2015 at 5:48 AM, Suvayu Ali wrote: >> > On Thu, Jun 18, 2015 at 04:46:02AM -0400, Xu Wang wrote: >> >> >> >> It is actually not documented (in 'man muttrc') what happens if >> >> mail_check is set to 0. Does this mean it never checks or that it >> >> checks as often as possible? >> > >> > Look at the main manual (usually available from Mutt with F1). On my >> > system it resides in: >> > >> > /usr/share/doc/mutt-kz/manual.html >> > /usr/share/doc/mutt-kz/manual.txt >> > >> > Hope this helps, >> >> Ah interesting. I did not realize about this. I will read it. >> >> However, searching for "mail_check" gives me: >> No matching help pages found in “Terminal”. >> >> I'm not sure if there is such a way to search outside of restricted >> scope "Terminal". > > Mutt and Terminal both use F1 for help. Terminal sees the key > first, so it "wins". > > You can get around that by disabling F1 in Terminal, binding a > different key to help in mutt, or by accessing mutt's help from the > mutt command line with: > > :push > Thank you to you both! I feel quite silly now (although I do these things often). Suvayu, I saw the same description (with 'man muttrc'). I suppose you are right that if 0 is not mentioned then it is not defined what it does. So in that case, there is no way to disable checking for new mail? Kind regards, Xu
Re: How to ask mutt to not check for new mail
On 2015-06-18, Xu Wang wrote: > On Thu, Jun 18, 2015 at 5:48 AM, Suvayu Ali wrote: > > On Thu, Jun 18, 2015 at 04:46:02AM -0400, Xu Wang wrote: > >> > >> It is actually not documented (in 'man muttrc') what happens if > >> mail_check is set to 0. Does this mean it never checks or that it > >> checks as often as possible? > > > > Look at the main manual (usually available from Mutt with F1). On my > > system it resides in: > > > > /usr/share/doc/mutt-kz/manual.html > > /usr/share/doc/mutt-kz/manual.txt > > > > Hope this helps, > > Ah interesting. I did not realize about this. I will read it. > > However, searching for "mail_check" gives me: > No matching help pages found in “Terminal”. > > I'm not sure if there is such a way to search outside of restricted > scope "Terminal". Mutt and Terminal both use F1 for help. Terminal sees the key first, so it "wins". You can get around that by disabling F1 in Terminal, binding a different key to help in mutt, or by accessing mutt's help from the mutt command line with: :push Regards, Gary
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 02:49:35PM -0400, Xu Wang wrote: > On Thu, Jun 18, 2015 at 5:48 AM, Suvayu Ali > wrote: > > On Thu, Jun 18, 2015 at 04:46:02AM -0400, Xu Wang wrote: > >> > >> It is actually not documented (in 'man muttrc') what happens if > >> mail_check is set to 0. Does this mean it never checks or that it > >> checks as often as possible? > > > > Look at the main manual (usually available from Mutt with F1). On my > > system it resides in: > > > > /usr/share/doc/mutt-kz/manual.html > > /usr/share/doc/mutt-kz/manual.txt > > > > Hope this helps, > > Ah interesting. I did not realize about this. I will read it. > > However, searching for "mail_check" gives me: > No matching help pages found in “Terminal”. > > I'm not sure if there is such a way to search outside of restricted > scope "Terminal". Are you by any chance confusing the Help for your terminal emulator with the help for mutt? Your terminal emulator probably has an F1 shortcut that captures the keystroke before it reaches mutt. Anyway, this is what the manual says: 3.119. mail_check Type: number Default: 5 This variable configures how often (in seconds) mutt should look for new mail. Also see the $timeout variable. So I don't think 0 makes sense here. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 5:48 AM, Suvayu Ali wrote: > On Thu, Jun 18, 2015 at 04:46:02AM -0400, Xu Wang wrote: >> >> It is actually not documented (in 'man muttrc') what happens if >> mail_check is set to 0. Does this mean it never checks or that it >> checks as often as possible? > > Look at the main manual (usually available from Mutt with F1). On my > system it resides in: > > /usr/share/doc/mutt-kz/manual.html > /usr/share/doc/mutt-kz/manual.txt > > Hope this helps, Ah interesting. I did not realize about this. I will read it. However, searching for "mail_check" gives me: No matching help pages found in “Terminal”. I'm not sure if there is such a way to search outside of restricted scope "Terminal". Xu
"reply to list" from compose menu?
Dear all, Often I make the mistake of pressing "r" to reply to the list when indeed I would like to press "L". I realize this mistake at the compose menu. I can of course edit the "to" but I would like to just be able to press "L" (if I understand correctly, this might also correctly set some headers). Is there anyway to implement such a bind? Or is there intuition which is escaping me for why that is not possible at the compose menu? Kind regards, Xu
Re: Quotes [Was: saving messages to files/permissions?]
On Thu, Jun 18, 2015 at 08:59:53AM -0700, Ian Zimmerman wrote: > On 2015-06-18 21:06 +1000, Erik Christiansen wrote: > Chris> I never wrote any of the above! > > Now compare this correct, but horribly complex analysis (can a human > really do that habitually?) Yes, absolutely, if the quoting and attribution have been done properly. Sadly some (blessedly) few just can't be bothered, though most do get it right. I've been reading e-mail quoted this way for nearly 30 years, and the number of times I've had a problem attributing a quote could, I would estimate, be counted on my fingers. Your non-standard way "works" but it is indeed nonstandard and as such many mailers choke on it. Mutt is thankfully not one of those. But even still, when there's a lot of this (which is exceedingly rare) it can still get to be a problem, mostly because other people mishandle it (or more accurately, simply DO NOT handle it). > Which RFC specifies the multi-> quoting, anyway? IIRC, it's in no RFC--it's a DEFACTO standard from almost 50 years of convention. -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgp7AuNS6MqhH.pgp Description: PGP signature
Re: In index_format, what does %? mean?
Hello, Erik. On Fri, Jun 19, 2015 at 01:35:57AM +1000, Erik Christiansen wrote: > The manual I use; just hit in mutt, does (AIUI) a > zcat /usr/share/doc/mutt/manual.txt.gz > but a search found no \$\? there. (So circumstances have conspired to > confuse.) Just as a matter of interest, when I hit in mutt, I get the error message: sh: sensible-pager: command not found gzip: /usr/share/doc/mutt/manual.txt.gz: No such file or directory Press any key to continue... The manual is actually at /usr/share/doc/mutt-1.5.23-r5/manual.txt.bz2. This is on Gentoo GNU/Linux. Is there anything I can configure to tell it that? If not, it would be nice if there were (if it's not too tricky to implement, which it probably would be). > Erik -- Alan Mackenzie (Nuremberg, Germany).
Quotes [Was: saving messages to files/permissions?]
On 2015-06-18 21:06 +1000, Erik Christiansen wrote: Chris> I never wrote any of the above! Erik> And the quoting does show that. Compare the inner "Chris Erik> Bannister" quote with the outer: In the outer, the leftmost '>' Erik> ladder links your name with the last quoted sentence. In your Erik> inner, the third '>' ladder links your name with nothing at all, Erik> i.e. no attribution to you. The whole of the central block of Erik> quoted text is solidly attributed to Tom Fowle by an unbroken Erik> fourth '>' ladder, is it not? Now compare this correct, but horribly complex analysis (can a human really do that habitually?) with the SuperCite "nonstandard" [1] quoting I use. Which is easier to read, honestly? If it is a matter of colorizing in the mutt pager, a simple setting of quote_regexp in .muttrc fixes that. (This should count as ob-mutt content.) [1] Which RFC specifies the multi-> quoting, anyway? -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.
Re: In index_format, what does %? mean?
On 18.06.15 09:47, Jon LaBadie wrote: > I was certain you meant "%?". But to be certain I looked at my > "manual.txt" and searched for '$?'. There were tons of them. > Yet there were zero '$?' in my "manual.html". Jon, you're spot on. Sorry for the typo. (Late in the day, when there's too little caffeine in the blood, those cartoon swearword characters on the top keyboard row are harder to catch than the rest.) > Turns out the original was written with distinctive opening and > closing double quotes. When it was converted to the simpler ".txt" > version there were no equivalent characters and they both became > question marks "?". So everywhere there was > $ > it became > ?$? That's curious. The manual I use; just hit in mutt, does (AIUI) a zcat /usr/share/doc/mutt/manual.txt.gz but a search found no \$\? there. (So circumstances have conspired to confuse.) Erik
Re: saving messages to files/permissions?
On Thu, Jun 18, 2015 at 12:25:51PM +0200, Matthias Apitz wrote: > El día Thursday, June 18, 2015 a las 10:14:54PM +1200, Chris Bannister > escribió: > > > On Mon, Jun 15, 2015 at 11:31:01AM +0200, Matthias Apitz wrote: > > > El día Monday, June 15, 2015 a las 07:43:18AM +1200, Chris Bannister > > > escribió: > > > > Huh? > > > > > > On Sat, Jun 13, 2015 at 09:59:40PM -0700, Tom Fowle wrote: > > > > > Greetings all, > > > > > Not sure if this may be a debian problem but > > > > > > > > > > I often save individual incomming emails in seperate files in my home > > > > > directory with the mutt "s" command. > > > > > > > > > > In any session, the first time I save to a particular file it goes > > > > > fine. > > > > > > > > > > However if I try to save another message to the same file, I get > > > > > "Permission denied." > > > > I never wrote any of the above! Please be careful with your > > atrributions/snipping. > > > > > To the OP: Can you please post here: > > > > > > $ ls -ld . > > > $ ls -l file-to-save-in > > > $ id > > I do not understand, what you mean. I just use one of the mails from the > list and wrote below(!) the text starting with "To the OP..." Ahh, OK. in that case, sorry about that, but seeing my name at the top of the attributions and not seeing any of the text I remember writing in the email prompted my reaction, and is also why I added the 'snipping' proviso. -- "If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing." --- Malcolm X
Re: In index_format, what does %? mean?
On Thu, Jun 18, 2015 at 08:45:14PM +1000, Erik Christiansen wrote: > On 18.06.15 10:23, Alan Mackenzie wrote: > > The parentheses are literal characters, but what do all the ?s > > mean? > > In the manual, section: "30.2. Conditionals" > > Just searching the manual for "$?" gets there quite quickly, without any > knowledge of its existence. > > Erik > I was certain you meant "%?". But to be certain I looked at my "manual.txt" and searched for '$?'. There were tons of them. Yet there were zero '$?' in my "manual.html". Turns out the original was written with distinctive opening and closing double quotes. When it was converted to the simpler ".txt" version there were no equivalent characters and they both became question marks "?". So everywhere there was $ it became ?$? :) Jon -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: In index_format, what does %? mean?
Hello, Michael. On Thu, Jun 18, 2015 at 12:41:22PM +0200, Michael Tatge wrote: > Hi Allen, > * On Thu, Jun 18, 2015 10:23AM + Alan Mackenzie (a...@muc.de) muttered: > > The default value of the configuration variable index_format is > > "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s". > > The construct "(%?l?%4l&%4c?)" puzzles me. The parentheses are > > literal characters, but what do all the ?s mean? > That's a conditional. > %?l?%4l&%4c? > %??&? > "If %l (is nonzero) then print %4l otherwise %4c" > http://www.mutt.org/doc/devel/manual.html#formatstrings-conditionals OK, I've got that now. > So: > %lnumber of lines in the message (does not work with maildir, mh, > %and possibly IMAP folders) > and because of that %c is printed when the line count is not available. > %cnumber of characters (bytes) in the message (vulgo message size) > For instance, I'm using "%?M?#%3M&%4c?" in my $index_format. What it > does is left as an exercise for the reader. :) It tells you how many messages there are in a thread, should that thread be collapsed. Otherwise it's how big the message is. So, I got three straight answers to a straight question, within a few minutes. This is a great group! Thanks. > HTH, > Michael > -- > PGP-Key-ID: EEE7D043 > Jabber: in...@jabber.de -- Alan Mackenzie (Nuremberg, Germany).
Re: saving messages to files/permissions?
On 18.06.15 22:14, Chris Bannister wrote: > On Mon, Jun 15, 2015 at 11:31:01AM +0200, Matthias Apitz wrote: > > El día Monday, June 15, 2015 a las 07:43:18AM +1200, Chris Bannister > > escribió: > > Huh? > > > > On Sat, Jun 13, 2015 at 09:59:40PM -0700, Tom Fowle wrote: > > > > Greetings all, > > > > Not sure if this may be a debian problem but > > > > > > > > I often save individual incomming emails in seperate files in my home > > > > directory with the mutt "s" command. > > > > > > > > In any session, the first time I save to a particular file it goes fine. > > > > > > > > However if I try to save another message to the same file, I get > > > > "Permission denied." > > I never wrote any of the above! And the quoting does show that. Compare the inner "Chris Bannister" quote with the outer: In the outer, the leftmost '>' ladder links your name with the last quoted sentence. In your inner, the third '>' ladder links your name with nothing at all, i.e. no attribution to you. The whole of the central block of quoted text is solidly attributed to Tom Fowle by an unbroken fourth '>' ladder, is it not? If there's a problem there, then it eludes me. Erik -- ARTHUR: But if he was dying, he wouldn't bother to carve "Arrggghhh". He'd just say it. BROTHER MAYNARD: It's down there carved in stone. GALAHAD: Perhaps he was dictating. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Re: In index_format, what does %? mean?
On 18.06.15 10:23, Alan Mackenzie wrote: > The parentheses are literal characters, but what do all the ?s > mean? In the manual, section: "30.2. Conditionals" Just searching the manual for "$?" gets there quite quickly, without any knowledge of its existence. Erik -- Looking into the UN's crystal ball predicts that population will continue to grow and then plateau around 10 billion by 2100. This is the middle estimate. The lower estimate suggests a peak of about 8 billion around 2050. The high estimate is for a staggering 16 billion by 2100 and still climbing! - http://www.abc.net.au/radionational/programs/ockhamsrazor/preparing-for-population-growth/4980342#transcript
Re: In index_format, what does %? mean?
Hi Allen, * On Thu, Jun 18, 2015 10:23AM + Alan Mackenzie (a...@muc.de) muttered: > The default value of the configuration variable index_format is > > "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s". > > The construct "(%?l?%4l&%4c?)" puzzles me. The parentheses are > literal characters, but what do all the ?s mean? That's a conditional. %?l?%4l&%4c? %??&? "If %l (is nonzero) then print %4l otherwise %4c" http://www.mutt.org/doc/devel/manual.html#formatstrings-conditionals So: %l number of lines in the message (does not work with maildir, mh, %and possibly IMAP folders) and because of that %c is printed when the line count is not available. %c number of characters (bytes) in the message (vulgo message size) For instance, I'm using "%?M?#%3M&%4c?" in my $index_format. What it does is left as an exercise for the reader. :) HTH, Michael -- PGP-Key-ID: EEE7D043 Jabber: in...@jabber.de
Re: In index_format, what does %? mean?
Am 2015-06-18 12:23, schrieb Alan Mackenzie: Hello, mutt. I'm using mutt 1.5.23. The default value of the configuration variable index_format is "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s". My personal value is similar. The construct "(%?l?%4l&%4c?)" puzzles me. The parentheses are literal characters, but what do all the ?s mean? In practice, this displays the number of lines in the email, what one would expect from a simple %l. I also have the feeling that the & is not a literal character either. What does it mean? I've looked in the manual, at the section documenting index_format, but the ?s aren't explained there. I've also checked the printf(3) man page, but there isn't a single ? in it. Elucidation would be much appreciated. Thanks! This is described briefly in the manual below status_format: You can also switch between two strings using the following construct: %??&? If the value of sequence_char is non-zero, if_string will be expanded, otherwise else_string will be expanded. Best, Christian
Re: saving messages to files/permissions?
El día Thursday, June 18, 2015 a las 10:14:54PM +1200, Chris Bannister escribió: > On Mon, Jun 15, 2015 at 11:31:01AM +0200, Matthias Apitz wrote: > > El día Monday, June 15, 2015 a las 07:43:18AM +1200, Chris Bannister > > escribió: > > Huh? > > > > On Sat, Jun 13, 2015 at 09:59:40PM -0700, Tom Fowle wrote: > > > > Greetings all, > > > > Not sure if this may be a debian problem but > > > > > > > > I often save individual incomming emails in seperate files in my home > > > > directory with the mutt "s" command. > > > > > > > > In any session, the first time I save to a particular file it goes fine. > > > > > > > > However if I try to save another message to the same file, I get > > > > "Permission denied." > > I never wrote any of the above! Please be careful with your > atrributions/snipping. > > > To the OP: Can you please post here: > > > > $ ls -ld . > > $ ls -l file-to-save-in > > $ id I do not understand, what you mean. I just use one of the mails from the list and wrote below(!) the text starting with "To the OP..." Please check the archive of the list matthias -- Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ +49-170-4527211 +49-176-38902045 "Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden." "Si el hombre es formado por las circunstancias entonces es necesario formar humanamente las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)
In index_format, what does %? mean?
Hello, mutt. I'm using mutt 1.5.23. The default value of the configuration variable index_format is "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s". My personal value is similar. The construct "(%?l?%4l&%4c?)" puzzles me. The parentheses are literal characters, but what do all the ?s mean? In practice, this displays the number of lines in the email, what one would expect from a simple %l. I also have the feeling that the & is not a literal character either. What does it mean? I've looked in the manual, at the section documenting index_format, but the ?s aren't explained there. I've also checked the printf(3) man page, but there isn't a single ? in it. Elucidation would be much appreciated. Thanks! -- Alan Mackenzie (Nuremberg, Germany).
Re: saving messages to files/permissions?
On Mon, Jun 15, 2015 at 11:31:01AM +0200, Matthias Apitz wrote: > El día Monday, June 15, 2015 a las 07:43:18AM +1200, Chris Bannister escribió: Huh? > > On Sat, Jun 13, 2015 at 09:59:40PM -0700, Tom Fowle wrote: > > > Greetings all, > > > Not sure if this may be a debian problem but > > > > > > I often save individual incomming emails in seperate files in my home > > > directory with the mutt "s" command. > > > > > > In any session, the first time I save to a particular file it goes fine. > > > > > > However if I try to save another message to the same file, I get > > > "Permission denied." I never wrote any of the above! Please be careful with your atrributions/snipping. > To the OP: Can you please post here: > > $ ls -ld . > $ ls -l file-to-save-in > $ id -- "If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing." --- Malcolm X
Re: How to ask mutt to not check for new mail
On Thu, Jun 18, 2015 at 04:46:02AM -0400, Xu Wang wrote: > > It is actually not documented (in 'man muttrc') what happens if > mail_check is set to 0. Does this mean it never checks or that it > checks as often as possible? Look at the main manual (usually available from Mutt with F1). On my system it resides in: /usr/share/doc/mutt-kz/manual.html /usr/share/doc/mutt-kz/manual.txt Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: How to ask mutt to not check for new mail
On Sun, Jun 14, 2015 at 12:57 AM, Xu Wang wrote: > Dear all, > > I would like to disable checking of new mail after mutt starts up. I > have the following set: > > set timeout = 0 > set mail_check = 0 > > but mutt still checks. Which variable am I missing? > > I found references to imap_checkinterval, but it has been removed [1] > http://www.mutt.org/changes.html . > > Note that I am using offlineimap and mutt-kz. > > Kind regards, It is actually not documented (in 'man muttrc') what happens if mail_check is set to 0. Does this mean it never checks or that it checks as often as possible? Kind regards, Xu
Re: What does check-new in browser menu actually do?
At the risk of following up to myself (one foot in internet hell!), having done another little investigation, here's what I found. The code responsible for the check-new command is in browser.c, in functions _mutt_select_file (public) and examine_mailboxes (static). examine_mailboxes ultimately passes the job to mutt_buffy_check, but calls the latter with the force argument set to 0, which means nothing will happen unless the mailbox checking timeout has expired. Since this code executes in response to an explicit user request, this seems strange. What is the reason for not passing force = 1 here? -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.