Updating screen when new mail arrives on samba share

2002-09-30 Thread Joel Hammer

I run mutt (Mutt 1.2.5i (2000-07-28)) on machine A but my mailbox is on
machine B.  I share the mail directory on machine B
via samba to machine A.  (I know, using samba to talk between two linux
boxes seems odd, but, samba is necessary for the windows boxes so I use
it for everyone.)  Sitting at machine B, when a letter arrives in the
mailbox, mutt automatically updates the screen so you can see the new
mail. However, this update doesn't work when I am using machine A. I have to
restart mutt to get the update.

I suppose this is some awkward interaction between mutt and samba. I am not
sure where to start.  Is there some simple command in mutt to reread the
mailbox?

Any insight appreciated.

Joel





Re: Shell script help for Mutt and script newbie.

2002-05-12 Thread Joel Hammer

I don't know what is causing this error. I just cut and pasted your script
into vi and it saved without trouble.
What command are you using to save the script?
Have you tried to remove some offending trailing charcters (invisible) from
the end of your file?
For example, go to the end of your pf line, and type d$
Then, if there are any lines below the pf line, go the the first line below
the pf lind and type 1000dd
Don't be afraid of messing things up. You can reverse any edits with u
Joel

On Sun, May 12, 2002 at 08:05:53PM +0700, Brian Durant wrote:
 Hi again,
 
 I am trying to write two, two line shell scripts in connection with Mutt,
 iSpell and newsbody, which is part of  spellutils-0.7. I would like to
 place them in /usr/local/bin.
 
 - Script 1. For spell-checking English mails:
 -
 - H!/bin/sh
 - newsbody -hqs -n $2 -p ispell -- -x pf
 
 When trying trying to save the script from vi, I get the following error
 message:
 
 'f' trailing characters.
 
 Script 2. For spell-checking Danish mails:
 
 H!/bin/sh
 newsbody -hqs -n $2 -p ispell -- -d danish -C -x pf
 
 Same problem.
 
 I also tried with Advanced Editor, but it wouldn't save into /usr/local/bin.
 I am sure this is very simple for anyone that has written a script before,
 but I haven't. Unfortunately, I haven't been able to find any newbie script
 tutorials either. I'm using SuSE 7.3 and Mutt 1.3.22.1i.
 
 I have already included the following in my .muttrc file, so if I could just 
 figure this script thing out, it would be a great help:
 
 macro compose i :set ispell=newsbody-ispell\n ispell-english
 macro compose I :set ispell=newsbody-ispell-dansk\n ispell-dansk
 
 
 Cheers,
 
 Brian



Re: Shell script help for Mutt and script newbie.

2002-05-12 Thread Joel Hammer

That file name worked for me.

To copy into vi, there are two ways.

If you have your mouse working, just highlight the text with the mouse,
go to vi, go into the insert mode, and right click or double click the
stuff in.

If no mouse, then, save your text to a file, go to vi:
:r file

If you are new to vi, you will find a lot of frustration at first, but, now,
I prefer vi to anything else for text editing.

There are a numerous short cuts which get around vi's seeming clumsiness.
For example, to close up all those lines when you have to edit things and
the lines are all ragged, the command
:1,$ ! fmt
is nice. Of course, you can map that to a function key. And it can be
customized to do just what you want to do.

If you are good at sed, you can use sed to filter your files while in vi:
:1,$ ! sed s/Find/Replace/
for example. If you mess up, u undoes any number of edits. [Cntrl]R undoes
the undos.

If you don't use vi, you are missing 1/2 the benefit of linux!

Joel


On Sun, May 12, 2002 at 08:31:11PM +0700, Brian Durant wrote:
 On Sunday 12 May 2002 20:17, Joel Hammer wrote:
 - I don't know what is causing this error. I just cut and pasted your script
 - into vi and it saved without trouble.
 - What command are you using to save the script?
 - Have you tried to remove some offending trailing charcters (invisible) from
 - the end of your file?
 
 Maybe the first problem is that I have not found out how to copy the lines of 
 text from something else into vi yet. I did warn that I was a newbie ;-) I 
 have been writing this by hand and the possibilitiy is of course, that I 
 added or subtracted a space somewhere. How would I copy something from 
 KMail into vi? Assuming I get this far, can I save the first file with the 
 command :w /usr/local/bin/newsbody-ispell ?
 
 Cheers,
 
 Brian



Re: Anybody using xclip successfully?

2002-05-12 Thread Joel Hammer

I don't know which script you are referring to. If you pasted my script
into start_browser.sh, why don't you send me start_browser.sh and I'll
look at it and try running it on my box.
And, you don't need to limit this shell to run just from mutt. I run this
script from any application running in X.
Joel

On Sun, May 12, 2002 at 10:27:05PM +0200, Marco Fioretti wrote:
 Joel,
 
 thanks for the script. I put in .muttrc this macro
 
 macro pager \cn !/home/marco/bin/start_browser.sh\n 'open URL'
 
 Now netscape starts every time with the last selected URL, but I get
 this error : 
 
 sh: -c: line 1: unexpected EOF while looking for matching `'
 sh: -c: line 2: syntax error: unexpected end of file
 
 I  have only changed the path to netscape, what could it be? 
 Maybe some weird character came in pasting from one rxvt to emacs?
 I am using bash, and the browser starts correctly, but that problem
 is really bad because it messes up the mutt pager window. I could add
 a 2 /dev/null, but I'd rather understand what's happening.
 
 Any help is appreciated!
 
   Ciao,
   Marco Fioretti 
 
 On Sun, May 12, 2002 08:55:54 at 08:55:54AM -0400, Joel Hammer wrote:
 
   Opps. In my first post I sent the wrong version of my DisplayHTML script.
  Sorry.
  Joel
  
  
  #!/bin/bash
  a=`ps ax | grep mozilla | grep -v grep`
  # [ $a ] || a=`ps ax | grep netscape | grep -v grep`
  [ -n $a ]  {
  /usr/local/netscape/netscape -remote openURL(`xclip -o`) 
   }
  [ -z $a ]  {
  /usr/local/netscape/netscape `xclip -o` 
  }
  
   On Sun, May 12, 2002 at 11:55:16AM +0200, Marco Fioretti wrote:
   Hello,
   
   some weeks ago there was a discussion here about how to make URLs
   clickable from within mutt, and somebody suggested the xclip program.
   
   I have installed it, and added ti .muttrc the macro:
   
 macro pager \cn !mozilla `xclip -o` \n
   
   Now when I highlight some URL with the left button, and hit Control-n
   mozilla does start but not on that URL. It seems that the URL selected
   the first time remains in memory: in other words, the first time
   mozilla opens the page I select, and reopens it even if I select
   another URL in the same or another message. What could it be?
   
   (using mutt in rxvt/KDE/RH 7.2)
   
 TIA,
 Marco Fioretti
   
   -- 
   The three most dangerous things are a programmer with a soldering
   iron, a manager who codes, and a user who gets ideas.
 
 -- 
 We shall serve God, family and country, in that order, because without
 the one before it, each would perish.



Re: sent mails

2002-04-24 Thread Joel Hammer

This seems to work for me in my .muttrc file.
fcc-hook . ~/Mail/sent-mail
Joel

On Wed, Apr 24, 2002 at 11:08:57PM +0200, Peter Hennicke wrote:
 Hello,
 
 how can I tell mutt to keep the sent mails?
 When the mail is sent, it is gone - for ever:(
 Unfortunately I can't see what I sent to somebody
 sometime ago.
 
 Can you help me?
 
 Thanks
 
 Peter
 -- 
 
 Der Mensch kommt nie aus Vernunft zur Vernunft.
   [Montesquieu]



Re: limit to subjects with only CAPITALS

2002-04-17 Thread Joel Hammer

Have you tried this pattern?
[^a-z] 

Joel

On Thu, Apr 18, 2002 at 04:14:18AM +0200, Sven Guckes wrote:
 How do you limit to subjects in CAPS only,
 ie containing not a single lowercase letter?
 caveat: the subjects may have other characters -
 but all the letters are uppercase.
 
 note:
 a pattern containing only
 lowercase letters default
 to checking uppercase
 letters, too.
 
 so this does not work:
   ! ~s [a-z]
 
 and it does not help making
 at least one uppercase
 letter a requirement:
   ~s [A-Z]  ! ~s [a-z]
 
 ideas?
 
 Sven  [04:14am *yawn*]



Re: /var/spool/mail/.... is not a mailbox

2002-04-14 Thread Joel Hammer

What do you get with:
file /var/spool/mail/user
I get:
/var/spool/mail/jlh: mail text 
Joel

On Sun, Apr 14, 2002 at 08:45:06PM -0300, skidley wrote:
 When I started mutt after a new install I get
/var/spool/mail/myusername is not a mailbox. I've never seen such
a thing. So I ran fetchmail and it created /var/spool/mail/user
and downloaded my pop messages and still when I run mutt I get
/var/spool/mail... is not a mailbox. why out of the blue would mutt do
 such a thing? I have always used /var/spool/mail/user. This is 
absolutely horrendous. How can I fix this???skidley



Re: /var/spool/mail/.... is not a mailbox

2002-04-14 Thread Joel Hammer

I can duplicate your problem if I put some garbage like  as the first
line of my mail box file. That is, file reports a mail box but mutt
complains it is not.
Joel
On Sun, Apr 14, 2002 at 09:17:23PM -0300, skidley wrote:
 Joel Hammer wrote:
 
 What do you get with:
 file /var/spool/mail/user
 I get:
 /var/spool/mail/jlh: mail text 
 Joel
 
 On Sun, Apr 14, 2002 at 08:45:06PM -0300, skidley wrote:
 
 When I started mutt after a new install I get
 
 /var/spool/mail/myusername is not a mailbox. I've never seen such
 a thing. So I ran fetchmail and it created /var/spool/mail/user
 and downloaded my pop messages and still when I run mutt I get
 /var/spool/mail... is not a mailbox. why out of the blue would mutt do
 
 such a thing? I have always used /var/spool/mail/user. This is 
 
 absolutely horrendous. How can I fix this???skidley
 
 .
 
 /var/spool/mail/skidley: RFC 822 mail text
 



Re: Command line send

2002-04-10 Thread Joel Hammer

Yes. mutt does the same thing. I believe that mutt even has an extra command
line option or two. read:
man mutt
man mail
Joel

 On Tue, Apr 09, 2002 at 09:33:02PM -0400, Carl Stehman wrote:
 Does Mutt have a command line  option to send an e-mail
 message directly from the command line like
 cat message |mail [EMAIL PROTECTED] does for sendmail on
 standard Unix? without any interactive action needed?
 
 Thanks
 
 Carl Stehman
 



Re: Opening html links in text mail

2002-03-14 Thread Joel Hammer

Yes!! This is just what I wanted. xclip -o just dumps the current clipboard
into your script. Very nice. Very userful. Whata great utility.
Thanks,
Joel

On Thu, Mar 14, 2002 at 07:49:14AM -0800, Gary Johnson wrote:
 On Wed, Mar 13, 2002 at 11:15:27PM -0800, Gary Johnson wrote:
  On Wed, Mar 13, 2002 at 10:09:09PM -0500, Joel Hammer wrote:
 
   Is there a way to run a shell script which would automatically read in
   the current contents of the clipboard, thus avoiding the need for the
   mouse click?
  
  I used to have a program that did this on an earlier version of HP-UX,
  so it is possible.  It just echoed the clipboard contents to stdout.  I
  don't think I have it any more, though, so you might see if freshmeat
  has one.
 
 Eureka!  Check out http://freshmeat.net/projects/xclip/:
 
 xclip is a command line utility that is designed to run on any
 system with an X11 implementation. It provides an interface to X
 selections (the clipboard) from the command line. It can read data
 from standard in or a file and place it in an X selection for
 pasting into other X applications. xclip can also print an X
 selection to standard out, which can then be redirected to a file or
 another program.
 
 I haven't tried it yet myself, but it looks like it should do exactly
 what you want.
 
 Gary
 
 -- 
 Gary Johnson   | Agilent Technologies
 [EMAIL PROTECTED]   | Spokane, Washington, USA
 http://www.spocom.com/users/gjohnson/mutt/ |



Re: Opening html links in text mail

2002-03-14 Thread Joel Hammer

This really is way cool.

With KDE, I just dragged the script file onto my bottom panel. Now,
I just highlight the link in mutt, hit the icon on the bottom panel,
and netscape starts up, etc.

Linux is an acquired taste.

Joel

On Thu, Mar 14, 2002 at 06:53:17PM -0500, Joel Hammer wrote:
 Yes!! This is just what I wanted. xclip -o just dumps the current clipboard
 into your script. Very nice. Very userful. Whata great utility.
 Thanks,
 Joel
 
 On Thu, Mar 14, 2002 at 07:49:14AM -0800, Gary Johnson wrote:
  On Wed, Mar 13, 2002 at 11:15:27PM -0800, Gary Johnson wrote:
   On Wed, Mar 13, 2002 at 10:09:09PM -0500, Joel Hammer wrote:
  
Is there a way to run a shell script which would automatically read in
the current contents of the clipboard, thus avoiding the need for the
mouse click?
   
   I used to have a program that did this on an earlier version of HP-UX,
   so it is possible.  It just echoed the clipboard contents to stdout.  I
   don't think I have it any more, though, so you might see if freshmeat
   has one.
  
  Eureka!  Check out http://freshmeat.net/projects/xclip/:
  
  xclip is a command line utility that is designed to run on any
  system with an X11 implementation. It provides an interface to X
  selections (the clipboard) from the command line. It can read data
  from standard in or a file and place it in an X selection for
  pasting into other X applications. xclip can also print an X
  selection to standard out, which can then be redirected to a file or
  another program.
  
  I haven't tried it yet myself, but it looks like it should do exactly
  what you want.
  
  Gary
  
  -- 
  Gary Johnson   | Agilent Technologies
  [EMAIL PROTECTED]   | Spokane, Washington, USA
  http://www.spocom.com/users/gjohnson/mutt/ |



Opening html links in text mail

2002-03-13 Thread Joel Hammer

I use mutt, linux, and kde.
One of the problems I have had with mutt is opening links to internet sites
in my email.
I used to highlight and copy the address into the browser (netscape). But,
this seems a bit clumsy. It was clumsy, in fact.
So, I have a better way now. I thought I would pass this along and get some
comments and some advice.
Given a script called /usr/local/bin/DisplayHTML

#!/bin/bash
a=`ps axu | grep mozilla | grep -v grep`  --look for mozilla in my user's name
[ -n $a ]  {  --If running use this command, else the one below
/usr/local/netscape/netscape -remote openURL($1) 
 }
[ -z $a ]  {
/usr/local/netscape/netscape $1 
}

and an alias
alias n='/usr/local/bin/DisplayHTML' 
in my users shell,

I just highlight the link, switch to an xterm, type n three mouse click 
  and the link opens very nicely.

Is there a way to run a shell script which would automatically read in
the current contents of the clipboard, thus avoiding the need for the
mouse click?

I can imagine a mapped key in mutt which would do all of those things
with one key stroke. The main problem is getting the script to see the
clipboard contents.

Thanks,
Joel




Re: Opening html links in text mail

2002-03-13 Thread Joel Hammer

Well I found urlview.
I do not want to install yet another helpler application (yet). Also, can't
even download the thang. This urlview looks hardcore to me!
I would really rather learn how to access the clipboard from a bash script!
Joel

On Thu, Mar 14, 2002 at 04:22:18AM +0100, Rocco Rutte wrote:
 Hallo,
 
 On Wed, Mar 13, 2002 at 10:09:09:PM -0500 Joel Hammer wrote:
  One of the problems I have had with mutt is opening links to internet sites
  in my email.
 
 Hmm, I use 'UrlView' which is much more flexible, usable and also
 extensible.
 
 Regards, Rocco
 -- 
 BOFH excuse #351:
 
 PEBKAC (Problem Exists Between Keyboard And Chair)



Re: orange editor

2002-03-11 Thread Joel Hammer

Those commands work fine here. No orange stuff.
Maybe try:
df. or cf;

On Mon, Mar 11, 2002 at 12:09:48PM +0100, Todd Kokoszka wrote:
 Hi,
 
 I happily use vi as my editor with mutt. However, when I started using commands like 
d/. or c/; and the
 +like (changing or deleting a line until a specific character), my vi display under 
mutt changed. Each
 +character that I chose became highlighted in orange. Today I chose I think the d/. 
and now my entire vi
 +display, except for the background is in orange. Vi outside of mutt is fine -- 
that's why I'm writing
 +here.
 
 Thanks for any suggestions or ideas.
 
 Todd
 



Displaying all mail after a limit command

2002-03-10 Thread Joel Hammer

After I used the limit command (l) to find certain emails, I am at a
lost for going back to my original view of all the mail. I suppose I
could open up the mailbox again, but that seems wrong.

Any insight appreciated,
Joel




Re: Problems sending large attachments

2002-03-08 Thread Joel Hammer

I don't use a modem anymore, but:
It seems very unlikely that this is a limitation of linux. You would not be
the first one to notice this problem.
Does this happen with ftp?
What is the error message you are getting?
Maybe your ISP doesn't like what your linux modem driver is doing. 
This link may be interesting:

http://www.linuxdoc.org/HOWTO/Modem-HOWTO-17.html#ss17.4

Joel

 Problems sending large attachments?
 
 I have a P111 notebook with over 300MB memory, using a pcmcia modem running 
 on Redhat 7.2.  I use Kmail 1.3.2 on KDE 2.2.2-1 and Mutt 1.3.25i .  I have 
 used sendmail-8.11.6-3 and have configured Kmail and mutt to use this
 
 I can send emails with small attachments, receive emails even with large 
 attachments but when I try to send large attachments around 40 KB and over 
 using either ./sendmail -v -q or Kmail's smtp server, I get error messages, 
 and the connection freezes.   Mutt sends the mail to mqueue and when I use 
 sendmail -q the connection stalls.
 
 This has happened with different desktops, different distros i.e. Redhat and 
 SuSE 7.3.  I have no problem when I use Windows, so it is not the ISP.  Could 
 it be a problem with 'wvdial.conf' or some other configuation file, limiting 
 the size of message I can send?  I have spent alot of time searching for 
 answers and using different configuration of sendmail but unfortunately 
 without joy.  
 
 Is this a problem with linux,  I need to send large attachments sometimes 
 from home to work.  Do I need to keep Windows installed?
 
 Jim
 
 
 
 



Re: HTML mail

2002-03-07 Thread Joel Hammer

Have you just tried pressing v from the main page before you open up the
letter?

Joel

On Thu, Mar 07, 2002 at 10:23:42AM -0800, Michael Montagne wrote:
 How do folks handle HTML mail.  If I receive an attached HTML file (and
 HTML email, I think), autoview will decode it and I'll see it in the
 pager (correct term?).  Then I can use v and when I view the link,
 Galeon is invoked and I can see the page. But if someone sends an entire page as the
 email, I don't get the option to view an HTML attachment.  All I see is
 a bunch links and .gif references.  I'm not sure what the differences
 are between these two conditions but it's one of the last pieces of the
 puzzle to make mutt truly amazing.
 
 
 -- 
 Michael Montagne
 [EMAIL PROTECTED]
 http://www.boora.com



Controlling headers displayed in vi pager

2002-03-06 Thread Joel Hammer

Since going to vi as my pager, I don't see all the headers I used to be
able to see with the builtin pager. Is there a way to force mutt to show
me all the headers in my vi pager?

Joel




Re: avoid dangerous mappings!

2002-03-06 Thread Joel Hammer

Well, I still find a single stroke command to exit the vi as a pager
quite useful. I could have a separate .vimrc for the vi as pager; however,
I am trying to maintain a single set of commands for using vi (vim). So,
maybe this will suffice for a quick exit:

map Z :w! /tmp/vi-backup
:q!

Joel




Re: external page: vi

2002-03-05 Thread Joel Hammer

Well, I switched to vi (vim, actually) as the  For page a vi junkie,
this is really much better (And, for a person who doesn't really
understand how to use mutt right)
I though I would pass along some helpful points in case anyone else
wants to do this
To start vi, I use the following set pager command in Muttrc:
set pager=vi -c /^$/ -c /
This moves the cursor to the start of the body of the email Thus,
you skip all the header stuff I won't embarrass myself by telling how long
it took me to figure this out
Also,
set prompt_after=no
is handy
To make it easier to read the mail, these three items in vimrc help
map Z :q!
  --fast quit without saving anything
map z z
   --- fast shift email to top of screen First command given
after email comes up in vi  I wish I could get this to happen automatically
map g !}fmt
  ---wrap those long lines around
If there are any vi newbies who want to try this, remember that to enter
^M you need to type, while in the insert mode:
control-v [enter]

Joel




Re: unable to send mails....

2002-03-05 Thread Joel Hammer

I am confused too, but:
My linux box uses sendmail with mutt I don't know how to configure mutt to
use another mail server! 
It looks like your mail relay machine can't figure out who 1921681130 is,
which I assume is the machine sending the mail Do you have a static ip? Is
there a DNS which ought to be resolving your ip address for your mail server?
If you have access to the gateway machine, and you have static ips:
1 You might add your host to the /etc/hosts file of the gateway machine
2 Try to get the DNS configured to do reverse lookups
3 You may have to get the gateway machine to allow relying from your
machine For sendmail, that is in /etc/mail/relay-domains

Joel






external page: vi

2002-03-03 Thread Joel Hammer

Is is possible and advantageous to use vi as an external pager?
Joel






Re: external page: vi

2002-03-03 Thread Joel Hammer

I made pager=vi in Muttrc.

It is different. I think I like it because I am a vi junkie and I hate
some of the single key responses in the mutt pager (like skipping to the
next email when I just wanted to move down one line.) It is disorienting
to switch from vi to the mutt pager all the time and back. I've also got fmt and par
going to reformat messy emails quickly.

I guess I will try it and see if it makes things more pleasant.

Thanks for the help.

Joel

On Sun, Mar 03, 2002 at 09:10:04PM -0500, Daniel Eisenbud wrote:
 On Sun, Mar 03, 2002 at 08:46:41PM -0500, Joel Hammer [EMAIL PROTECTED] wrote:
  Is is possible
 
 Yes.
 
  and advantageous
 
 No.
 
  to use vi as an external pager?
 
 Hope this helps.  :-)  To be a little bit more specific, you lose all of
 the mutt highlighting, quote-hiding, pager_index_lines, as well as the
 ability to do things from the pager with a single keystroke.  In return
 for this, you don't get any real advantage that I can think of.  On the
 other hand, if it would make you happy, go for it.
 
 -Daniel
 
 -- 
 Daniel E. Eisenbud
 [EMAIL PROTECTED]
 
 We should go forth on the shortest walk perchance, in the spirit of
 undying adventure, never to return,--prepared to send back our embalmed
 hearts only as relics to our desolate kingdoms.
   --Henry David Thoreau, Walking



Re: external page: vi

2002-03-03 Thread Joel Hammer

I suppose I could learn more about mutt and make the pager easier for me
to use, but, I am trying to do the unix thing, and just learn to use a
few basic tools well and solve diverse problems with them (The man with
a hammer syndrome) I am working hard to improve my vi and sed skills
right now It is amazing how complicated and powerful these supposedly
simple tools really are

Joel

 Note that if your issue with the mutt pager is its keybindings,
 they are thoroughly configurable You might consider using the mutt
 pager with keybindings that make you happy, and a macro that pipes
 problematic messages through fmt and par and into vi or less




Re: My Mutt Won't Bark

2002-03-02 Thread Joel Hammer

This might help
I use several mail boxes and some useful aliases
alias m1='mutt'
alias m2='mutt -f ~/Mail/Caldera'
alias m3='mutt -f ~/Mail/Discuss'
alias m4='mutt -F ~/muttrc-vi'
alias m5='mutt -F ~/muttrc-vi -f ~/Mail/linux_users'
So, try mutt ~f ~/Mail/suse-linux
It is not easy being a mutt newbie
Joel

On Sat, Mar 02, 2002 at 09:26:57PM -0800, Jerry Van Brimmer wrote:

 SuSe 73, Mutt 13221i (2001-08-30)
 
 Mutt newbie here, starting to be a frustrated Mutt newbie The docs say that
 Mutt should work out-of -the-box Well, mine don't I installed the one off of
 the SuSe DVD, which doesn't create me a muttrc file So, I went to the Mutt
 home page, then to the muttrc file generator page and got my initial muttrc
 file I have entered my personal data into the file But, I cannot get mutt to
 read my mail In my home directory I have:
 
 /home/jerry/Mail
 /home/jerry/Mail/inbox
 /home/jerry/Mail/suse-linux
 
 Here's a snippit from my muttrc file:
 
 # Folder and Mailbox ##
 set write_inc = 10
 set sort_browser = alpha
 set record = 
 set pipe_split = no
 set pipe_decode = no
 set pipe_sep = \n
 set move = ask-no
 set mask = !^\\[^]
 set mbox = ~/mbox
 set mbox_type = mbox
 set mh_purge = no
 set confirmappend = yes
 set confirmcreate = yes
 set copy = yes
 set default_hook = ~f %s !~P | (~P ~C %s)
 set fcc_attach = yes
 set fcc_clear = no
 set folder = ~/Mail
 set folder_format = %2C %t %N %F %2l %-88u %-88g %8s %d %f
 set force_name = no
 
 
 The problem is, every time I start up Mutt it says: Mutt:-(no mailbox)
  
 No such file or directory
 
 I have downloaded my mail with fetchmail into my suse-linux box How do I get
 Mutt to read it?
 
 Thanks for advice,
 Jerry



Re: unable to send mails....

2002-03-01 Thread Joel Hammer

Does this happen just with mutt?
What do you see in your logs? (/var/log/mail)

Joel

On Fri, Mar 01, 2002 at 03:39:45PM +0530, Kanagesh wrote:
 Hi,
 
 I'm using Mutt to send and receive emails  I am on a network, which is
 connected
 to the internet  I am able to receive emails from both within and
 outside the network,
 but i am unable to send emails outside the network (like ids at yahoo,
 hotmail, etc)
 what could be the problem?  Does Mutt internally invoke sendmail to send
 
 and receive
 mails?
 
 thanks in advance
 
 regards,
 kanagesh
 
 
 
 --
 Programming today is a race between software engineers
 striving to build bigger and better idiot-proof programs,
 and the Universe trying to produce bigger and better idiots
 So far, the Universe is winning - Rich Cook
 
 



Re: How to avoid and handle looong lines

2002-02-26 Thread Joel Hammer

I never heard of gq before.
On Mon, Feb 25, 2002 at 11:02:27PM -0500, parv wrote:
 in message [EMAIL PROTECTED], 
 wrote Joel Hammer thusly...
 
  I don't have a mutt solution. You can just hit the reply button
  and get the letter in vim. Then, in the command mode, you can
  reformat it easily with:
  !}fmt
  You can map this sequence to a key. I use g.
 
 hi joel, i am curious as to why would you prefer 'fmt' than vim's
 built in 'gq' command?
 
  - parv
 
 



Re: How to avoid and handle looong lines

2002-02-25 Thread Joel Hammer

I don't have a mutt solution. You can just hit the reply button and get the
letter in vim. Then, in the command mode, you can reformat it easily with:
!}fmt
You can map this sequence to a key. I use g. This is very convenient.
Joel

On Mon, Feb 25, 2002 at 06:50:04PM -0900, Tim Johnson wrote:
 Hello:
   I use Mutt 1.3.27i on RH Linux 7.2
   I correspond with someone who uses Mutt/1.2.5i on Debian (???)
   When I get email from him, his lines are very long and mutt
   has to wrap them. 
 
   It appears as if carriage returns aren't being inserted until
   a new paragraph is created.
 
   When I respond it's a major inconvenience because the quoted
   line is *way past* the right margin.
 
 So I have 2 questions:
   1)Is there a way to automatically reformat a llooong quoted line?
   2)What can I tell my friend so that he can avoid doing this?
 
   BTW: I am using vim 6.0, up to patch 204 or so. 
 
   Cheers!
 -- 
 Tim Johnson [EMAIL PROTECTED]
   http://www.johnsons-web.com



Re: SMTP Authorization

2002-02-23 Thread Joel Hammer

I came in late to this conversation, but..
Have you tried just to telnet to your pop server and see what happens?
For example, here is a typical transcript from a telnet session to my pop
server.
telnet netmail.home.com 110
Trying 24.0.95.143...
Connected to femail.sdc1.sfba.home.com.
Escape character is '^]'.
+OK InterMail POP3 server ready.
USER myusername   ---You type this line
+OK please send PASS command
PASS mypassword   ---You type this line
+OK myusername is welcome here
LIST---Your command
+OK 0 messages
.
HELP
-ERR Invalid command
Commands: DELE, LIST, LAST, NOOP, RETR, RSET, STAT,
TOP, UIDL or QUIT

Joel


n Sat, Feb 23, 2002 at 08:12:57AM -0800, Jerry Van Brimmer wrote:
 On Sat, 23 Feb 2002 12:27:15 +0100
 Martin Karlsson [EMAIL PROTECTED] wrote:
 
  On Fri Feb 22, 2002 at 11:54:38PM -0800, Jerry Van Brimmer wrote:
  [...snip...] 
   # POP #
   set pop_user = [EMAIL PROTECTED]
  [...snip...] 
   Every time I try to read my mail Mutt says that login failed:
   
   Login failed. USER: unknown or invalid command in this state [USER]
   
   What do I have to set to get this to work?
  
  The 'USER: unknown' bit makes me think you should try just:
  
  set pop_user = jerryvb
 
 I tried this: set pop_user = jerryvb ; got the same error message.
 
 Am I using Mutt correctly?
 1. I open up a xterm window, using KDE 2.2.2 on SuSE 7.3.
 2. At command prompt I type mutt, press Enter. Mutt opens up, no errors.
 3. I press Shift+G
 4. Mutt goes through several attempts to login to my mail server before it
 finally stops and reports the error message above.
 
 I'm brand new to Mutt, so any advice is welcome.
 
 Thanks
 
  
  Otherwise the POP-server thinks you're trying to log in as
  [EMAIL PROTECTED]@pop3.ispwest.com.
  
  Mind you, I'm just guessing here... Anyway, hope this helps.
  
  -- 
  Martin Karlsson | I prefer mail encrypted with PGP/GPG!
   keyid  fingerprint in headers
   visit http://www.gnupg.org for more info
  



Re: SMTP Authorization

2002-02-23 Thread Joel Hammer

Don't you want set pop_user=jerryvb?
Joel

On Sat, Feb 23, 2002 at 12:44:33PM -0800, Jerry Van Brimmer wrote:
 So what's wrong with my .muttrc file? How do I get this puppy working?
 
 # POP #
 set pop_user = [EMAIL PROTECTED]
 set pop_pass = password
 set pop_delete = no
 set pop_host = pop3.ispwest.com
 #set pop_port = 110
 #set pop_last = no
 
 Thanks
 
 
 On Sat, 23 Feb 2002 14:29:03 -0600
 David Champion [EMAIL PROTECTED] wrote:
 
  On 2002.02.23, in [EMAIL PROTECTED],
  Jerry Van Brimmer [EMAIL PROTECTED] wrote:
   Well, I thought Mutt was a terminal based email client that could as much or
   more than other email clients. So, I was hoping that I could just download
 all
   messages into my mailbox and the headers would be displayed in the index,
 sort
   of just like all others, i.e. Sylpheed. I thought Mutt was a
 downloader/reader
   all in one? Am I wrong?
  
  No, you're quite correct. Some people just prefer to use external
  programs to do the same thing. Since there's something apparently
  going wrong with mutt's built-in support, they're offering alternative
  approaches.
  
  -- 
   -D.[EMAIL PROTECTED]NSITUniversity of Chicago
  



Re: html email

2002-01-26 Thread Joel Hammer

I thought NT stands for New Technology. MS is always trying to make
their customers forget about the last operating system.

Joel

  Hr  Well, as it is an NT dominated environment,  anybody know
  what NT stands for?
  
  No Thoughts



Re: problems in sending mail Hi, I am having problem of sendmail outside my organisation. It doesn't return any error after sending mail but mails are not delivered at all. Is it the problem of sendmail ??. I am new to this and I am not able to figure oproblems in sending mails

2002-01-17 Thread Joel Hammer

The first place to look is /var/log/mail

Joel
On Thu, Jan 17, 2002 at 07:18:57PM +0530, Jyothi wrote:
 
 Hi,
 
 I am having problem of sending mail outside my organisation. It doesn't
 return any error after sending mail but mails are not delivered at all.
 Is it the problem of sendmail ??. I am new to this and I am not able to
 figure out why mails are not going out at all. Is there any settings I
 have missed out. How to verify that my sendmail is working properly ??..
 
 Please Help...
 
 Thanks in Advance,
 Jyothi.



Re: problems in sending mail

2002-01-17 Thread Joel Hammer

I don't know what is causing this error . I would visit the sendmail web site
and poke around.
http://www.sendmail.org/faq/

On Thu, Jan 17, 2002 at 08:01:45PM +0530, Jyothi wrote:
 I saw in /var/log/maillog
 
 It has few messages like this...
 
 Jan 17 14:30:59 ws164 sendmail[2439]: g0H8jw102437: [EMAIL PROTECTED],
 ctladdr=jyothi (500/500), delay=00:15:00, xdelay=00:15:00, mailer=esmtp,
 pri=30290, relay=mx4.mail.yahoo.com. [216.136.129.13], dsn=4.0.0,
 stat=Deferred: Connection timed out with mx4.mail.yahoo.com.
 
 Jan 17 14:52:34 ws164 sendmail[2455]: g0H8jw102437: [EMAIL PROTECTED],
 ctladdr=jyothi (500/500), delay=00:36:36, xdelay=00:15:01, mailer=esmtp,
 pri=120290, relay=mx4.mail.yahoo.com. [216.136.129.18], dsn=4.0.0,
 stat=Deferred: Connection timed out with mx4.mail.yahoo.com.
 
 What may be the reason for this connection timed outPlease suggest.
 
 Thanks,
 Jyothi.
 
 
 
 
 
 Joel Hammer wrote:
 
  The first place to look is /var/log/mail
 
  Joel
  On Thu, Jan 17, 2002 at 07:18:57PM +0530, Jyothi wrote:
  
   Hi,
  
   I am having problem of sending mail outside my organisation. It doesn't
   return any error after sending mail but mails are not delivered at all.
   Is it the problem of sendmail ??. I am new to this and I am not able to
   figure out why mails are not going out at all. Is there any settings I
   have missed out. How to verify that my sendmail is working properly ??..
  
   Please Help...
  
   Thanks in Advance,
   Jyothi.



Re: Using mutt in command line ..

2001-12-27 Thread Joel Hammer

Read man mutt.
echo My message | mutt -s ImportantLetter -a Attachment [EMAIL PROTECTED]
You can cat a file to mutt as well.
Joel
On Thu, Dec 27, 2001 at 09:32:05AM -0400, Ivan Castillo Escobar wrote:
 Hi!
 
 Somebody can tell me how to write the exact command to send a mail with
 an attachment using the command line (mutt), without the need to enter
 the vi editor to write the message body???. I need to use a mutt command
 to be executed in a UNIX shell ...
 



Re: Writing bullets/lists in vim

2001-12-27 Thread Joel Hammer

I am not sure how to do that just with vi but:
Since you can easily pass your document through a unix command filter, you
could just write your own sed command to do that for you and bind it to a
key with map.
eg.
:1,5 !tr a-z A-Z makes line 1 to 5 uppercase.
or
:1,10 !sed s/^[a-z].*/   /
Might do what you want. I haven't tried it, but, you get the idea. If I
could remember off hand how to do a negative search in sed, I would just
skip all lines beginning with a number.
Joel

On Thu, Dec 27, 2001 at 11:59:46AM -0500, Philip Mak wrote:
 Does anyone have a vim configuration to make writing bullets/lists easier?
 e.g. when I'm writing something like this:
 
 --- begin example ---
 1. Pick one of the RaQs to be the DNS server.
 2. E-mail [EMAIL PROTECTED] and ask him for an additional IP for
that RaQ.
 3. When you get the IP, tell me and I'll set the server to use it.
 --- end example ---
 
 it would be nice if when the line wraps while I'm typing point #2, the
 cursor starts on column 3 instead of column 0 on the second line.



Re: Good vim configuration?

2001-12-25 Thread Joel Hammer

You can do anything you want to your docment with shell commands. 
eg.
:1,5 !fmt
will close up lines 1 to 5.
or:
!}fmt
will do the same to the next paragraph break (blank line).
info fmt will show you some options.
You could write a very short script to do just want you want and bind it to
a key.
Joel
On Tue, Dec 25, 2001 at 06:33:15AM -0500, Philip Mak wrote:
 I'm used to using pine's editor, which handles filling of paragraphs (even
 if they start with   due to quoting) fairly nicely.
 
 How can I achieve the same thing in vi? I'd like to be able to bind a key
 such that when I press it, it automatically refills the current paragraph
 smartly. Some automatic line wrapping would be nice, too... I'm wondering
 what configurations for .vimrc do you guys use for use with mutt?



Can't save read messages

2001-11-19 Thread Joel Hammer

Does anyone know why in some mailboxes I don't get an opportunity to save my
read messags to an archive file on exiting the mailbox?
Joel




World writable directory error with procmail

2001-08-23 Thread Joel Hammer

About two days ago procmail just stopped working.
Here is the error I see in /var/log/mail:
 sendmail[5115]: RAA05114: forward /home/jlh/.forward: World writable
directory 

I have read the sendmail book on .forward and permissions.
Here are the permissions of the various involved files (jlh is the user):
lrwxrwxrwx   1 root root   13 May  8  2000 jlh - /mnt/hda4/jlh  
drwxrwxr-x   9 root root 1024 Jul 23 21:00 hda4
drwx--  82 jlh  users   30720 Aug 23 18:07 jlh
-r--r--r--   1 jlh  users  27 Jul 23  2000 /mnt/hda4/jlh/.forward  
-rw-r--r--   1 jlh  users 391 Jul 22 08:58 /mnt/hda4/jlh/.procmailrc 

I don't see any world writeable files or directories here, except for the
link. But, that has been like that for months, I believe, and they claim
symbolic link permissions mean nothing.
Any insight appreciated.
Joel





Re: World writable directory error with procmail: Solved

2001-08-23 Thread Joel Hammer

On Thu, Aug 23, 2001 at 06:44:44PM -0400, Joel Hammer wrote:
 On Thu, Aug 23, 2001 at 06:21:57PM -0400, Joel Hammer wrote:
  About two days ago procmail just stopped working.
  Here is the error I see in /var/log/mail:
   sendmail[5115]: RAA05114: forward /home/jlh/.forward: World writable
  directory 
  
  I have read the sendmail book on .forward and permissions.
  Here are the permissions of the various involved files (jlh is the user):
  lrwxrwxrwx   1 root root   13 May  8  2000 jlh - /mnt/hda4/jlh  
  drwxrwxr-x   9 root root 1024 Jul 23 21:00 hda4
  drwx--  82 jlh  users   30720 Aug 23 18:07 jlh
  -r--r--r--   1 jlh  users  27 Jul 23  2000 /mnt/hda4/jlh/.forward  
  -rw-r--r--   1 jlh  users 391 Jul 22 08:58 /mnt/hda4/jlh/.procmailrc 
  
  I don't see any world writeable files or directories here, except for the
  link. But, that has been like that for months, I believe, and they claim
  symbolic link permissions mean nothing.
  Any insight appreciated.
  Joel
 
Aw, forget it. /home was world writeable! I forgot about that one. Sendmail 8
 is very fussy. ANY directory in the path that is world writeable makes
 .forward not function.
 Joel



Re: procmail

2001-08-23 Thread Joel Hammer

On Sat, Aug 18, 2001 at 08:26:56PM +0200, Azzazel wrote:
 Hi,
 
 Does anybody use procmail for sorting incoming mail? 
 proc won't sort messages (I've tired test explained on faq page).
 Or, maybe I shell use fetchmail for receiving messagess?
 
I rediscovered one reason why procmail won't sort. Check your /var/log/mail logs to
see if you have a World writable directory error.
If any directory in the path to ~/.forward allows users or others to write
in that path, sendmail rejects the ~/.forward file and procmail won't run.
Joel




Re: Check a mailbox for new mail w/o using access time

2001-08-20 Thread Joel Hammer

 I think that chattr +A will do want you want.
 Joel
 



Re: procmail

2001-08-18 Thread Joel Hammer

 proc won't sort messages (I've tired test explained on faq page).
 Or, maybe I shell use fetchmail for receiving messagess?
 
Do you have a .forward file in your home directory?

[jlh@cc846558-a jlh]$ cat .forward
|exec /usr/bin/procmail   

Then, do you have mistakes in your .procmailrc file. Here is mine as an
example of one that works:

[jlh@cc846558-a jlh]$ cat .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=/home/jlh/Mail
LOGFILE=proclog
SHELL=/bin/sh
   :0:
   * ^Reply-To.*[EMAIL PROTECTED]
   linux_users

   :0:
   * ^Reply-To.*netraverse.com
   Caldera

   :0:
   * ^Reply-To.*lists.caldera.com
   Caldera

   :0:
   * ^Reply-To.*ltsp.discuss
  Discuss

   :0:
   * ^From.*
   /var/spool/mail/jlh   


Now, I forget just how you make your mail agent honor the .forward file. That
will be left as an excersize to the student. Let me know when you find out.
Check your LOGFILE to look for errors, etc. (Just noticed my log file is
empty. No idea why.)
Don't forget those . in front of the file names.
Joel
  



test command in mailcap not recognizing %s

2001-07-27 Thread Joel Hammer

I don't know how to make mutt distinguish between pdf and word (doc)
documents. They both show up as octet stream. So, I am trying to put a test
command into my mailcap file to test which type of file is attached, doc or
pdf. I am not having much luck, so I think I need some help.

Here is my mailcap line for pdf:

application/octet-stream;/opt/Acrobat3/bin/acroread %s; 
test=/usr/local/bin/mutt-testpdf %s 

Here is my script to test for the pdf file:

echo This is 0 $0   /home/jlh/junk
echo This is 1 $1   /home/jlh/junk
echo This is all $*  /home/jlh/junk
i=`echo $0 | sed -n /\.pdf$/p`
[ -n $i ]  echo 0 || echo 1 

Now, I have found many difficulties.
First, %s never gets carried over into my script, which I test by looking at that junk 
file.
If I put a constant string in place of %s, then it shouws up as $1.
$0 shows the name of the command. I thought that sh -c makes the first argument $0, 
not $1.
Finally, if I  make my test script just echo a 1, acroread is still
invoked.
So, I am really confused. 
Any insight appreciated.
Joel