Re: Charset in Headers

2008-10-28 Thread Raphael Brunner
> my question is, sometimes I became a mail with a correct charset
> displayed in (e.g.) mozilla thunderbird, but in mutt, there are other
> strange characters in the subject, but ONLY there. Now, I think, the
> header is coded as utf8, but mutt don't know about it.
> google show that iconv is not a working solution. There are other
> solutions with a perl-script, but, I'm too less familiar with it to
> understand this.
> 
> The characters are koir-8 coded, and thunderbird show this as popup on
> any message.

note: if I save such a message in any folder and then open it with kate
(from KDE), set there the charset to cyrillic>koi8-u , then the
subject-characters are displayed correct.
what would be the cleanest solution? The most mails are western europa.

thanks.


Re: strange charset problem with german/kyrillic chars

2008-07-01 Thread Raphael Brunner
> use lots of month mutt, but one thing I can't solve. All Mails are in
>> the right charset (from russia, germany, etc...) in the pager. But,
>> in
>> the index, if there are german umlauts or kyrillic chars, they are
>> displayed as '?'.
>> 
>> in my muttrc its this:
>> set charset = 'utf-8'

> You should not need to set this explicitly if your locale is
> correct.

> try:
> set assumed_charset="windows-1252"

ok, if I comment out all charset-settings in muttrc, then the failure is
the same. If I use assumed_charset="windows-1252", then the subject
change the chars, but only to "ñ Ô" etc... (asc: 241 and 212 etc...)
before (with assumed_charset='utf-8') in the index the subject is
displayed correct except german umlauts and russian chars. If I edit the
message in vim, then the subject-line is displayed correct. only in
mutt-index and pager the charset is weird. Very strange.
If I receive a copy of the same mail with eg. mozilla-mail, there it's
displayed correct. Because that, I think, something is wrong with my
settings. 

Any Idea how to debug the next step?
Any help is welcome...
thanks a lot, raphael



unsubscribe

2008-06-27 Thread Raphael Brunner
unsubscribe



[SOLVED] Re: how to display a status-message from macros?

2008-05-19 Thread Raphael Brunner
> > > That, or putting a "set ?from" right at the 
> > > end
> > > of the macro?
> > 
> > Yes, thank you! It's exactly this. Is it also possible to display such
> > message but not a variable but only text like "now, ok..."?
> 
> :set my_var="now, ok..."
> :set ?my_var
> 
ok, now, all is clear and works fine. :) Thanks you!
raphael


Re: how to display a status-message from macros?

2008-05-19 Thread Raphael Brunner

> That, or putting a "set ?from" right at the end
> of the macro?

Yes, thank you! It's exactly this. Is it also possible to display such
message but not a variable but only text like "now, ok..."?

raphael


how to display a status-message from macros?

2008-05-18 Thread Raphael Brunner
dear users

I use macros to switch between different mail-account (sending). Now, I
change with macros F2,  F3, etc... the 'set from="[EMAIL PROTECTED]"'
this works great, but, I want to show the adress.
If in .muttrc is this "push " then it display at the start
the version-string. Is it also possible to show something like my
address from macros?
Now, I use this, but the "sleep" isn't very nice...

macro index  "set from='[EMAIL PROTECTED]'!echo "use
[EMAIL PROTECTED]";sleep 1"

is there a way to display a status-message?

Thanks for all your ideas.

Greetings, Raphael


Re: folder hooks and condition not for the first message [SOLVED]

2008-03-30 Thread Raphael Brunner
> > the command  is to delete from the selected message to
> > bottom, not like without it, to the top message.
> 
> What happens if you drop  and set $resolve?
> 

Exactly this works great! Thank you very much!

Have a nice Sunday. Raphael.


Re: folder hooks and condition not for the first message

2008-03-26 Thread Raphael Brunner


> > the command  is to delete from the selected message to
> > bottom, not like without it, to the top message.
> 
> What happens if you drop  and set $resolve?
> 
Hi Alain, I'll read it at the weekend how this work, at the moment,
I don't understand what $resolve is. But, i'll try it...

thank you for your tip.



folder hooks and condition not for the first message

2008-03-21 Thread Raphael Brunner
Dear Users

I use this folder-hook at the moment:

folder-hook 999-Trash*  'macro index d 
"";   \
 macro pager d 
""'

now, the command  is to delete from the selected message to
bottom, not like without it, to the top message.

this works good, only if I'm on the first message in the folder, then it
jumps after to the second. From then, it stays allways on the second, if
I press the "d" key. Is there any way to give a condition to the command
 to ignore, if it's the first message in the box? Or is
there any better idea?

Thank you for any idea and help.
Raphael


folder-hook to archive old messages problem

2008-01-15 Thread Raphael Brunner
Hi Users

I use the follow hook to tag old messages and save it to a
archive-folder:

folder-hook =051-Sent-Mail  
'push~r>12m!~F+052-Sent-Archive'

Now, the problem is, if there's no message to move to this folder
(because today is'nt any new message >12m), then, if I leave the folder,
mutt save just the message on top. And this message is from today! Then,
mutt ignore the date and save at least one message. And this should'nt
be!

Now, my question: Is there a simply way to solve my problem or maybe
someone want the same 'idea' behind and has a working solution?

Thank you for any idea/help!

greetings, raphael



utf8 encoding problem, but which part?

2007-10-16 Thread Raphael Brunner
hi all

my problem isn't clear for me,  what it is exactly. I became a mail from
russia with koi8-u encoding (in mailheader). My system is debian stable. In
muttrc, I defined 'set charset=utf-8', the terminal is mlterm (I tried also
xterm with the same result) and locale output (see below) shows good. Now, the
mailcontent in mutt is right, but if I reply to this (mails open with vim), then
there are strange signs there (but only the not-ascii). Regardless if I set 
':set
encoding=utf-8' in vim or not, vim don't show this characters correct. I tried
also emacs, it display exact the same like vim.
Now, I don't know where I should begin to debugging and how. Is this a
problem of my system, of my terminal, of mutt or vim? I don't know this. I
googled a lot, but because I couldn't define my problem exactly, I search in
the darkness.

Have you any idea for this?
thank you.
raphael



locale:
LANG=de_CH.UTF-8
LANGUAGE=de_CH.UTF-8:de_DE:de:en_GB:en
LC_CTYPE="de_CH.UTF-8"
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE="de_CH.UTF-8"
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES="de_CH.UTF-8"
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=


Re: mark as read and save macro don't work correctly,

2007-10-03 Thread Raphael Brunner
On Wed, Oct 03, 2007 at 01:54:48PM +0200, Christian Ebert wrote:
> * Raphael Brunner on Wednesday, October 03, 2007 at 13:14:09 +0200
> > On Tue, Oct 02, 2007 at 11:49:18PM -0500, Kyle Wheeler wrote:
> >> Hmmm, there may be a limit on the length of a macro, which might be 
> >> shorter depending on your version of mutt. That's my first guess. My 
> >> other thought would be maybe a typo somewhere?
> >> 
> > yes, this could be. But, how to findout this? I checked the whole lines
> > for type, but none was found. I tried to define the macro as macro and
> > not included in a folder-hook, but the same thing happens... 
> 
> Which version of Mutt? Older versions (before Jan 2006) do not
> support my_ variables that Kyle's script uses.
>
It's version 1.5.16-2 (from debian stable). This should be new enough,
right? The first macro work, only the second one don't and the last two
also work again. very strange...


Re: mark as read and save macro don't work correctly,

2007-10-03 Thread Raphael Brunner
On Tue, Oct 02, 2007 at 11:49:18PM -0500, Kyle Wheeler wrote:
> On Wednesday, October  3 at 12:00 AM, quoth Raphael Brunner:
> >Thanks for this idea, but now I have this:
> >
> >1. the macro 'pager d' don't work (also the same without $my_resolve).
> >It seems, since the line is longer than before, but why? I have exactly
> >your lines copied... the macros D (both) works well.
> 
> Hmmm, there may be a limit on the length of a macro, which might be 
> shorter depending on your version of mutt. That's my first guess. My 
> other thought would be maybe a typo somewhere?
> 
yes, this could be. But, how to findout this? I checked the whole lines
for type, but none was found. I tried to define the macro as macro and
not included in a folder-hook, but the same thing happens... 

???


Re: mark as read and save macro don't work correctly,

2007-10-02 Thread Raphael Brunner
On Tue, Oct 02, 2007 at 04:30:11PM -0500, Kyle Wheeler wrote:
> On Tuesday, October  2 at 11:21 PM, quoth Raphael Brunner:
> >many thanks! I changed the lines to this and it work now!
> 
> Here's an improvement:
> 
> folder-hook . 'set sort=reverse-date-received; \
>   macro index d "set 
> my_resolve=$resolveset 
> resolve=noN=999-Trashset
>  resolve=$my_resolve"; \
>   macro pager d "set 
> my_resolve=$resolveset 
> resolve=noN=999-Trashset
>  resolve=$my_resolve"; \
>   macro index D ""; \
>   macro pager D ""'
> 
> ~Kyle
> -- 
> Freedom is the right to be wrong, not the right to do wrong.
>  -- John G. Riefenbaker

Thanks for this idea, but now I have this:

1. the macro 'pager d' don't work (also the same without $my_resolve).
It seems, since the line is longer than before, but why? I have exactly
your lines copied... the macros D (both) works well.

any idea?
raphy


[SOLVED] Re: mark as read and save macro don't work correctly, why?

2007-10-02 Thread Raphael Brunner
On Tue, Oct 02, 2007 at 02:56:31PM -0500, Kyle Wheeler wrote:
> On Tuesday, October  2 at 09:35 PM, quoth Raphael Brunner:
> >folder-hook .'set sort=reverse-date-received; \
> >  macro index d 
> > "N=999-Trash^M"; \
> >  macro pager d 
> > "N=999-Trash^M" 
> >
> >now, if I press 'd' on a message, the N-flag is cleared, but the next
> >message is deleted, not the marked. is there some easy way to make this
> >macro correct?
> 
> The solution to your problem is to unset $resolve at the beginning of 
> the macro, and reset it at the end. That will prevent it from moving 
> the cursor to the next message after  executes. For more 
> information, check out the man page and search for "resolve".
> 
> ~Kyle
> -- 
> If you cannot change your mind, how can you be certain that you have 
> one?
>  -- Unknown
many thanks! I changed the lines to this and it work now!

folder-hook .   'set sort=reverse-date-received; \
 macro index d "set 
resolve=noN=999-Trash^Mset
 resolve=yes"; \
 macro pager d "set 
resolve=noN=999-Trash^Mset
 resolve=yes"; \
 macro index D ""; \
 macro pager D ""'

 raphy


mark as read and save macro don't work correctly, why?

2007-10-02 Thread Raphael Brunner
hi there

I use the following folder-hook-macro:

folder-hook .   'set sort=reverse-date-received; \
 macro index d 
"N=999-Trash^M"; \
 macro pager d 
"N=999-Trash^M" 

now, if I press 'd' on a message, the N-flag is cleared, but the next
message is deleted, not the marked. is there some easy way to make this
macro correct?

Thanks for any help.
raphy



[SOLVED]Re: how to cut attachments from mails...

2007-10-02 Thread Raphael Brunner
On Mon, Oct 01, 2007 at 04:35:59PM -0500, David Champion wrote:
> > how can I remove all attachments from a mail? The idea is, if someone
> 
> Delete them from the attachments menu.  Normally this means pressing 'v'
> while viewing the message in index or pager, scrolling to the attachment
> you don't want, and pressing 'd'.
> 
> When the folder is synced, the attachments will be gone.
> 
> -- 
>  -D.[EMAIL PROTECTED]NSITUniversity of Chicago
>  "Polka music needs to prevail."   John Ziobrowski, Polka America Corporation

thanks a lot, that works for me!


how to cut attachments from mails...

2007-10-01 Thread Raphael Brunner
Hi users

how can I remove all attachments from a mail? The idea is, if someone
send me a big mail with pictures, I save the images with 'save' and
after, I want to archive the mail-text, whithout the (big) attachments.
The simplest way is a macro in mutt to remove all attachments on the
selected mail.

Does anyone have a good and simple idea to do this?

Thanks for any replies.
raphi