Re: How can I get mail from /var/mail/jatmin to my spoolfile

2009-02-08 Thread Josef Atmin
On Sun, Feb 08, 2009 at 11:15:31AM +0800, bill lam wrote:
> On Sat, 07 Feb 2009, Josef Atmin wrote:
> > After having discovered macros I came up with the following solution for 
> > moving mail from /var/mail/jatmin to ~/INBOX.
> > 
> >macro index,pager G "\
> > unset wait_key\
> > \
> > if [[ -s /var/mail/$USER ]]; then\
> >   cat /var/mail/$USER >> ~/INBOX;\
> >   echo -n > /var/mail/$USER;\
> > fi\
> > set wait_key\
> > " "fetch local and pop3 mail"
> > 
> 
> Did you forget to file lock mail/$USER on entry of script?
> 

Thanks for pointing that out.  How would I do that?  Set permissions to
non-writable?

Josef.


Stopping expansion of periods in mbox name?

2009-02-08 Thread Ben
I recently switched mutt versions on one of my computers to 1.5.19
from the 1.4 series.  A problem I'm having is that mutt is expanding
periods in mbox names to forward slashes, as if talking to a Maildir
imap server.

For example, I request a change-folder to imap://server/firstname.lastname
and I get error Can't open mailbox mail/firstname/lastname.

I've set mbox_type=mbox

Using mutt 1.4.2.3i with the same configs doesn't do this.

Any ideas?


Re: How can I get mail from /var/mail/jatmin to my spoolfile

2009-02-08 Thread bill lam
On Sun, 08 Feb 2009, Josef Atmin wrote:
> Thanks for pointing that out.  How would I do that?  Set permissions to
> non-writable?

Does any of the followings help?
$ man -k lock | grep "(1)"

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩133 劉長卿  秋日登吳公臺上寺遠眺
古臺搖落後  秋日望鄉心  野寺人來少  雲峰水隔深
夕陽依舊壘  寒磬滿空林  惆悵南朝事  長江獨至今


Re: Where did this line come from?

2009-02-08 Thread Rem P Roberti
> 
> On 07 Feb 09 16:03, Rem P Roberti wrote:
> > I must be getting senile. Either I have never noticed this before, or I
> > inadvertently messed something up in my .muttrc.  Observe:
> > 
> > -N F- 1/1: Rem P Roberti  test -- (all)
> > Date: Sat, 7 Feb 2009 15:56:40 -0800
> > ...
> > 
> > Where on earth did the first line in the header (preceding the date)
> > come from?
> 
> It is Mutt's statusbar and you certainly did set the variable
> status_on_top to "yes" so the statusbar ist displayed ... on the
> top. 
> 
> See:
> 
> -  L- 3/9: Rem P Roberti Where did this line come from?  -- (all)
> From: Rem P Roberti 
> To: Mutt List 
> Subject: Where did this line come from?
> 
> If you see this line while viewing a message in the pager it probably
> *looks like* a header because you changed the coloring.
> 
> Best regards,
> David
> 

Well...you are quite right.  I see now that it is indeed the status bar.
But for the life of me I don't remember actually seeing the status bar
info showing up again right above the header.  Nor do I really
understand its purpose, because it looks as thought the information
being displayed is essentially the same as the information displayed in
the message list. 

---Rem 


Re: How can I get mail from /var/mail/jatmin to my spoolfile

2009-02-08 Thread Josef Atmin
Thanks! Here is the improved macro:

   macro index,pager G "\
unset wait_key\
\
if [[ -s /var/mail/$USER ]]; then\
  mutt_dotlock -p /var/mail/$USER;\
  cat /var/mail/$USER >> ~/INBOX;\
  echo -n > /var/mail/$USER;\
  mutt_dotlock -p -u /var/mail/$USER;\
fi\
set wait_key\
" "fetch local and pop3 mail"

Josef.


On Sun, Feb 08, 2009 at 11:01:03PM +0800, bill lam wrote:
> On Sun, 08 Feb 2009, Josef Atmin wrote:
> > Thanks for pointing that out.  How would I do that?  Set permissions to
> > non-writable?
> 
> Does any of the followings help?
> $ man -k lock | grep "(1)"
> 


Re: sidebar patch for 1.5.19

2009-02-08 Thread Christoph Berg
Re: Cristóbal Palmer 2009-02-06 <20090206215134.gb23...@garp.metalab.unc.edu>
> > Is there a sidebar patch for 1.5.19 version? Where can I get it?
> 
> I vaguely remember the debian package maintainer saying that he was
> working on mutt-patched to get it working for .19, but that there was
> a lot of work to be done before that would work. Can't seem to find
> that email, though.
> 
> If you really like your sidebar, I suggest you stick with .18 for now
> or help the debian folks work on mutt-patched.

Antonio is doing a great job with doing BTS housekeeping, and
forwarding the "real" bugs to mutt's trac.

Wrt to mutt-patched, it's definitely not very high on my priority
list. I haven't seen a new patch from Terry yet:

http://www.lunar-linux.org/index.php?page=mutt-sidebar

Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/


signature.asc
Description: Digital signature


time stamps on emails in mutt index display

2009-02-08 Thread Paul E Condon
Where does mutt get the date and time that it displays
in the index of emails in a folder? I ask because I am
trying to build an archive of old email in maildir
format and I have a troublesome email (well more than
one, but one is particularly troublesome).

The desplayed date is 1970-01-01 00:00:00. I know that
this is the Unix epoch. I opened this particular email
in vim, say the there was no Date: line in it, and put
one in. But, even with multiple restarts of the program
and fiddles with the formate of the date string, I still
see the Unix epoch. Where should I dummy in a date on
an email so that mutt sees it? (and believes it?)

TIA
-- 
Paul E Condon   
pecon...@mesanetworks.net


IMAP support

2009-02-08 Thread Thomas Bohn

Hello

I think the IMAP isn't that bad and I'm considering to give up on mbsync 
or offlineimap since I'm annoyed of those tools. But I think there at 
least three issues with IMAP. Maybe those could be solved until 1.6

comes out.

1. Mutt can tell me w/o any problem that there is a new mail in a 
certain folder but can't tell me that in the folder view. There is no N 
indicator.


2. Instead of displaying +INBOX mutt displays imaps://host/INBOX.

3. When I want to attach a file, the file browser shows me the IMAP 
server and not my home directory and when I'm finished with the email 
I'm still in my home directory and not back on the IMAP server.


I guess there are more issues but those are mine so far.

Thomas


Re: time stamps on emails in mutt index display

2009-02-08 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday, February  8 at 03:34 PM, quoth Paul E Condon:
> Where does mutt get the date and time that it displays 
> in the index of emails in a folder? I ask because I am 
> trying to build an archive of old email in maildir 
> format and I have a troublesome email (well more than 
> one, but one is particularly troublesome).
>
> The desplayed date is 1970-01-01 00:00:00. I know that 
> this is the Unix epoch. I opened this particular email 
> in vim, say the there was no Date: line in it, and put 
> one in. But, even with multiple restarts of the program 
> and fiddles with the formate of the date string, I still 
> see the Unix epoch. Where should I dummy in a date on 
> an email so that mutt sees it? (and believes it?)

Are you using a header cache? If you are, mutt won't actually read the 
email itself, and will read the cache instead.

~Kyle
- -- 
To announce that there must be no criticism of the President, or that 
we are to stand by the President, right or wrong, is not only 
unpatriotic and servile, but is morally treasonable to the American 
public.
-- Theodore Roosevelt, 1912
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkmPokIACgkQBkIOoMqOI16akwCfUwGFg9Te7By9CGYYkIgLjVjn
iDUAn3oH+VS6R20GWXmU9lDpYob4yG1n
=S8QH
-END PGP SIGNATURE-


Re: time stamps on emails in mutt index display

2009-02-08 Thread Paul E Condon
On 2009-02-08_21:27:58, Kyle Wheeler wrote:
> On Sunday, February  8 at 03:34 PM, quoth Paul E Condon:
> > Where does mutt get the date and time that it displays 
> > in the index of emails in a folder? I ask because I am 
> > trying to build an archive of old email in maildir 
> > format and I have a troublesome email (well more than 
> > one, but one is particularly troublesome).
> >
> > The desplayed date is 1970-01-01 00:00:00. I know that 
> > this is the Unix epoch. I opened this particular email 
> > in vim, say the there was no Date: line in it, and put 
> > one in. But, even with multiple restarts of the program 
> > and fiddles with the formate of the date string, I still 
> > see the Unix epoch. Where should I dummy in a date on 
> > an email so that mutt sees it? (and believes it?)
> 
> Are you using a header cache? If you are, mutt won't actually read the 
> email itself, and will read the cache instead.

What is a header cache? And how can I know if I am using one?
If I am, how can I refresh it? 
 
-- 
Paul E Condon   
pecon...@mesanetworks.net