archiving mail from one imap account to another

2011-02-02 Thread Hein Zelle
Dear Mutt users,

I have a local hierarchy of folders (either on an IMAP account or in ~/Maildir).
Work has set up a new IMAP account to store shared project mails in.  
I would like to have a quick shortcut to save something on the project folders 
on this new 
account, WITHOUT resetting my folder variable.  I need to access both ~/Maildir 
and the 
other imap account for browsing and copying of emails.

So, what I would like is something like a second "=" variable or another 
shortcut:

1) change to source folder

c=projects/testproject

2) tag mails to copy

3) copy them, by browsing to the relevant target folder on the projects IMAP 
account, 
   something like this:

;C$proj/


Step 3 is where I'm lost.  I can't use =projects/ to get a folder list, as 
= points 
to my ~/Maildir directory.  If I reset = to point to the projects account, I 
can't access 
my source folders anymore.

Is there a way to set up a secondary shortcut to refer to something like

imap://my.username@some.remote.server/INBOX

so I can use it in a copy command just like the = folder?

I suppose I can try to write a macro that temporarily overrides the = folder 
and sets it 
back afterward.  Any tips appreciated!


Kind regards,

Hein Zelle



viewing the result of piping a message in mutt

2011-02-02 Thread Joost Kremers
hi all,

when i pipe a message through an external command, the output is written to a
file. is there a way to have the output displayed in mutt itself, similar to
viewing attachments in-line?

TIA

joost


-- 
Joost Kremers, PhD
University of Göttingen
Institute for German Philology
Käte-Hamburger-Weg 3
37073 Göttingen, Germany
Tel. +49 551 39 4467


Re: moving to Mutt from Gmail

2011-02-02 Thread Aaron Toponce
On Sun, Dec 26, 2010 at 02:37:18PM +0100, Gregor Zattler wrote:
> Hi Dale, mutt users,
> * Dale A. Raby  [25. Dec. 2010]:
> > Why not use Gmail's own spam filter to eliminate the spam?  It
> > works pretty well and doesn't require you to use or maintain
> > SpamAssassin.  Use Mutt with IMAP and the messages will stay on
> > the practically limitless storage space of Gmail's server.
> 
> He'll then loos control over *his* emails...  On his computer he
> has physical controll over them.

No, he won't. Google firmly believes it's your mail, not theirs. See
http://www.dataliberation.org/google/gmail.

-- 
. o .   o . o   . . o   o . .   . o .
. . o   . o o   o . o   . o o   . . o
o o o   . o .   . o o   o o .   o o o


signature.asc
Description: Digital signature


Open html messages with Firefox

2011-02-02 Thread Gabriel Chavez

I've been looking around for a way to open my html emails with Firefox
but I still don't know how to do it. Is there a way to do it?
-- 
Gabriel Alejandro Chávez Gutiérrez


Re: Open html messages with Firefox

2011-02-02 Thread Paul Tansom
** Gabriel Chavez  [2011-02-02 16:21]:
> I've been looking around for a way to open my html emails with Firefox
> but I still don't know how to do it. Is there a way to do it?
** end quote [Gabriel Chavez]

I was sure I had a configuration in my .muttrc directory (I've split into
multiple files in a directory), but I must be mis-remembering! It works out of
the box on my Ubuntu install, and the magic looks to be in the mailcap
configuration file in /etc, although you can also do it with a local .mailcap
in your home directory. The relevant line in my config is:

text/html; /usr/bin/sensible-browser '%s'; description=HTML Text; 
nametemplate=%s.html

although you could specify Firefox directly if you like, rather than using the
system default. My default is Firefox, except when Chrome updates and I have to
put some of the settings back (regular enough that I have a script for it!).

-- 
Paul Tansom | Aptanet Ltd. | http://www.aptanet.com/ | 023 9238 0001
==
Registered in England  |  Company No: 4905028  |  Registered Office:
Crawford House, Hambledon Road, Denmead, Waterlooville, Hants, PO7 6NU


Re: Open html messages with Firefox

2011-02-02 Thread Gabriel Chavez
On Wed, Feb 02, 2011 at 04:46:40PM +, Paul Tansom wrote:
> ** Gabriel Chavez  [2011-02-02 16:21]:
> > I've been looking around for a way to open my html emails with Firefox
> > but I still don't know how to do it. Is there a way to do it?
> ** end quote [Gabriel Chavez]
> 
> I was sure I had a configuration in my .muttrc directory (I've split into
> multiple files in a directory), but I must be mis-remembering! It works out of
> the box on my Ubuntu install, and the magic looks to be in the mailcap
> configuration file in /etc, although you can also do it with a local .mailcap
> in your home directory. The relevant line in my config is:
> 
> text/html; /usr/bin/sensible-browser '%s'; description=HTML Text; 
> nametemplate=%s.html
> 
> although you could specify Firefox directly if you like, rather than using the
> system default. My default is Firefox, except when Chrome updates and I have 
> to
> put some of the settings back (regular enough that I have a script for it!).
> 
I tried but it doesn't not work. I read the mutt documentation and
tried also:
text/html;  firefox -remote 'openURL(%s)' ; test=RunningX

But it does not work. I get the following error message:
mailcap entry for type text/html not found 

I don't get if I use command-line program like lynx.
Maybe it's a problem with the display variable? I'll keep looking.
> -- 
> Paul Tansom | Aptanet Ltd. | http://www.aptanet.com/ | 023 9238 0001
> ==
> Registered in England  |  Company No: 4905028  |  Registered Office:
> Crawford House, Hambledon Road, Denmead, Waterlooville, Hants, PO7 6NU

-- 
Gabriel Alejandro Chávez Gutiérrez


Re: Open html messages with Firefox

2011-02-02 Thread Grant Edwards
On 2011-02-02, Gabriel Chavez  wrote:

> I've been looking around for a way to open my html emails with Firefox
> but I still don't know how to do it. Is there a way to do it?

Here's what I use in .printcap.  Normally w3m is used inside mutt's
pager.  If I want to open an html e-mail in firefox I tell mutt to
"print" it:

text/html; w3m -T text/html -dump; copiousoutput; print = firefoxurl %s;

firefoxurl is a script that opens a url in a new tab if firefox is
already running, otherwise it starts firefox:

#!/bin/bash
MRC="firefox -remote"
URL="$1"
CMD="${2:-new-tab}"
echo "$0 '$1' '$2'" >/dev/tty
test -f "$URL" && URL="file://$URL"
expr match "$URL" '.*://.*' >/dev/null || URL="http://$URL";
if $MRC 'ping()' 2>/dev/null ; then
  echo  'firefox already running'
  echo   $MRC "openURL($URL,$CMD)"
  $MRC "openURL($URL,$CMD)"
else
  echo  'firefox not running'
  echo   firefox "$URL"
  firefox "$URL"
fi  


-- 
Grant Edwards   grant.b.edwardsYow! If elected, Zippy
  at   pledges to each and every
  gmail.comAmerican a 55-year-old
   houseboy ...



Attach-header uses assumed_charset, but why?

2011-02-02 Thread Joost Kremers
hi all,

i'm using a utf-8 locale, which works very smoothly with mutt. there is one
thing, however, that i find a bit strange. if i add a (pseudo-)header Attach: to
an email message, mutt isn't able to find the file if the file path contains
non-ascii characters. instead, i get the following error message:

~/Ã?bungen DGS Gruppe.pdf: unable to attach file

the filename actually starts with Ü (U-umlaut), not with Ã?. it seems that mutt
treats the filename as iso-8859-1 rather than utf-8. (btw, my editor obviously
writes utf-8 encoded files, and the body of the message is treated properly by
mutt.)

the only iso-8856-1 related setting i have in my .muttrc is the following:

set assumed_charset = "iso-8859-15:iso-8859-1:utf-8"

unsetting assumed_charset gets rid of the problem. so this means that mutt reads
an Attach-header from a file it knows (or at least assumes correctly) to be
utf-8 encoded, but then checks assumed_charset to guess a charset for the file
path in the Attach-header.

wouldn't it make more sense in this case for mutt to just use the encoding of
the body text? after all, the header and body text are in the same file...

btw, i'm using edit_headers=yes, if that wasn't obvious. :-)

TIA

joost


-- 
Joost Kremers, PhD
University of Göttingen
Institute for German Philology
Käte-Hamburger-Weg 3
37073 Göttingen, Germany


Re: Open html messages with Firefox

2011-02-02 Thread Gabriel Chavez
On Wed, Feb 02, 2011 at 05:38:50PM +, Grant Edwards wrote:
> On 2011-02-02, Gabriel Chavez  wrote:
> 
> > I've been looking around for a way to open my html emails with Firefox
> > but I still don't know how to do it. Is there a way to do it?
> 
> Here's what I use in .printcap.  Normally w3m is used inside mutt's
> pager.  If I want to open an html e-mail in firefox I tell mutt to
> "print" it:
> 
> text/html; w3m -T text/html -dump; copiousoutput; print = firefoxurl %s;
> 
> firefoxurl is a script that opens a url in a new tab if firefox is
> already running, otherwise it starts firefox:
> 
> #!/bin/bash
> MRC="firefox -remote"
> URL="$1"
> CMD="${2:-new-tab}"
> echo "$0 '$1' '$2'" >/dev/tty
> test -f "$URL" && URL="file://$URL"
> expr match "$URL" '.*://.*' >/dev/null || URL="http://$URL";
> if $MRC 'ping()' 2>/dev/null ; then
>   echo  'firefox already running'
>   echo   $MRC "openURL($URL,$CMD)"
>   $MRC "openURL($URL,$CMD)"
> else
>   echo  'firefox not running'
>   echo   firefox "$URL"
>   firefox "$URL"
> fi  
> 
Your script works like a charm. Thank you very much.

-- 
Gabriel Alejandro Chávez Gutiérrez


Re: viewing the result of piping a message in mutt

2011-02-02 Thread Brian Salter-Duke
On Wed, Feb 02, 2011 at 01:27:34PM +0100, Joost Kremers wrote:
> hi all,
> 
> when i pipe a message through an external command, the output is written to a
> file. is there a way to have the output displayed in mutt itself, similar to
> viewing attachments in-line?

It is a function of the external command. It seems that is writing to a
file. So change the external command to write to STOUT.

Brian.
 
> TIA
> 
> joost
> 
> 
> -- 
> Joost Kremers, PhD
> University of Göttingen
> Institute for German Philology
> Käte-Hamburger-Weg 3
> 37073 Göttingen, Germany
> Tel. +49 551 39 4467

-- 
"The PROPER way to handle HTML postings is to cancel the article, then
hire a hitman to kill the poster, his wife and kids, and fuck his dog
and smash his computer into little bits. Anything more is just extremism."
-- Paul Tomblin
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: archiving mail from one imap account to another

2011-02-02 Thread Michelle Konzack
Hello Hein Zelle,

> Is there a way to set up a secondary shortcut to refer to something like
> 
> imap://my.username@some.remote.server/INBOX

This was working many years ago when I used Debian/Woody but since Sarge
it does not more work.

"mutt" ignore the USERNAME@ part and you can  not  more  copy  from  one
account to another, except it is another machine where you have the same
login name AND password.  I have alread reported this bug to the  Debian
BTS since it is VERY annoying.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL   itsystems@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

  
 

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature