Default Mailbox problem
Hello everybody! I've got very little experience in Mutt and I've got a problem. When Mutt starts it automaticly open /var/spool/mail/peterdob. I've set the mbox variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by default and store the new messages there (to move them from /var/spool/mail/peterdob). Is this possible and how? Thank you! Best Wishes, Peter!
Re: Default Mailbox problem
Hallo Peter, try procmail. You will have to create a file ~/.procmailrc with the following content: # ~/.procmailrc PATH=/bin:/usr/bin MAILDIR=$HOME/mail DEFAULT=$MAILDIR/Inbox LOGFILE=$MAILDIR/log Greetings, Frank On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote: When Mutt starts it automaticly open /var/spool/mail/peterdob. I've set the mbox variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by default and store the new messages there (to move them from /var/spool/mail/peterdob). -- Hi! I'm the infamous .signature virus! Copy me into your ~/.signature to help me spread!
Re: Default Mailbox problem
Hi, Frank Naumann [EMAIL PROTECTED] wrote -- try procmail. You will have to create a file ~/.procmailrc with the [snip -- useful .procmailrc info] On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote: When Mutt starts it automaticly open /var/spool/mail/peterdob. I've set the mbox variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by default and store the new messages there (to move them from /var/spool/mail/peterdob). Procmail will take care of saving messages in different inbox for you. To make that the default spool mailbox for mutt, you will have to set the "spoolfile" variable instead of "mbox" variable like: set spoolfile=+Inbox BTW, for the correct expansion of "+" to "~/mail", you will also have to set the folder variable to "~/mail" like: set folder="~/mail" That, with procmail, would be what the doctor ordered. Regards, Abhay. -- Abhay Ghaisas / [EMAIL PROTECTED] Motorola India Electronics Ltd., Bangalore, India.
Re: Extra line added on edit message
Suresh Ramasubramanian [EMAIL PROTECTED] wrote -- On Thursday 28 December 2000 11:34, Abhay Ghaisas wrote: [snip] piled up at the end of the message. Is this done with some reason or is it just a bug? Looks like a harmless feature to me :) Quite harmless when hand-editing the messages; a bit of annoyance when mixed with scripts :) I am using some scripts for cleaning up some mails by setting editor variable to script name. And, every time I try it, new lines get added at end. Could you share this script? Or you could just archive mails by using date-wise folders in your .procmailrc (say mails from mutt-users in march get appended to mutt-users-march) I think I misled you with the clean-up part. The script does not clean-up the mail-box by removing mails; I invoke it on individual mails to do clean-up like removing the pesky advertisements that some mailing list hosts like e-groups add. Also for some other tasks like getting rid of too many additional newlines at the end (now, isn't that ironic considering this misfeature :) or removing excessive quoting done by some people. Regards, Abhay. -- Abhay Ghaisas / [EMAIL PROTECTED] Motorola India Electronics Ltd., Bangalore, India.
Re: Extra line added on edit message
Abhay Ghaisas proclaimed on mutt-users that: I think I misled you with the clean-up part. The script does not clean-up the mail-box by removing mails; I invoke it on individual mails to do clean-up like removing the pesky advertisements that some mailing list hosts like e-groups add. Also for some other tasks like getting hmmm... couldn't you do that with procmail + sed / awk etc _before_ the mail lands in your mailbox? -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
Re: Default Mailbox problem
Hi, On Thu, Dec 28, 2000, Frank Naumann wrote: Hallo Peter, try procmail. You will have to create a file ~/.procmailrc with the following content: # ~/.procmailrc PATH=/bin:/usr/bin MAILDIR=$HOME/mail DEFAULT=$MAILDIR/Inbox LOGFILE=$MAILDIR/log Greetings, Frank On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote: When Mutt starts it automaticly open /var/spool/mail/peterdob. I've set the mbox variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by default and store the new messages there (to move them from /var/spool/mail/peterdob). You forgot to mention, that you have to create a file ~/.forward with the contents (yust this one line): |procmail Your MTA (sendmail etc.) reads this file and (in this case) pipes the mail through procmail. Ciao for now, Dirk -- Dirk Ruediger, Rostock, Germany Going to church does not make a person religious, nor does going to school make a person educated, any more than going to a garage makes a person a car.
Thank you and another question
Thank you for the help! Here's another question :) Well is there any way to configure Mutt to use a STMP server? I'll be very glad if you answer me ! Thank you! Peter!
Re: Default Mailbox problem
Hello Dirk, sorry. I forgot to explain, that i use fetchmail to poll from a foreign pop server. If so, you do not need ~/.forward. Greetings, Frank On Thu, Dec 28, 2000 at 01:03:38PM +0100, Dirk Ruediger wrote: You forgot to mention, that you have to create a file ~/.forward with the contents (yust this one line): |procmail -- Hi! I'm the infamous .signature virus! Copy me into your ~/.signature to help me spread!
Re: Thank you and another question
Peter Dobrev proclaimed on mutt-users that: Thank you for the help! Here's another question :) Well is there any way to configure Mutt to use a STMP server? mutt can't use any specific smtp server ... configure whatever MTA you are running on that box (sendmail, postfix, qmail) to smarthost through the smtp server of your choice, or compile something like MasqMail / NullMailer (search for them on freshmeat) and use that. --suresh -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
Re: Thank you and another question
On Thu, Dec 28, 2000 at 03:08:34PM -0200, Peter Dobrev wrote: Well is there any way to configure Mutt to use a STMP server? No. Mutt always uses a program to send it's mail. That program does talk to servers via SMTP, if needed. -- [EMAIL PROTECTED] System Engineerinnominate AG Diplom-Informatiker the linux architects - alive and kicking tel: +49.30.308806-62 fax: -698 www.innominate.com PGP signature
Re: Thank you and another question
On Thu, Dec 28, 2000 at 02:21:58PM +0100, Ralf Hildebrandt wrote: On Thu, Dec 28, 2000 at 03:08:34PM -0200, Peter Dobrev wrote: Well is there any way to configure Mutt to use a STMP server? No. Mutt always uses a program to send it's mail. That program does talk to servers via SMTP, if needed. There is a very thin MTA available that is designed to shuffle your request off to some other SMTP server. I don't remember what it's called atm, but such a creature does exist. I think I read about it in the mutt docs somewhere, but I can't seem to find it now. -- Dr. David C. Merrill http://www.lupercalia.net Linux Documentation Project[EMAIL PROTECTED] Collection Editor Coordinatorhttp://www.linuxdoc.org Finger me for my public key To the cross roads I must go To find a world unseen Fear and wonder will I know, And be a bridge between -- To the Crossroads, Starhawk
Re: Thank you and another question
David Merrill proclaimed on mutt-users that: There is a very thin MTA available that is designed to shuffle your request off to some other SMTP server. I don't remember what it's called atm, but such a creature does exist. I think I read about it in the mutt docs somewhere, but I can't seem to find it now. Plenty of them (masqmail, nullmailer and such). --suresh -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
Re: Extra line added on edit message
On 2000.12.28, in [EMAIL PROTECTED], "Suresh Ramasubramanian" [EMAIL PROTECTED] wrote: I am using some scripts for cleaning up some mails by setting editor variable to script name. And, every time I try it, new lines get added at end. Could you share this script? Or you could just archive mails by using date-wise folders in your .procmailrc (say mails from mutt-users in march get appended to mutt-users-march) I'm using this to macro-reply to messages with some stock response text. macro attach \;m "enter-commandset wait_key=noenterpipe-entrymm-replyenterenter-commandset wait_key=yesenter" "Send Mailman completion message" "mm-reply" is attached. It's an "attach" macro because I use it only to reply to MIME message/rfc822 components. It probably could be a "normal" macro if you wanted to do that kind of thing. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago #!/bin/sh TMP=/tmp/mutt-formail-$$ mailquote () { awk ' ok==1 { printf " "; } /^$/{ ok=1; } { print; }' } formail -brkt \ | mailquote \ | sed -e 's/^$/\ done\ /' ${TMP} /dev/tty /opt/bin/mutt -H ${TMP} \ -e 'set abort_unmodified=no' \ -e 'set editor=/bin/true' \ -e 'macro compose e "\enter-command\set editor=\"vi\"\enter\\edit-message\"' /bin/rm -f ${TMP}