test command in shell (was Re: Archivation through mutt?)
Hallo Matěj, I did not read your script but I want to answer your shell question: On Tue, Sep 25, 2001 at 11:15:32AM -0400, Matěj Cepl wrote: > > [...mail archival script...] > I have divided script into two, because I was not able to debugg > your find command. However, I have now problem with bash. > Consider following screenshot: > > mail $ test -f ./sluzebni/; echo $? testing if an ordinary file ./sluzebni/ exists > 1 no. > mail $ test -d ./sluzebni/; echo $? testing if ./sluzebni/ is a directory. > 0 yes. > mail $ ll > total 332 > -rw-rw-r--1 matejmatej 0 kvě 3 19:30 drafts > drwxrwxr-x2 matejmatej4096 zář 9 15:54 list > drwxrwxr-x2 matejmatej4096 zář 25 10:26 pratele > -rw-rw-r--1 matejmatej 270658 kvě 2 06:03 sent-200104 > -rw-rw-r--1 matejmatej 45374 kvě 3 20:58 sent-200105 > drwxrwxr-x2 matejmatej4096 zář 25 10:48 sluzebni > > If understand my bash manpage well, the second command should > produce 1 too. Have you any idea why it doesn't? I am using bash > 2.04.11(1)-release on RedHat GNU/Linux 7.0. two things, very general in unix: in the shell a return code 0 means "OK, no errors, true" in opposite to most programming and scripting languages where 0 is associated with false and values different from 0 with true. what test (a shell builtin for bash) does, I wrote above. ask your shell: help test to get a full list of it's behaviour. Olaf extra for you switched my font to iso8859-2
Re: Folder list format
On Mon, Sep 24, 2001 at 12:46:53PM -0400, Jason Rashaad Jackson wrote: > > mail into individual folders by topic. Is there anyway I can modify my > folder view setting (what comes up when you hit 'c') to show me the name > of the folder, total messages, and total new messages (by folder)? It As someone said a few days ago the information on folder contents is not available before a folder is read by mutt. The "new mail" status is only determined by the difference of access time and modify time. Reading a mail folder is only done when changing to that folder. otherwise mutt would have to read huge amounts of data for status information only. the information you want, could be made available from ~/.procmail/log (but you want it to be displayed by mutt somehow..) others, please correct me, if I'm wrong. Olaf, having no card
Re: esc t ..why doesn't work when a message is displayed?
On Fri, Sep 14, 2001 at 07:08:46AM -0400, David T-G wrote: > ...and then Cliff Sarginson said... > % Hello > % The t toggle thread tagging only works when only the index > > I'd think that it's because you'd want to tag a whole thread only from > the index, since you [probably] can't get a picture of the whole thread > from the single-message pager view. Oh, you can, if having set (in .muttrc or manually) set pager_index_lines=7 (something greater 1) But (at least in mutt 12.5i) trying to type ':tag-thread' while in the pager has no effect. Maybe it's a problem with the programming logic behind it that makes it impossible to have tag-thread available in the pager? Olaf
Re: Help with 'folder format'
On Sun, Sep 02, 2001 at 06:25:33PM -0500, Hall Stevenson wrote: > * Olaf Schulz ([EMAIL PROTECTED]) [010902 17:30]: > > Do you have any biff-like software running? > > The only thing possibly similar is gnome's 'Mail check Applet". I have > no problem turning it off for testing purposes. There... done. and received new mail after that? Hi hall, I played a little bit around with the different dates. heres's a small (bash) shell function which will display all three dates/times of a file: mtime, ctime, atime --snip ftimes () { echo -n "ct: "; ls --color=auto -lc --full-time "$@"; echo -n "mod: "; ls --color=auto -l --full-time "$@"; echo -n "acc: "; ls --color=auto -lu --full-time "$@" } --snap to use it, type it or source it with "." I observed 3 different relations between these three times in my /var/spool/mail/olaf ("bigger" times are meant to be later) no new mail, modified by user (with mutt): ctime > atime > mtime new mail, unread "N": ctime >= mtime > atime old unread mail(mails with "O" in folder): ctime = atime > mtime write a new mail to yourself (without mutt, use simply the mail command, watch the state of your mailbox, say every 20 seconds beforee and after doing this, up to 5 minutes. have a look at your process list, (even that of other users: ps xau) to exclude any other access than mutt. so if a folder in my setup has new mail, with the shell function above all times must be shown in descending order - then should the folder be displayed as "New" by mutt. I don't use a folder_format variable in my .muttrc so mutt uses its default: "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f" (according to manual), it works as well when I include the above into my .muttrc. BTW either your time zone setting is incorect (-0500 instead of -0400) or your system clock is an hour ahead. > Regards Olaf
Re: Help with 'folder format'
On Sat, Sep 01, 2001 at 02:47:24PM -0500, Hall Stevenson wrote: > Can anyone help me with setting up my 'set folder_format' setting so > that it tags folders that have new mail with an 'N". I'm looking for > something similar to this: > http://www.linuxbrit.co.uk/mutt/mutt_directory.png. The exact setup > the site). I also added a 'mailboxes' entry to my .muttrc file. Here's > > set folder_format="%F %-8.8u %-8.8g %d %8s %N %f" > or this one > set folder_format="%N %8s bytes - %d %f" > Do you have any biff-like software running? Mutt documentation says: >> 3.11 Defining mailboxes which receive mail ... >> Note: new mail is detected by comparing the last modification time to the last >> access time. Utilities like biff or frm or any other program which accesses >> the mailbox might cause Mutt to never detect new mail for that mailbox if they >> do not properly reset the access time. Backup tools are another common reason >> for updated access times. try to get a console-login without such tools, or try to compare access and modification times with ls -lc mail_folder_file (status modification time) ls -lu mail_folder_file (access time) ls -l mail_folder_file (modification time) when thy contain either new mail or not. You may additionally always use --full-times for testing with `ls`. hope that helps Olaf