Re: managing two accounts on same imap-server

2002-05-11 Thread Tobias Kirchhofer

On Fri, May 10, 2002 at 06:32:26PM -0400, Dan Boger wrote:
 On Fri, May 10, 2002 at 10:47:07PM +0200, Tobias Kirchhofer wrote:
  macro index F7 copy-message=imap:[EMAIL PROTECTED]/Inbox\n
  'Copy message to =imap:[EMAIL PROTECTED]/Inbox'
  
  Error-message:
  
  imap_copy_messages [a0008 NO Error in IMAP command received by
  server.]?
  
  NO Error?
  
  It works if i copy a message manually:
  
  C
  imap:[EMAIL PROTECTED]/Inbox
  Password for [EMAIL PROTECTED]:
 
 I see a difference - '=imap://...' and 'imap://...' - try removing the
 '=' from the macro.

Great, this works! Thank you very much.

Tobias Kirchhofer




headers encoding

2002-05-11 Thread Andrey R. Urazov

Hello,

it's quite natural that heading of a message be written in the same
language as the message body. For that reason I often get letters with
subject lines or From fields in Russian encoded in some encoding
including codes for Cyrillic characters. But there is a problem handling
such headers. Since there are lines in message headers specifying
message body encoding, mutt can do (and it does!) right conversion to
the display charset. But it does never convert header lines to match my
terminal encoding and as a result I always get garbage on the screen
instead of Cyrillic letters.

I wonder if the standards defining format of e-mail messages allow for
usage of non-ASCII characters in mail headers. If this is allowed, why
does mutt not support it? And if it is not, I think that it makes sense
to implement in mutt support for recoding from the headers encoding
(which in this case can, for example, be determined as encoding of the
body or of the first part in case of multipart message) to the one used
by the underlying terminal.


Yours sincerely, Andrey Urazov
-- 
The worst cliques are those which consist of one man.
-- G.B. Shaw
--
Samstag, Mai 11, 2002, 15:12:44 +0700 - Andrey R. Urazov (mailto:[EMAIL PROTECTED])




msg27974/pgp0.pgp
Description: PGP signature


Re: Debugging mutt ?

2002-05-11 Thread Rocco Rutte

Hi,

* Michael Seiwert [05/10/02 20:20:08 CEST] wrote:
 I've compiled mutt 1.3.99 with '--enable-debug', but I don't find any option 
 on how to debug mutt ?

'mutt -d $yourlevel' will produce a file with debug
information in your $HOME directory.

Cheers, Rocco.



Re: headers encoding

2002-05-11 Thread Rocco Rutte

Hi,

* Andrey R. Urazov [05/11/02 10:44:23 CEST] wrote:
 it's quite natural that heading of a message be written in the same
 language as the message body. For that reason I often get letters with
 subject lines or From fields in Russian encoded in some encoding
 including codes for Cyrillic characters. But there is a problem handling
 such headers. Since there are lines in message headers specifying
 message body encoding, mutt can do (and it does!) right conversion to
 the display charset. But it does never convert header lines to match my
 terminal encoding and as a result I always get garbage on the screen
 instead of Cyrillic letters.

Headers have to encoded word by word if there's something in
them, which has to encoded. Usually, you should see what
character set was used to encode it. If there's something
going wrong - as in your case - have a look at 'iconv-hook'.

 I wonder if the standards defining format of e-mail messages allow for
 usage of non-ASCII characters in mail headers.

No, and that's why they have to be encoded. The character set
for header encoding does not need to be the same as for the
body.

Cheers, Rocco.



Re: headers encoding

2002-05-11 Thread Andrey R. Urazov

On Sat, May 11, 2002 at 11:59:15AM +0200, Rocco Rutte wrote:
  it's quite natural that heading of a message be written in the same
  language as the message body. For that reason I often get letters
  with subject lines or From fields in Russian encoded in some
  encoding including codes for Cyrillic characters. But there is a
  problem handling such headers. Since there are lines in message
  headers specifying message body encoding, mutt can do (and it does!)
  right conversion to the display charset. But it does never convert
  header lines to match my terminal encoding and as a result I always
  get garbage on the screen instead of Cyrillic letters.

 Headers have to encoded word by word if there's something in them,
 which has to encoded.
What do you mean, Rocco? Any special encoding? Please explain me how
non-ascii characters should be written in the headers?

 Usually, you should see what character set was used to encode it.
Usually encoding of the header coincide with the one of the body. But I
don't know whether this is standards compliant behavior.

 If there's something going wrong - as in your case - have a look at
 'iconv-hook'.
At the moment I do not see any application of the `iconv-hook', it seems
to me that the problem is not in that mutt cannot accomplish conversion
on account of incorrect name of some encoding in my installation (all is
correct here) but because it does not know how to treat symbols in the
header.

  I wonder if the standards defining format of e-mail messages allow
  for usage of non-ASCII characters in mail headers.
 
 No, and that's why they have to be encoded.
What do you mean by `being encoded'. ANY character we use is encoded in
some way in a computer. The point is that ASCII is now a standard
encoding while other encodings are not. Using ASCII we can say a program
how the following text in a message should be encoded.

 The character set for header encoding does not need to be the same as
 for the body.
Rocco, it's absolutely unclear for me how can I include non-ASCII
characters in message headers the right way and say other clients how to
interpret them.


Yours sincerely, Andrey Urazov
-- 
Pournelle must die!
--
Samstag, Mai 11, 2002, 18:32:41 +0700 - Andrey R. Urazov (mailto:[EMAIL PROTECTED])




msg27977/pgp0.pgp
Description: PGP signature


Problem with w3m as mutt pager

2002-05-11 Thread Marco Fioretti

Hello,

I am trying to follow the suggestions given some days ago on the list
about using w3m as the internal mutt pager, so that html email is
formatted properly, and URLs are clickable.
If I put:

macro pager \cw |w3m\n Read with w3m

inside .muttrc, and then hit C-w when looking at an html message, w3m
starts inside the mutt window, but gives me the raw HTML source. If I
press : URLs are highligthed and clickable, but reading the message
is not possible. What am I missing?

I am using:

Mutt 1.2.5i (2000-07-28)
System: Linux 2.4.7-10 [using slang 10404]

on RH 7.2

TIA,
Marco Fioretti 
-- 
There is more to life than increasing its speed.  -- Mahatma Gandhi



Re: headers encoding

2002-05-11 Thread Rocco Rutte

Hi,

* Andrey R. Urazov [05/11/02 13:36:50 CEST] wrote:
 On Sat, May 11, 2002 at 11:59:15AM +0200, Rocco Rutte wrote:

[...]
  Headers have to encoded word by word if there's something in them,
  which has to encoded.
 What do you mean, Rocco? Any special encoding?

Yes.

 Please explain me how
 non-ascii characters should be written in the headers?

An example is:

| Subject: Re: =?iso-8859-1?Q?Datenm=FCll?= umwandeln

'=FC' is the encoded character (ü).

  If there's something going wrong - as in your case - have a look at
  'iconv-hook'.
 At the moment I do not see any application of the `iconv-hook',

If mutt doesn't recognize the character set of the above
example, you could map it via an alias to a know one.

 it seems
 to me that the problem is not in that mutt cannot accomplish conversion
 on account of incorrect name of some encoding in my installation (all is
 correct here) but because it does not know how to treat symbols in the
 header.

Could you give an example?

   I wonder if the standards defining format of e-mail messages allow
   for usage of non-ASCII characters in mail headers.

  No, and that's why they have to be encoded.
 What do you mean by `being encoded'.

Well, all headers may only contain ASCII printable characters.
With 'encoding' I mean conversion like in the above example.

  The character set for header encoding does not need to be the same as
  for the body.
 Rocco, it's absolutely unclear for me how can I include non-ASCII
 characters in message headers the right way

If you have a mailer like mutt, just type them. Mutt will
do the rest of the work. ;-) You'll have to look at the plain
text of your message to see those conversion since they're
interpreted before they're displayed.

 and say other clients how to
 interpret them.

All you can do is to correctly convert headers; interpretation
is left to the other side. RFC2231 describes it. And if the
other side's mailer doesn't support RFC2231, you will have to
avoid using non-ASCII characters.

Cheers, Rocco.



How to define mailboxes ?

2002-05-11 Thread Michael Seiwert


Hi,

how to define imap mailboxes ???

mailboxes =inbox =inboxi.Archiv 

doesn't seem to work for me. The remote imap server is cyrus. The
root mailbox is inbox.

Thank you for your help.

Regards

Micha



Re: Problem with w3m as mutt pager

2002-05-11 Thread Rocco Rutte

Hi,

* Marco Fioretti [05/11/02 15:26:39 CEST] wrote:
 I am trying to follow the suggestions given some days ago on the list
 about using w3m as the internal mutt pager, so that html email is
 formatted properly, and URLs are clickable.
 If I put:

   macro pager \cw |w3m\n Read with w3m

 inside .muttrc, and then hit C-w when looking at an html message, w3m
 starts inside the mutt window, but gives me the raw HTML source. If I
 press : URLs are highligthed and clickable, but reading the message
 is not possible. What am I missing?

You're missing, that you have to tell w3m to assume text/html
input ('-T text/html'). The example given was not use w3m as a
pager for html mails but as a replacement for urlview to more
easily view URLs within a message.

Given that, you'll need to different macros: one calling w3m
without arguments to click URLs in text/plain mails; and
another to call w3m with arguments to make it display
text/html.

Cheers, Rocco.



Re: Problem with w3m as mutt pager

2002-05-11 Thread Marco Fioretti

On Sat, May 11, 2002 15:34:33 at 03:34:33PM +0200, Rocco Rutte wrote:
 
 You're missing, that you have to tell w3m to assume text/html
 input ('-T text/html'). The example given was not use w3m as a
 pager for html mails but as a replacement for urlview to more
 easily view URLs within a message.
 
 Given that, you'll need to different macros: one calling w3m
 without arguments to click URLs in text/plain mails; and
 another to call w3m with arguments to make it display
 text/html.
 
 Cheers, Rocco.

So, if I understand correctly, I should have

macro pager \cw |w3m\n make urls clickable in plain text
email

macro pager \ch |w3m -Ttext/html\n display formatted HTML
with w3m

or not? I will try it in a few hours, must go get the kids now, but
any comment/correction in the meantime would be really appreciated!

Ciao,
Marco Fioretti

-- 
Whatever you do will be insignificant, but it is very important that
you do it. -- Gandhi



Re: How to define mailboxes ?

2002-05-11 Thread dan radom

* Michael Seiwert ([EMAIL PROTECTED]) wrote:
 
 Hi,
 
 how to define imap mailboxes ???


mailboxes `ls -1 /home/graffix/mail/* |egrep -v '(gz|drafts|sent)' | tr '\012' ' '`

that's how i define them.  the -1 and |tr isn't really necessary, as ls outputs 
differently to a term then it does to an application.

dan 



Re: Problem with w3m as mutt pager

2002-05-11 Thread Rocco Rutte

Hi,

* Marco Fioretti [05/11/02 16:27:57 CEST] wrote:
[...]
 So, if I understand correctly, I should have

 macro pager \cw |w3m\n make urls clickable in plain text email

 macro pager \ch |w3m -Ttext/html\n display formatted HTML with w3m

 or not?

Basically, yes. But note: emails do also contain a header
which, in html mails, is before the initial html statement.
So, browsers will have problems with that.

For viewing html mails you may want to use w3m to display that
html part only instead of the whole mail.

Cheers, Rocco.



Re: How to define mailboxes ?

2002-05-11 Thread dan radom

that's what happens when i send email before that first cup of coffee.

dan

* Michael Seiwert ([EMAIL PROTECTED]) wrote:
 *On Sat, May 11, 2002 at 08:15:56AM -0600, dan radom wrote:
  * Michael Seiwert ([EMAIL PROTECTED]) wrote:
   
   Hi,
   
   how to define imap mailboxes ???
  
  
  mailboxes `ls -1 /home/graffix/mail/* |egrep -v '(gz|drafts|sent)' | tr '\012' ' '`
  
  that's how i define them.  the -1 and |tr isn't really necessary, as ls outputs 
differently to a term then it does to an application.
  
 
 
 Hi,
 
 I think that isn't the way you could to with imap mailboxes.
 
 Regards
 
 Micha 



Re: How to define mailboxes ?

2002-05-11 Thread Rocco Rutte

Hi,

* Michael Seiwert [05/11/02 16:19:05 CEST] wrote:
 *On Sat, May 11, 2002 at 08:15:56AM -0600, dan radom wrote:
  * Michael Seiwert ([EMAIL PROTECTED]) wrote:
   how to define imap mailboxes ???

  mailboxes `ls -1 /home/graffix/mail/* |egrep -v '(gz|drafts|sent)' | tr '\012' ' '`

 I think that isn't the way you could to with imap mailboxes.

Correct, for local (mbox?) only. You could try something like:

  mailbox imap://server/...

...and have a look at the archives of this list.

Cheers, Rocco.



Re: headers encoding

2002-05-11 Thread Andrey R. Urazov

On Sat, May 11, 2002 at 03:30:24PM +0200, Rocco Rutte wrote:
 | Subject: Re: =?iso-8859-1?Q?Datenm=FCll?= umwandeln
 '=FC' is the encoded character (ü).
Thanks a lot, Rocco. Now I see. And all the messages whose headers are
not encoded in such a way are displayed incorrectly. With the right
messages all is okay.

But I have found a problem. I store aliases file in UTF8 and my terminal is
set to use this encoding. But when I use Cyrillic letters in an alias as
someone's full name, it gets displayed as sequence of question marks in
Mutt index.


Yours sincerely, Andrey Urazov
-- 
Heisenberg may have been here.
--
Samstag, Mai 11, 2002, 21:46:24 +0700 - Andrey R. Urazov (mailto:[EMAIL PROTECTED])




msg27988/pgp0.pgp
Description: PGP signature


Re: headers encoding

2002-05-11 Thread Andrey R. Urazov

On Sat, May 11, 2002 at 09:52:53PM +0700, Andrey R. Urazov wrote:
 But I have found a problem. I store aliases file in UTF8 and my terminal is
 set to use this encoding. But when I use Cyrillic letters in an alias as
 someone's full name, it gets displayed as sequence of question marks in
 Mutt index.
I'm sorry. All is okay. It was my mistake.


Yours sincerely, Andrey Urazov
-- 
Copying machine, n.:
A device that shreds paper, flashes mysteriously coded messages,
and makes duplicates for everyone in the office who isn't
interested in reading them.
--
Samstag, Mai 11, 2002, 21:59:15 +0700 - Andrey R. Urazov (mailto:[EMAIL PROTECTED])




msg27989/pgp0.pgp
Description: PGP signature


Re: How to define mailboxes ?

2002-05-11 Thread Andre Berger


--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Rocco Rutte [EMAIL PROTECTED], 2002-05-11 10:48 -0400:
 Hi,
=20
 * Michael Seiwert [05/11/02 16:19:05 CEST] wrote:
  *On Sat, May 11, 2002 at 08:15:56AM -0600, dan radom wrote:
   * Michael Seiwert ([EMAIL PROTECTED]) wrote:
how to define imap mailboxes ???
=20
   mailboxes `ls -1 /home/graffix/mail/* |egrep -v '(gz|drafts|sent)' | =
tr '\012' ' '`
=20
  I think that isn't the way you could to with imap mailboxes.
=20
 Correct, for local (mbox?) only. You could try something like:

I use this for my local Maildirs:

mailboxes ! `ls $HOME/Maildir/ | tr   \n  | tr /   | grep -Ev (cur=
|tmp|new|Draft|postponed|save|posted|Sent|sent|msgid.cache) | mawk '{print=
 +$1}' | tr \n  `

It's one ugly long line, and I'm sure one could clean the code up -
but it works for me.

   mailbox imap://server/...
=20
 ...and have a look at the archives of this list.
=20
 Cheers, Rocco.

Have fun

-Andre

--sm4nu43k4a2Rpi4c
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

iD8DBQE83TNmWkhBtALlJZ0RAlj2AKDsksn9uEn9c+wCjqo/efd2j/qQiQCfbjpK
4o+ADeHeApqTqA5JBlhuyYc=
=qIu9
-END PGP SIGNATURE-

--sm4nu43k4a2Rpi4c--



Re: How to define mailboxes ?

2002-05-11 Thread Michael Seiwert


Hi all,

thank you for your help.

I solved with this config:

set spoolfile={box/ssl}inbox
set folder={box/ssl}

mailboxes =INBOX/lists/suse =INBOX/lists/kde-devel 

_Thank you_

Micha 





Re: Archiving old mail ?

2002-05-11 Thread William Park

On Sat, May 11, 2002 at 06:22:40PM +0200, Michael Seiwert wrote:
 
 Hi all,
 
 I use mutt 1.3.99i for reading, sending ... mail. I connect via ssl
 to a remote cyrus imap server.
 
 One problem I have is to archive mail ? I got a quota of 100 megs
 (thats not much when you are reading lists :-)).
 
 How did you solve this problem ??
 
 Is it clever to move mails after reading to local file based
 mailboxes ?
 
 Any suggestions ??

Why not save it to a file using Procmail?

-- 
William Park, Open Geometry Consulting, [EMAIL PROTECTED]
8-CPU Cluster, Hosting, NAS, Linux, LaTeX, python, vim, mutt, tin



Re: Archiving old mail ?

2002-05-11 Thread Will Yardley

William Park wrote:
 On Sat, May 11, 2002 at 06:22:40PM +0200, Michael Seiwert wrote:
  
  I use mutt 1.3.99i for reading, sending ... mail. I connect via ssl
  to a remote cyrus imap server.
  
  One problem I have is to archive mail ? I got a quota of 100 megs
  (thats not much when you are reading lists :-)).
  
  How did you solve this problem ??
  
  Is it clever to move mails after reading to local file based
  mailboxes ?
  
  Any suggestions ??
 
 Why not save it to a file using Procmail?

how would he do that (since the mail is on a remote imap server)...

wouldn't it be easier to tag all messages in a folder and copy them to a
local Maildir or mbox folder?

that should be fairly easy.

-- 
Will Yardley
input: william   hq . newdream . net . 




Re: Archiving old mail ?

2002-05-11 Thread Michael Seiwert

*On Sat, May 11, 2002 at 09:53:16AM -0700, Will Yardley wrote:
 William Park wrote:
  On Sat, May 11, 2002 at 06:22:40PM +0200, Michael Seiwert wrote:
   
   I use mutt 1.3.99i for reading, sending ... mail. I connect via ssl
   to a remote cyrus imap server.
   
   One problem I have is to archive mail ? I got a quota of 100 megs
   (thats not much when you are reading lists :-)).
   
   How did you solve this problem ??
   
   Is it clever to move mails after reading to local file based
   mailboxes ?
   
   Any suggestions ??
  
  Why not save it to a file using Procmail?
 
 how would he do that (since the mail is on a remote imap server)...
 
 wouldn't it be easier to tag all messages in a folder and copy them to a
 local Maildir or mbox folder?
 
 that should be fairly easy.
 


Hi,

yes, thats exactly what I want. Is it possible to tag the messages
using mutt from the commandline without open ?

Regards

Michael

 



Re: Problem with w3m as mutt pager

2002-05-11 Thread Marco Fioretti

On Sat, May 11, 2002 16:25:27 at 04:25:27PM +0200, Rocco Rutte wrote:
 Basically, yes. But note: emails do also contain a header
 which, in html mails, is before the initial html statement.
 So, browsers will have problems with that.
 
Yes, me too, I've already seen this problem: is there any known way to
make them act only on the message body?

Ciao,
Marco Fioretti

-- 
Any medium powerful enough to extend man's reach is powerful enough to
topple his world.  To get the medium's magic to work for one's aims
rather than against them is to attain literacy.
   Alan Kay, Computer Software, Scientific American, Sep. 1984