Trying to use tag-pattern inside a folder-hook
Hi all, I am trying to get mutt (1.3.28i) to automatically tag all messages older than a specific date. I thought I would enter something like: folder-hook . 'tag-pattern ~d 1w' But it just comes up with tag-pattern: unknown command. I'm sure I'm doing something simple wrong, I just don't know what. Thanks Sam.
Re: Trying to use tag-pattern inside a folder-hook
Mason, Sam ([EMAIL PROTECTED]) muttered: I am trying to get mutt (1.3.28i) to automatically tag all messages older than a specific date. I thought I would enter something like: folder-hook . 'tag-pattern ~d 1w' But it just comes up with tag-pattern: unknown command. I'm sure I'm doing something simple wrong, I just don't know what. You have to use the push command for that: folder-hook . push 'T~r2d\n' HTH, Michael -- Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs. (By Dennis Ritchie) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
About wrapping lines.
Heya. I was just wondering, that is it possible for Mutt to wrap the lines before sending the message in the editor when replying? At least Slrn handles this, and it is quite nice feature indeed. I know, that Mutt can wrap the lines on pager and such forth, but what about before it sends the message to editor for replying? I've set the $smart_wrap, and I searched the manual through with a word 'wrap', but couldn't find a solution. Or should this be the editor's job? I just don't like to enable wrapping in Emacs itself, because I hate it when the editor handles the line length. I'm such a controllive person... :-) -- Jussi Ekholm [EMAIL PROTECTED] | GNU/Linux user number 269376 http://erppimaa.cjb.net/~ekhowl/ | ICQ UIN: 156057281 ekh on IRCnet | GnuPG Public Key ID: 1410081E msg27769/pgp0.pgp Description: PGP signature
Re: Trying to use tag-pattern inside a folder-hook
--h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Mason, Sam [EMAIL PROTECTED], 2002-05-01 07:01 -0400: Hi all, =20 I am trying to get mutt (1.3.28i) to automatically tag all messages older than a specific date. I thought I would enter something like: =20 folder-hook . 'tag-pattern ~d 1w' =20 But it just comes up with tag-pattern: unknown command. I'm sure I'm doing something simple wrong, I just don't know what. =20 Thanks Sam. Does folder-hook . push D~d1wenter work for you? The tag-pattern is D, see section 2.3.1 of the manual. The push-command simulates keyboard action, see 3.20.=20 -Andre --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8z88jWkhBtALlJZ0RApK5AJ40qVg9Ot+/h45gI25LZWcM3aFlUACg/g8Z Rq0lr+9i8nV4TCaRW3JzqRg= =2xFX -END PGP SIGNATURE- --h31gzZEtNLTqOjlF--
Re: Trying to use tag-pattern inside a folder-hook
Andre Berger ([EMAIL PROTECTED]) muttered: folder-hook . push D~d1wenter ^ This should read T!!! D is delete-pattern! Michael -- How should I know if it works? That's what beta testers are for. I only coded it. (Attributed to Linus Torvalds, somewhere in a posting) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: Trying to use tag-pattern inside a folder-hook
--24zk1gE8NUlDmwG9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andre Berger [EMAIL PROTECTED], 2002-05-01 07:19 -0400: * Mason, Sam [EMAIL PROTECTED], 2002-05-01 07:01 -0400: Hi all, =20 I am trying to get mutt (1.3.28i) to automatically tag all messages older than a specific date. I thought I would enter something like: =20 folder-hook . 'tag-pattern ~d 1w' =20 But it just comes up with tag-pattern: unknown command. I'm sure I'm doing something simple wrong, I just don't know what. =20 Thanks Sam. =20 Does =20 folder-hook . push D~d1wenter =20 work for you? The tag-pattern is D, see section 2.3.1 of the manual. The push-command simulates keyboard action, see 3.20.=20 And after some coffee I feel less rigid, so if you don't want to delete but just to tag messages, try folder-hook . push T~d1wenter see sect. 4.3 -Andre --24zk1gE8NUlDmwG9 Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8z9FRWkhBtALlJZ0RAg2RAKDQgT2qv4SB6Ua0LQKC3Sr9ut/zRwCgpR46 KnCCX24+Ij7oTLAIG50k8wk= =iEEn -END PGP SIGNATURE- --24zk1gE8NUlDmwG9--
Re: Trying to use tag-pattern inside a folder-hook
On Wed, May 01, 2002 at 12:31:04PM +0200, Nicolas Rachinsky wrote: * Mason, Sam [EMAIL PROTECTED] [2002-05-01 10:20:59 +0100]: I am trying to get mutt (1.3.28i) to automatically tag all messages older than a specific date. try folder-hook . 'push tag-pattern ~d 1w\n' Thanks for the responses everyone, this was about the best one I had. As it didn't require me to have 'T' bound to tag-pattern. Thanks again, Sam.
Re: About wrapping lines.
Jussi Ekholm ([EMAIL PROTECTED]) muttered: I was just wondering, that is it possible for Mutt to wrap the lines before sending the message in the editor when replying? Nope. Or should this be the editor's job? Yes. Set $editor to something apropriate. Michael P.S. please post to [EMAIL PROTECTED] -- We come to bury DOS, not to praise it. (Paul Vojta, [EMAIL PROTECTED], paraphrasing a quote of Shakespeare) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: Directory Paths in Alias command
Roger, et al -- ...and then Roger Espasa said... % % Hi all, Hello! % ... % In ELM, you could define an alias such as: % % equip = Equipment Mgmt Folder = admin/equipment ... % % In MUTT, it seems that when the alias is expanded, it's % being sanitized by some routine, which translates it into % % $FOLDER/admin_equip % % % So, my questions are: % % % 1) Is there an alternative way to accomplish what I want? %(i.e., defining short aliases for folders that are in % a subdirectory of my main folder directory?) I like symlinks, personally. My subfolders are all =D.*, and I have a symlink for my brother in $HOME/Mail that points to =D.family/michaelg so that I don't have to tell mutt anything and yet it all gets categorized nicely. This is most helpful for work stuff; although I have some very generic fcc fules in my muttrc (domain-based matching pointing to %O in the proper subdirectory), I also make some symlinks for things that don't fit neatly into those simple rules. % % 2) Looking at the source, routine 'mutt_safe_path' in muttlib.c %seems responsible for this slash-into-blank change. This %routine is only ivoked from hook.c. What is the reasoning %behind this cleaning up process? Can I just remove it? IIRC this is because of the possibility of accidentally interpreting hostile code. There *might* be a configure option to not change / to _ somewhere; I haven't played with it. You could check the mutt-users archives to confirm my recollection, though... % % % Thanks, HTH HAND % % roger. :-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! msg27775/pgp0.pgp Description: PGP signature
Re: mailbox read only
Willy -- ...and then Willy S said... % % hi, Hello! % % Yesterday I was playing with my procmailrc, and spambouncer. Since then, I can Were you playing with mutt, too, by chance? Did you compile and install a new version? % not delete the mail in my mailbox (/var/spool/mail/sutrisno). The message at % the bottom of Mutt says: Mailbox is read-only. % % If I do: % $ ls -l /var/spool/mail/sutrisno % $ -rw-rw1 sutrisno mail 13239 Apr 30 11:24 /var/spool/mail/sutrisno This looks fine. I expect that ls -lFd /var/spool/mail will show that only the mail group has permission to write in there, too. What do ls -lF `which mutt` `which mutt_dotlock` and mutt -v | grep DOT give you? If you have +USE_DOTLOCK in the latter, then one of the former will need to have the sgid bit set and be grouped by mail... % % The only way to delete it is to $ cat /dev/null /var/spool/mail/sutrisno Ouch! That's certainly not the best approach :-) % % Anyone know what cause my mailbox to be read only? I have a feeling this one % got to do with procmail and spambouncer. Those two shouldn't make any difference -- unless, perhaps, you've been getting your mail in $HOME/INBOX or such this whole time and are just now starting to use the system spool dir, but the solution for that is the same. % % thanks HTH HAND % % -- % Willy % [ http://web.singnet.com.sg/~sutrisno ] % Linux User #225035 - http://counter.li.org :-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! msg27776/pgp0.pgp Description: PGP signature
Re: About wrapping lines.
Hi, all! ...and then Michael Tatge said... % % Jussi Ekholm ([EMAIL PROTECTED]) muttered: % I was just wondering, that is it possible for Mutt to wrap the lines % before sending the message in the editor when replying? % % Nope. Jussi: I heartily agree with Michael. I wouldn't want to use emacs, either, but I hear some people prefer it (amazingly) over vim ;-) This definitely belongs to the editor, though. % ... % P.S. please post to [EMAIL PROTECTED] Michael: He did, AFAICT. Is there a particular reason you made this note? % -- % We come to bury DOS, not to praise it. % (Paul Vojta, [EMAIL PROTECTED], paraphrasing a quote of Shakespeare) Heh :-) Hey, I love DOS! 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! msg2/pgp0.pgp Description: PGP signature
gbnet? (was Re: About wrapping lines.)
David T-G ([EMAIL PROTECTED]) muttered: ...and then Michael Tatge said... % P.S. please post to [EMAIL PROTECTED] Michael: He did, AFAICT. Is there a particular reason you made this note? Strange - now that I look at the headers, it's ok. Somehow the gbnet adresse came up as I hit list-reply. Don't know what happend there. Some of these days. Michael -- Even more amazing was the realization that God has Internet access. I wonder if He has a full newsfeed? (By Matt Welsh) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: About wrapping lines.
begin Jussi Ekholm quotation: I was just wondering, that is it possible for Mutt to wrap the lines before sending the message in the editor when replying? At least Slrn handles this, and it is quite nice feature indeed. You don't want that anyway, you just think you do. If your editor does the wrapping, you can fix it if it's broken. If Mutt does it, you're stuck; you'll find out the wrapping was broken when you get the confused responses. -- Join the Sergio Brandano Fan Club: http://lists.debian.org/debian-user/1999/debian-user-199910/msg00981.html msg27779/pgp0.pgp Description: PGP signature
Re: About wrapping lines.
job? I just don't like to enable wrapping in Emacs itself, because I hate it when the editor handles the line length. Just do this: set editor=emacs --eval '(turn-on-auto-fill)' and line wrapping will only be turned on when emacs is launched by mutt. And if you want to use a long line anyway, it's pretty easy to either turn off auto fill mode, or just edit the one line. -- Mike Schiraldi VeriSign Applied Research msg27780/pgp0.pgp Description: PGP signature
Re: mailbox read only
* David T-G ([EMAIL PROTECTED]) wrote: % Yesterday I was playing with my procmailrc, and spambouncer. Since then, I can Were you playing with mutt, too, by chance? Did you compile and install a new version? I dont think so. I never touch muttrc, neither do I compile it again. I just play with my procmailrc, coz I just starting to use spambouncer. This looks fine. I expect that ls -lFd /var/spool/mail I did that, the result is: $ ls -lFd /var/mail/ drwxrwsr-x2 root mail 4096 May 2 00:00 /var/mail/ ls -lF `which mutt` `which mutt_dotlock` I did that: $ ls -lF `which mutt` `which mutt_dotlock` -rwxr-xr-x1 root staff 1296865 Apr 21 13:41 /usr/local/bin/mutt* -rwxr-xr-x1 root mail 30606 Apr 21 13:41 /usr/local/bin/mutt_dotlock* mutt -v | grep DOT And for that: $ mutt -v | grep DOT -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE I do not understand all these. I believe there is nothing wrong with my folder. Is it because spambouncer do something to my mailbox? thanks you -- Willy [ http://web.singnet.com.sg/~sutrisno ] Linux User #225035 - http://counter.li.org
Re: mailbox read only
Willy -- ...and then Willy Sutrisno said... % % * David T-G ([EMAIL PROTECTED]) wrote: % % Yesterday I was playing with my procmailrc, and spambouncer. Since then, I can % % Were you playing with mutt, too, by chance? Did you compile and install % a new version? % I dont think so. I never touch muttrc, neither do I compile it again. I just OK. % play with my procmailrc, coz I just starting to use spambouncer. Good. % % This looks fine. I expect that % %ls -lFd /var/spool/mail % I did that, the result is: % $ ls -lFd /var/mail/ % drwxrwsr-x2 root mail 4096 May 2 00:00 /var/mail/ Yep; that's all in order. % %ls -lF `which mutt` `which mutt_dotlock` % I did that: % $ ls -lF `which mutt` `which mutt_dotlock` % -rwxr-xr-x1 root staff 1296865 Apr 21 13:41 /usr/local/bin/mutt* % -rwxr-xr-x1 root mail 30606 Apr 21 13:41 /usr/local/bin/mutt_dotlock* Aha! While mutt_dotlock is group mail, it does not have the sgid bit set, so it gets run as the calling user. You need root to chmod g+s /usr/local/bin/mutt_dotlock in order to lock spool files under /var/spool/mail (or, it seems from your ls above, /var/mail). % %mutt -v | grep DOT % And for that: % $ mutt -v | grep DOT % -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE % % I do not understand all these. I believe there is nothing wrong with my folder. This simply notes that mutt does not expect to look in your home directory for spool files, expects to have the SGID bit enabled on its locking program, expects to use dotlocking, and expects to find a standalong dotlocking program. Everything here is in order, too. % Is it because spambouncer do something to my mailbox? Nope. It's a mutt_dotlock permissions problem, as I suspected. % % thanks you You're welcome! % % -- % Willy % [ http://web.singnet.com.sg/~sutrisno ] % Linux User #225035 - http://counter.li.org :-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! msg27783/pgp0.pgp Description: PGP signature
Re: mailbox read only
* David T-G ([EMAIL PROTECTED]) wrote: Aha! While mutt_dotlock is group mail, it does not have the sgid bit set, so it gets run as the calling user. You need root to chmod g+s /usr/local/bin/mutt_dotlock The above command really solved my problem. Thx man for the help! I can't believe it, its the mutt_dotlock that cause the problem. Can you explain to me, why does that program affect my mailbox. I never run that prog before, neither I do something with the permission. Anyway, thanks very much. -- Willy [ http://web.singnet.com.sg/~sutrisno ] Linux User #225035 - http://counter.li.org
Re: mailbox read only
Willy -- ...and then Willy Sutrisno said... % % * David T-G ([EMAIL PROTECTED]) wrote: % Aha! While mutt_dotlock is group mail, it does not have the sgid bit % set, so it gets run as the calling user. You need root to % %chmod g+s /usr/local/bin/mutt_dotlock % The above command really solved my problem. Thx man for the help! Sure thing! % % I can't believe it, its the mutt_dotlock that cause the problem. Can you explain Well, cause might be putting it a bit strongly... I'd say it was permissions on a file that cause the problem and that root is to blame. % to me, why does that program affect my mailbox. I never run that prog before, Not a problem. In order for mutt (or any program, be it a user agent like mutt or pine or a delivery or transport agent like procmail or sendmail)) to write to your mail spool file without risk of corruption when something else wants to write there, all of these programs have to have a locking mechanism that says I am modifying this file; don't touch it. There are three kinds of locking, and the one you're using is called dotlocking; for a file foo, a lock file called foo.lock (foo dot lock, and hence dotlock) gets created in the same directory. If a process wants to write to the mailbox, such as to deliver new mail or to write replied/deleted/whatever flags, it first checks to see that there is no lockfile and then tries to create one; if it can successfully create the lock file, then it knows that it can write without worry. When it's done, it deletes the lock file so that something else can write to the file as necessary. Note that I said in the same directory up above. When you're working with mailboxes in your home directory, of course you have permissions to do anything you wish. When you're in /var/mail, however, you as a user do not have permission to create any files there because it looks like drwxrwsr-x2 root mail 4096 May 2 00:00 /var/mail/ and we see that you must be either root or in the mail group to write there because world write permissions are turned off (just as they should be). The way to ensure this is to give the program that has to do the locking special permissions, called set-UID or set-GID, which respectively set the effective user ID or group ID when the process is run. Now, some admins don't want to give a big, complex program like mutt (even though it's tight and fast, it's still a lot of lines of C code!) special permissions; after all, there might be a trojan horse or even a simple bug in there that could wreak havoc on your system. Because of that, there is a very short and simple program called mutt_dotlock whose only function is to create and remove dotlock files, and *it* is what gets the special permissions. It does very little and it takes only certain arguments, so it's easy to see that it's not a trojan horse and also easy to debug. % neither I do something with the permission. Let's back up for a moment... Has your mail always been in /var/mail, or have you been working with a mailbox under your home directory? Have you used mutt for a long time, or switched to it only recently from, say, PINE? You really didn't build and install or reinstall? I noticed that mutt and mutt_dotlock were timestamped April 21, which is only last week; *something* had to have changed on Sunday. % % Anyway, thanks very much. HTH HAND % % -- % Willy % [ http://web.singnet.com.sg/~sutrisno ] % Linux User #225035 - http://counter.li.org :-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! msg27785/pgp0.pgp Description: PGP signature
Re: Selecting a mailbox
On Tue, Apr 30, 2002 at 04:37:40PM -0700, John Iverson wrote: [...] I'm running plain 1.3.28i with no patches, and I'm pretty sure I remember this behavior on earlier versions as well. I don't think Dean mentioned his version. [...] I am running version 1.3.28i. Did someone say it was fixed in the CVS version? Hrm Thanks Dean msg27786/pgp0.pgp Description: PGP signature
(wish) urlview w/ context?
Hello, I tried googling for this without success. I was wondering if anybody knows of a way to get urlview to show some context along with the URLs it presents. For example, some newsletters come littered with URLs, and especially when they reference mailing list archives, they get hard to deal with. For example, something like: 21 http://lists.debian.org/debian-devel-0204/msg02136.html 22 http://lists.debian.org/debian-devel-0204/msg02366.html 23 http://lists.debian.org/debian-devel-0204/msg02186.html 24 http://lists.debian.org/debian-legal-0204/msg00072.html Means that I have to remember which number I'm looking for before I enter urlview, and also that I need to exit urlview and go back and look at the message to figure out what the other links are for before I pick the next one to follow. I wish urlview had a mode in which it would display its entire input on the output, with selectable URLs, instead of just the list of selectable URLs. Better still would be another option that would work like grep's -C (or 3 options, and follow the example of grep's -A and -B as well). (I'm talking about GNU grep, in case the context options aren't the same on all greps.) I just wanted to know if anybody knows workarounds that provide this functionality. I guess one is use gnome-terminal instead of xterm, but I'm looking for other ideas. If the only response I get is sounds good; let us know when the patch is ready! I might give it a shot, but more likely I'll just switch to gnome-terminal ;) good times, Vineet msg27787/pgp0.pgp Description: PGP signature
Re: Transition from Pine to Mutt
* Gour ([EMAIL PROTECTED]) [020430 09:21]: Recently I noticed that my present sendmail+Pine configuration has some problems - some emails are not reaching its destination, and my guess is that it's because the emails are rejected by some spam blockers since my Sender: header points on my localhost account and is different than From: Reply-to: headers. Is it the job of Postfix or Mutt can also put Sender: header? Your MTA adds the Sender: header when the From address being is specified. The idea is that if it's not specified by the user, the MTA will fill in the From info with the sender. If the sender specifies the From info, the MTA puts a Sender: header to let everyone know that the From data may be forged. The MTA should have an option of which users should be allowed to specify their own From data without having to be outed by a Sender: header. In Exim, this is the trusted_users option; I have no idea how to do this with sendmail. good times, Vineet -- Currently seeking opportunities in the SF Bay Area Please see http://www.doorstop.net/resume.shtml msg27788/pgp0.pgp Description: PGP signature
[Announce] mutt-1.3.99 is out
Mutt-1.3.99 is available from ftp://ftp.mutt.org/pub/mutt/. There should be no significant changes against 1.3.28, except for some minor bug fixes, and build fixes concerning environments which are iconv-impaired. Please test this versin thoroughly. It's, obviously, intended to be the Very Last Beta Before 1.4 (TM). -- Thomas Roessler[EMAIL PROTECTED] msg27789/pgp0.pgp Description: PGP signature
Re: (wish) urlview w/ context?
On Wed, May 01, 2002 at 02:30:57PM -0700, Vineet Kumar wrote: I was wondering if anybody knows of a way to get urlview to show some context along with the URLs it presents. For example, some newsletters come littered with URLs, and especially when they reference mailing list archives, they get hard to deal with. For example, something like: I wish urlview had a mode in which it would display its entire input on the output, with selectable URLs, instead of just the list of selectable URLs. Better still would be another option that would work like grep's -C (or 3 options, and follow the example of grep's -A and -B as well). (I'm talking about GNU grep, in case the context options aren't the same on all greps.) I use w3m instead of urlview for this. It can identify URLs in plain text and mark them as links. (The ':' command does this.) You can then follow the links using w3m as the browser or invoke an eternal browser instead. In fact, I have mutt configured to use w3m as the pager for those newsletters I receive that commonly contain URLs. display-hook ~A'set pager=builtin' display-hook '~s \\[Slashdot\\] Daily Headlines' 'set pager=w3m' display-hook '~s YOUR LINUX TODAY NEWSLETTER''set pager=w3m' Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |