Re: add USER mail into mutt mailboxes list
= On [2011-12-15 23:36:59 -0500]: rj Said: On Fri 16 at 09:43 AM +1100, Cameron Simpson c...@zip.com.au wrote: On 15Dec2011 22:00, stardiviner numbch...@gmail.com wrote: | I use mailboxes like this: | | mailboxes =/var/mail/chris | mailboxes =Python | mailboxes =Python/python | mailboxes =Python/comp-lang-py | mailboxes =Python/Django It will be mbox. You need to drop the = from your mailboxes line for the system spool: mailboxes /var/mail/chris This has nothing to do with the mailbox format and everything to do with the fact that = is shorthand for your mail folder directory. Would the following also work, and save space? mailboxes ! =Python =Python/python =Python/comp-lang-py =Python/Django Thanks, ! is good, solved problem. The !, IINM, is shorthand for var/mail/chris. And a + (plus-sign) can also be used in place of the =. I use + but only because I think it looks cooler. -- I am the owner of my shoulders, the tenant of my hips. -- Malcolm de Chazal Sens-Plastique -- stardiviner =GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html signature.asc Description: Digital signature
add USER mail into mutt mailboxes list
I want to add User's mails into mutt mailboxes list. I use maildir for my gmail mails. But I don't know what type of /var/mail/chris use. */var/mail/chris* is just a file. not a directory. I guess this is mbox ... I use mailboxes like this: mailboxes =/var/mail/chris mailboxes =Python mailboxes =Python/python mailboxes =Python/comp-lang-py mailboxes =Python/Django -- stardiviner =GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html signature.asc Description: Digital signature
Re: add USER mail into mutt mailboxes list
On 15Dec2011 22:00, stardiviner numbch...@gmail.com wrote: | I want to add User's mails into mutt mailboxes list. | I use maildir for my gmail mails. But I don't know what type of /var/mail/chris use. | */var/mail/chris* is just a file. not a directory. I guess this is mbox ... | | I use mailboxes like this: | | mailboxes =/var/mail/chris | mailboxes =Python | mailboxes =Python/python | mailboxes =Python/comp-lang-py | mailboxes =Python/Django It will be mbox. You need to drop the = from your mailboxes line for the system spool: mailboxes /var/mail/chris This has nothing to do with the mailbox format and everything to do with the fact that = is shorthand for your mail folder directory. Cheers, -- Cameron Simpson c...@zip.com.au DoD#743 http://www.cskk.ezoshosting.com/cs/ Hag:Two things you must know about the wise woman. First...she is a woman. Second...she is... Edmund Blackadder: Wise? Hag:Oh! You know her then? Edmund Blackadder: No, just a stab in the dark, which is what you'll be getting in a minute if you don't become more helpful. - Edmund Blackadder to Old Hag, Bells, BA2
Re: add USER mail into mutt mailboxes list
On Fri 16 at 09:43 AM +1100, Cameron Simpson c...@zip.com.au wrote: On 15Dec2011 22:00, stardiviner numbch...@gmail.com wrote: | I use mailboxes like this: | | mailboxes =/var/mail/chris | mailboxes =Python | mailboxes =Python/python | mailboxes =Python/comp-lang-py | mailboxes =Python/Django It will be mbox. You need to drop the = from your mailboxes line for the system spool: mailboxes /var/mail/chris This has nothing to do with the mailbox format and everything to do with the fact that = is shorthand for your mail folder directory. Would the following also work, and save space? mailboxes ! =Python =Python/python =Python/comp-lang-py =Python/Django The !, IINM, is shorthand for var/mail/chris. And a + (plus-sign) can also be used in place of the =. I use + but only because I think it looks cooler. -- I am the owner of my shoulders, the tenant of my hips. -- Malcolm de Chazal Sens-Plastique pgp1S9vKiCzjV.pgp Description: PGP signature
Re: mailboxes list
Replying to myself * On Fri, Feb 22, 2002 at 11:24:57AM +0100, * Nicolas Rachinsky [EMAIL PROTECTED] wrote: I just created a patch to address the problem, you may try it, but be warned: it's nearly untested. I attach it, I will run my mutt here with it some time, and if it works well, I will add some documentation and put it on my homepage. If you can try it now, you're welcome. If someone uses it, I would be glad if he/she can send me suggestions for the docupatch. The patch adds a new command unmailboxes. It should behave exactly the same as mailboxes, and just remove the parameters from the mailboxes-list. Parameters not on this list are silently ignored. I completed a new version of my patch, now umaliboxes * does work, and the manual is updated. I want to thank Cedric Duval, he suggested a way to improve the patch. You can find the patch on my homepage (see the header). Nicolas
Re: mailboxes list
Kyle, et al -- ...and then Kyle Rawlins said... % % I want to have two different sets of mailboxes (one for each mailing list) and As we've seen, there's no official way. I am interested in Nicolas's patch, though. Since you've already stated that you consider your mailboxes in two different sets, what about just separating them into two different directories or with two different prefixes? You could then specify an initial pattern and see only the pertinent half. For instance, I (for historical reasons :-) dump all of my incoming mail into =F.* and could simply change some names to =F.music-* and =F.work-* and go from there. Since the folders are all under $HOME/Mail, however, I could also create $HOME/Mail/F.music and $HOME/Mail/F.work and have procmail write to folders in there -- or not even bother to change my filtering config but instead simply cd $HOME/Mail mv F.music1 F.music ln -s F.music/F.music1 and let procmail hit the symlink. [In fact, this is what I have done for some work-related folders that go under =D.work/*, as outlined some time ago on the list, and even for my KotLBJL and other alternate-identity mail. To wit: [zero] [7:05am] ~/Mail ls -lFd F* | grep -- '-.*/' | cut -c47- F.bb - D.work/F.bb F.bulbs - ../Hosting/bulbs.justpickone.org/Mailbox F.mgm - /home/mgm/Hosting/www.milliongunmarch.org/Mailbox There was quite a thread on mail folder organization a while back; that might provide some interesting ideas. 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! msg24746/pgp0.pgp Description: PGP signature
Re: mailboxes list
* On Thu, Feb 21, 2002 at 11:29:17PM -0500, * Kyle Rawlins [EMAIL PROTECTED] wrote: Is there some way to clear the mailbox list? i.e. the list that is added to by the 'mailboxes' command. AFAIK there is no such way. At least in the discussion about this feature some time ago nobody knew such a feature. I want to have two different sets of mailboxes (one for each mailing list) and have a keybinding to cycle through them; i.e. a set of work-related mailboxes and a set of music-related mailboxes. I find that there are times where I want to check the work related stuff and spend too much time skipping over the music mailing lists and getting distracted, and when I'm reading the less serious lists I'm rarely interested in hearing about the work stuff. Similar situation here. I could do this with different sets of configuration files, but it seems like there should be some way to just use a command to switch lists without exiting, or without running two seperate copies of mutt. I did it with adding the additional mailboxes while mutt is running and restarted mutt to clear the list, but that's annoying. I just created a patch to address the problem, you may try it, but be warned: it's nearly untested. I attach it, I will run my mutt here with it some time, and if it works well, I will add some documentation and put it on my homepage. If you can try it now, you're welcome. If someone uses it, I would be glad if he/she can send me suggestions for the docupatch. The patch adds a new command unmailboxes. It should behave exactly the same as mailboxes, and just remove the parameters from the mailboxes-list. Parameters not on this list are silently ignored. Nicolas written by Nicolas Rachinsky [EMAIL PROTECTED] http://www.rachinsky.de This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. --- mutt-1.3.27-ori/buffy.c Fri Feb 22 10:45:07 2002 +++ buffy.c Fri Feb 22 10:47:35 2002 @@ -212,6 +212,40 @@ return 0; } +int mutt_parse_unmailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *err) +{ + BUFFY **tmp,*tmp1; + char buf[_POSIX_PATH_MAX]; +#ifdef BUFFY_SIZE + struct stat sb; +#endif /* BUFFY_SIZE */ + + while (MoreArgs (s)) + { +mutt_extract_token (path, s, 0); +strfcpy (buf, path-data, sizeof (buf)); +mutt_expand_path (buf, sizeof (buf)); + +/* Skip empty tokens. */ +if(!*buf) continue; + +for (tmp = Incoming; *tmp;tmp = ((*tmp)-next)) +{ + if (mutt_strcmp (buf, (*tmp)-path) == 0) + { + safe_free((void **)((*tmp)-path)); + tmp1=(*tmp)-next; + safe_free((void **)tmp); + *tmp=tmp1; + break; + } +} + + } + return 0; +} + + #ifdef BUFFY_SIZE /* people use buffy_size on systems where modified time attributes are BADLY * broken. Ignore them. --- mutt-1.3.27-ori/init.h Fri Feb 22 10:45:09 2002 +++ init.h Fri Feb 22 10:45:14 2002 @@ -2458,6 +2458,7 @@ { lists, parse_list, UL MailLists }, { macro, mutt_parse_macro, 0 }, { mailboxes, mutt_parse_mailboxes, 0 }, + { unmailboxes, mutt_parse_unmailboxes, 0 }, { message-hook,mutt_parse_hook,M_MESSAGEHOOK }, { mbox-hook, mutt_parse_hook,M_MBOXHOOK }, { mono,mutt_parse_mono,0 }, diff -ru mutt-1.3.27-ori/protos.h mutt-1.3.27/protos.h --- mutt-1.3.27-ori/protos.hFri Feb 22 10:45:09 2002 +++ protos.hFri Feb 22 10:45:14 2002 @@ -299,6 +299,7 @@ int mutt_parse_hook (BUFFER *, BUFFER *, unsigned long, BUFFER *); int mutt_parse_macro (BUFFER *, BUFFER *, unsigned long, BUFFER *); int mutt_parse_mailboxes (BUFFER *, BUFFER *, unsigned long, BUFFER *); +int mutt_parse_unmailboxes (BUFFER *, BUFFER *, unsigned long, BUFFER *); int mutt_parse_mono (BUFFER *, BUFFER *, unsigned long, BUFFER *); int mutt_parse_unmono (BUFFER *, BUFFER *, unsigned long, BUFFER *); int mutt_parse_push (BUFFER *, BUFFER *, unsigned long, BUFFER *); --- mutt-1.3.27.orig/PATCHESMon Nov 26 20:16:52 2001 +++ PATCHES Thu Dec 6 16:27:55 2001 @@ -1,0 +1 @@ +1.3.27.nr.unmailboxes
Re: mailboxes list
On Fri, 22 Feb 2002, Nicolas Rachinsky wrote: * On Thu, Feb 21, 2002 at 11:29:17PM -0500, * Kyle Rawlins [EMAIL PROTECTED] wrote: Is there some way to clear the mailbox list? i.e. the list that is added to by the 'mailboxes' command. AFAIK there is no such way. At least in the discussion about this feature some time ago nobody knew such a feature. I want to have two different sets of mailboxes (one for each mailing list) and have a keybinding to cycle through them; i.e. a set of work-related mailboxes and a set of music-related mailboxes. I find that there are times where I want to check the work related stuff and spend too much time skipping over the music mailing lists and getting distracted, and when I'm reading the less serious lists I'm rarely interested in hearing about the work stuff. Similar situation here. I'm curious if you can't score the mailboxes somehow and then sort by score. Or maybe a priority somehow in the mailbox command. There is already coding to sort the headers in a particular order, so why couldn't that be applied to mailboxes as well as the format is already familiar. mailbox_order =very_important_work_box =important_inbox\ =music_stuff =spam etc Then any that aren't listed in the mailbox_order would show up with new mail afterwards when you hit c to change mailboxes. I don't even know where to begin with something like this, but it would do what you are looking for. HTH -- Knute You live, You die. Enjoy the interval! -- Clarence msg24677/pgp0.pgp Description: PGP signature
mailboxes list
Is there some way to clear the mailbox list? i.e. the list that is added to by the 'mailboxes' command. I want to have two different sets of mailboxes (one for each mailing list) and have a keybinding to cycle through them; i.e. a set of work-related mailboxes and a set of music-related mailboxes. I find that there are times where I want to check the work related stuff and spend too much time skipping over the music mailing lists and getting distracted, and when I'm reading the less serious lists I'm rarely interested in hearing about the work stuff. I could do this with different sets of configuration files, but it seems like there should be some way to just use a command to switch lists without exiting, or without running two seperate copies of mutt. Apologies if this is something obvious that I missed. thanks, -kyle -- http://mas.cs.umass.edu/~rawlins -- I don't want the world, I just want your half.