Re: NNTP ?

2019-11-12 Thread Jostein Berntsen
On 12.11.19,16:32, Will Yardley wrote:
> On Tue, Nov 12, 2019 at 09:49:41PM +0100, Xavier Maillard wrote:
> > 
> > So, I just started my trip in the Mutt world. So far, I like it. Just
> > a quickie: does mutt support NNTP as well ?
> 
> Without a patch, I don't think so.
> 
> I haven't had a usenet feed for a long time, but a lot of mutt users use
> things like SLRN.
> 
> w

The most recent nntp patch seems to be here:

https://mutt.org.ua/download/mutt-1.12.1/
https://mutt.org.ua/download/
http://andreberger.eu/?p=68

Some install instructions in German here:

http://www.strcat.de/eigenes/mutt.html


Jostein


Re: Hang on startup

2018-10-15 Thread Jostein Berntsen
On 15.10.18,14:56, Ben Boeckel wrote:
> Hi,
> 
> I've been experiencing this for a while and I'd like to get to the
> bottom of it. When starting `mutt`, sometimes it hangs for a long time
> before drawing the UI (input is appropriately buffered though). Is there
> some network call done on startup or other I/O (`strace` shows that it
> is in the middle of a `poll` call when it is hanging) that might be
> timing out? Currently using 1.10.1, but I've been seeing it for a while
> now, so it isn't new behavior.
> 

Can you start mutt with "mutt -d 2" and see if you get more information 
then? 

Check first that your mutt is compiled with DEBUG though:

mutt -v | grep DEBUG


Jostein


Re: Is collapse subthread possible?

2018-02-26 Thread Jostein Berntsen
On 27.02.18,08:08, Yubin Ruan wrote:
> Such a feature would be nice for reading threads which contains lots of
> messages. 
> 
> Yubin
> 

You can use Alt-v to collapse and open a sub-thread and Alt-V to 
collapse and open all sub-threads.


Jostein 


Re: group reply

2016-09-26 Thread Jostein Berntsen

On 26.09.16,14:38, Jon LaBadie wrote:

On Mon, Sep 26, 2016 at 02:02:24PM -0400, Guy Gold wrote:

A shot in the dark..(and eventhough you inspected the headers_ :)

Nothing odd set into the "reply to:" header on the original
message ?


None present in original message.



What happens if you do "R" instead?

Jostein



jl


On Sun,Sep 25 07:35:PM, Jon LaBadie wrote:
> I don't recall this happening before.  I replied to
> a message using 'g' and the message author was not
> included in the list of recipients of my reply.
>
> I did not notice the omission until the author
> mentioned she did not get my reply.  But I went
> back to the original message and typed 'g' and
> she is not in the recipient list.
>
> Another oddity, I had trouble finding the original
> message to run the test.  Turns out saving that
> message saved it to the first recipients file
> rather than the authors file.
>
> I don't see anything strange in the headers, but ...
>
> Any clue what might cause this?
>
> Jon
> --
> Jon H. LaBadie j...@jgcomp.com
>  11226 South Shore Rd.  (703) 787-0688 (H)
>  Reston, VA  20190  (703) 935-6720 (C)
>

--
Guy Gold
Cambridge, Massachusetts

End of included message <<<


--
Jon H. LaBadie j...@jgcomp.com
11226 South Shore Rd.  (703) 787-0688 (H)
Reston, VA  20190  (703) 935-6720 (C)



Re: Sidebar patch - where can I find user instructions for using it?

2016-09-07 Thread Jostein Berntsen

On 07.09.16,15:50, Chris Green wrote:

I have a login (as in ssh login) account on a system where they have
just changed to using mutt with the sidebar patch.  It's mutt 1.5.23
on a Debian 8 system.

Are there instructions for using the patch anywhere?  I use mutt
(unpatched) at home so I know all the basics but at the moment I can't
make the sidebar do anything.



Check the Documentation section in this link:

http://www.lunar-linux.org/mutt-sidebar/

THe sidebar is also now a standard feature in the new mutt 1.7.0:

http://www.mutt.org/doc/UPDATING


Jostein



Re: mutt does not more purge deleted messages

2016-01-28 Thread Jostein Berntsen

On 29.01.16,00:08, Michelle Konzack wrote:

Good evening,

I do not know, what I have done, but since arround 6  hours,  mutt  does
not purge deleted messages IF I access a "Maildir" localy without IMAP!

   set delete=ask-yes

is unchanged for ages and it works perfectly with GMail my Intranet- and
public Mail-Server.

"$" does not work anymore for local directories...

Any suggestions what I could have doen wrong?

Note:   I accidentally deleted a backup of mu ~/.mutt/ folder,
   hence no recovery possibel.



Have some updates happened on your system recently? Some things to check:

- Do you use mutt with the trash patch? 
http://cedricduval.free.fr/mutt/patches/#trash

- Upgrade mutt to v. 1.5.23 to get a version with man bug fixes
- Restart your mail server?
- Check your system/mail logs if anything happened around 6 hours ago


Jostein


Re: How do I kill these posts?

2014-12-15 Thread Jostein Berntsen
On 15.12.14,16:08, John Long wrote:
> Yahoogroups mangles the From: headers badly and Mutt doesn't seem to want to
> listen to me when I tell him to score using ~f or ~e. Is there a (better)
> way to score this? 
> 
> Here is a sample From: header
> 
> From: "phoney bologna bolognapho...@hotmail.com [bademails]" 
> 
> 
> score '~f bolognapho...@hotmail.com' -100  # doesn't work
> score '~e bolognapho...@hotmail.com' -100  # doesn't work
> 
> I can't kill everything with the address of badema...@yahoogroups.com
> because then I won't see anything posted to the group. 
> 
> Any ideas? Thanks.
> 

Does this work?

score '~f bolognaphoney' -100

Jostein



Re: How do I kill these posts?

2014-12-15 Thread Jostein Berntsen
On 15.12.14,16:08, John Long wrote:
> Yahoogroups mangles the From: headers badly and Mutt doesn't seem to want to
> listen to me when I tell him to score using ~f or ~e. Is there a (better)
> way to score this? 
> 
> Here is a sample From: header
> 
> From: "phoney bologna bolognapho...@hotmail.com [bademails]" 
> 
> 
> score '~f bolognapho...@hotmail.com' -100  # doesn't work
> score '~e bolognapho...@hotmail.com' -100  # doesn't work
> 
> I can't kill everything with the address of badema...@yahoogroups.com
> because then I won't see anything posted to the group. 
> 
> Any ideas? Thanks.
> 

Can you rewrite these headers with formail and then score them?

Jostein



Re: Bold font in Sent listing

2013-08-13 Thread Jostein Berntsen
On 07.08.13,03:05, David Woodfall wrote:
> I find some mail entries are bold in 'Sent' and some not, but I can't
> find any reason why they should be.
> 
> set index_format="%3C %Z %[!%d/%m/%y] %-20.20t  %s"
> 
> Anything it that that would cause bold fonts?
> 
> I'd rather not have them if possible.
> 

If you have color settings in muttrc with bright in the color name, they might 
be
displayed as bold:

color body brightblue white regex

Check that with:

grep color ~/.muttrc | grep bright


Jostein




Re: Limit view to mails with no subject

2013-03-07 Thread Jostein Berntsen
On 07.03.13,20:30, Rado Q wrote:
> =- Jostein Berntsen wrote on Thu  7.Mar'13 at 17:43:38 +0100 -=
> 
> > Is is possible to limit the view to mails that have nothing in the subject?
> 
> Try '!~s .' or '~s "^[ ]*$"'
> 

The first command works great. Thanks!

Jostein




Limit view to mails with no subject

2013-03-07 Thread Jostein Berntsen
Hi,

Is is possible to limit the view to mails that have nothing in the subject?

Jostein


Re: mutt deletes attachement before libreoffice tries to open it

2012-04-26 Thread Jostein Berntsen
On 26.04.12,08:07, Marcelo Luiz de Laia wrote:
> On Thu, 26 Apr 2012, Jostein Berntsen wrote:
> 
> > It seems like most of your entries are bound to openoffice(soffice) instead
> > of libreoffice. Try to change all entries to libreoffice instead.
> > 
> > Jostein
> > 
> 
> Thank you very much, but, it dosen't solve that problem.
> 
> If libreoffice is alread running, I coundn't open the attachment.
> 

Could you try use mutt_bgrun with you mailcap entries?

Enter this script into your path:

https://github.com/jgm/scripts/blob/master/mutt_bgrun

and entries like these in your mailcap file:

application/msword; mutt_bgrun libreoffice3.5 %s; 
#test=RunningXapplication/vnd.msword; mutt_bgrun libreoffice3.5 %s; 
#test=RunningX
application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/excel;  mutt_bgrun libreoffice3.5 %s; #test=Running
application/msexcel;mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/excel;  mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/msexcel;mutt_bgrun libreoffice3.5 %s; #test=Running
application/vnd.ms-excel;   mutt_bgrun libreoffice3.5 %s; #test=Running
application/vnd.ms-excel;   mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-excel;mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-excel;mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-msexcel;  mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/ms-Excel;   mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;  
mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/vnd.openxmlformats; mutt_bgrun libreoffice3.5 %s; 
application/vnd.ms-powerpoint;  mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-mspowerpoint; mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/ppt;mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/pdf; mutt_bgrun okular %s; #test=RunningX
application/postscript; mutt_bgrun ghostview %s; #test=RunningX
application/rtf;mutt_bgrun libreoffice3.5 %s; #test=RunningX
image/*;mutt_bgrun okular %s;# test=RunningX
image/*;mutt_bgrun gwenview %s;#test=RunnningX  


Jostein



Re: mutt deletes attachement before libreoffice tries to open it

2012-04-26 Thread Jostein Berntsen
On 26.04.12,06:17, Marcelo Luiz de Laia wrote:
> On Thu, 26 Apr 2012, Jostein Berntsen wrote:
> 
> > On 25.04.12,18:12, Marcelo Luiz de Laia wrote:
> > > On Wed, 25 Apr 2012, David Haguenauer wrote:
> > > 
> > > > > Sometime I got the same problem here. However, I see that I only get
> > > > > this issue when libreoffice is already running!
> > > > 
> > > > I believe this is a different issue. What probably happens in your
> > > > in your case ...
> > > 
> > > > ... if LibreOffice is already running, Mutt's call does
> > > > not start a new instance; rather, the second invocation returns very
> > > > quickly after forwarding the filename to the existing LibreOffice
> > > > instance: there is a race condition between Mutt (that deletes the
> > > > attachment file) and LibreOffice (that tries to open it).
> > > 
> > > 
> > > Yes! You are right! This is a different issue and mutt deletes the
> > > attachment before libreoffice tries to open it.
> > > 
> > > So, I have oppened a new thread.
> > > 
> > 
> > Could you post the output of this command?
> > 
> > egrep "vnd|word" ~/.mailcap
> > 
> > 
> > Jostein
> 
> Please, found it here:
> 
> http://pastebin.com/J0WXpmtz
> 
> My mailcap is into ~/.mutt/mailcap
> 

It seems like most of your entries are bound to openoffice(soffice) instead
of libreoffice. Try to change all entries to libreoffice instead.

Jostein




Re: mutt deletes attachement before libreoffice tries to open it

2012-04-26 Thread Jostein Berntsen
On 25.04.12,18:12, Marcelo Luiz de Laia wrote:
> On Wed, 25 Apr 2012, David Haguenauer wrote:
> 
> > > Sometime I got the same problem here. However, I see that I only get
> > > this issue when libreoffice is already running!
> > 
> > I believe this is a different issue. What probably happens in your
> > in your case ...
> 
> > ... if LibreOffice is already running, Mutt's call does
> > not start a new instance; rather, the second invocation returns very
> > quickly after forwarding the filename to the existing LibreOffice
> > instance: there is a race condition between Mutt (that deletes the
> > attachment file) and LibreOffice (that tries to open it).
> 
> 
> Yes! You are right! This is a different issue and mutt deletes the
> attachment before libreoffice tries to open it.
> 
> So, I have oppened a new thread.
> 

Could you post the output of this command?

egrep "vnd|word" ~/.mailcap


Jostein


Re: can't read attached file docx

2012-04-25 Thread Jostein Berntsen
On 25.04.12,17:53, Gerard ROBIN wrote:
...
> ensure that it matches what you have in your mailcap.
> 
> Chris
> =
> I did this experiment:
> 
> 1 I saved the attached file Cher.docx (that I see correctly with libreoffice.)
> 
> 2 I sent to myself a message with the file Cher.docx as an attachment.
> 
> 3 I downloaded this message, the I opened the attached file (in mutt)
> and this time it is libreoffice that opens the file Cher.docx. (as expected)
> 
> Conclusion:
> it is the one who sends me the message that causes the problem.
> 
> Is my reasoning correct ?
> 
> Macelo
> ==
> 
> I encounter the same problem as you:
> 
> If a file is already open with libreoffice I can not open the 
> attachment Cher.docx (with mutt) I get the message of libreoffice:
> /home/user/.tmp/Cher.docx doesn't exist.
> 
> But when I close libreoffice I can read the file Cher.docx with 
> libreoffice (with mutt as an attachment)
> 

I have these entries for docx files in my ~/.mailcap:

application/vnd.msword; mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
mutt_bgrun libreoffice3.5 %s; #test=RunningX

You might check out the mutt_bgrun script as well to make it work.

Jostein






Re: mutt-kz

2012-04-24 Thread Jostein Berntsen
On 24.04.12,12:04, Derek Martin wrote:
> Has anyone tried mutt-kz?  
> 
>   https://github.com/karelzak/mutt-kz/wiki
> 
> I'd be interested to hear anyone's experiences...
> 

Well, I have not tried this, but notmuch is a great tool and this looks like
a good one. :)

Jostein




Re: How do I change ~/Mail to something else like for instance ~/mail ?

2012-01-23 Thread Jostein Berntsen
On 23.01.12,08:20, pecon...@mesanetworks.net wrote:
> I have been using Mutt for several years. I recently had a major failure on 
> my desktop machine, and purchased a new (to me) replacement. The hard drives 
> from the old machine and the data on them survived the failure. I have put 
> them into boxes that turn them into USB drives and have all my old 
> configuration files for Mutt, fetchmail, and procmail. But things are not 
> going well. I want to receive my mail into a different place while I debug, 
> so the question in the Subject: line.
> 
>  How do I change ~/Mail to something else like for instance ~/mail ?
>

You can set this value in your .muttrc:

set folder="~/mail"


Jostein


Re: font setting

2012-01-23 Thread Jostein Berntsen
On 23.01.12,13:27, Paul wrote:
> On Sunday, 22 January, 2012 at 18:35:52 GMT, Ravi Uday wrote:
> >When I compose my view my editior is set as vim.
> >How can I automatically set the color and font type in my outgoing
> >mails when I use mutt
> >to send emails. Like i need all my msgs in blue, italisize and font=ariel.
> 
> There are a few ways (best ask on the vim mailing list if you want more), but 
> the most direct way would be to pass vim the settings that you want, from 
> your .muttrc:
> 
> set editor="vim -c 'set font=ariel etc'"
> 
> or put the commands into ~/.vim/ftplugin/mail.vim and, in .muttrc:
> 
> set editor="vim -c 'set ft=mail'"

Have you an example on how this is set in mail.vim? Could not find this
information.

Jostein


Re: How to change To: address programatically?

2012-01-15 Thread Jostein Berntsen
On 15.01.12,17:59, Chris Green wrote:
> I asked about this a while ago but, having played with various send-hook
> ideas I haven't managed to do what I need to do.
> 
> I have a mailing list where in some cases, when I L[ist reply] the To:
> address ends up as follows:-
> 
> To: ix...@ixiemaster.ixion.co.uk, ix...@ixion.co.uk
> 
> When this happens I want to change the To: addres to just:-
> 
> To: ix...@ixion.co.uk
> 
> (or the other one with ixiemaster in it, doesn't really matter).
> 
> I can't see any way to prevent the generation of the double address, it
> happens because mutt sees two list addresses in the headers and that's
> just an idiosyncrasy of the list that I can do nothing about.  I can't
> set my lists/subscribe to just one of ix...@ixiemaster.ixion.co.uk or
> ix...@ixion.co.uk because then I won't see all messages as being list
> messages. 
> 
> So, I want a way to edit the header before sending the message if it has
> the two addresses as above.  I can hook the message easily enough but
> doing something like:-
> 
> send-hook '~t ixion' 'my_hdr To: ch...@halon.org.uk'
> 
> just *adds* ch...@halon.org.uk to the To: header, it doesn't replace the
> existing addresses there.  
> 
> Is there no way to *replace* a header (it's generated by mutt so why not)?
> 

You can enter this in your .muttrc:

alias identity_1  

macro compose V "^Uidentity_" "Select to"

So whenever you get two addresses in the to-field you can select the one you
want by entering "V" in the compose mode. 

Jostein


Re: mutt 1.5.21 && mailcap && text/html

2012-01-03 Thread Jostein Berntsen
On 03.01.12,14:23, Matthias Apitz wrote:
> El día Tuesday, January 03, 2012 a las 08:16:56AM -0500, Patrick Shanahan 
> escribió:
> 
> > * Matthias Apitz  [01-03-12 08:10]:
> > > El día Tuesday, January 03, 2012 a las 07:58:20AM -0500, Patrick Shanahan 
> > > escribió:
> > > 
> > > > try: text/html;firefox -new-window %s\;exit 1; \
> > > > nametemplate=%s.html; test=test -n "$DISPLAY"
> > > > 
> > > > one line broken after "exit 1;" for display
> > > 
> > > thanks; but gives as well: mailcap entry for type text/html not found
> > 
> > do you still have a line with *only*:  text/thml
> > remove it:
> 
> here is what I have in ~/,mailcap file:
> 
> $ fgrep text .mailcap
> # text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html
> text/html;firefox3 -new-window %s\;exit 1; nametemplate=%s.html; test=test -n 
> "$DISPLAY"
> # text/html; firefox3 %s
> # text/html; mozilla %s; copiousoutput; nametemplate=%s.html
> # text/html; kfmclient newTab %s; copiousoutput; nametemplate=%s.html
> # text/html; /home/guru/konquNewTab.sh %s; copiousoutput; nametemplate=%s.html
> # text/html; opera -remote 'openURL(%s,new-page)'; copiousoutput; 
> nametemplate=%s.html
> 

Try this line instead and do "m" on the html file in the attachment view:

text/html; /usr/bin/firefox %s;exit 1; nametemplate=%s.html; test=test -n 
"$DISPLAY"

Jostein




Re: Unmarking new unread messages as N

2011-12-15 Thread Jostein Berntsen
On 15.12.11,11:56, Haines Brown wrote:
> I hope this is not a FAQ and does not seem too odd. 
> 
> I frequently check the mutt index for new messages (marked "N"). I 
> mark some to be deleted ("D"), but put off reading other new messages 
> until I can break from work at some point in the course of the day in 
> order to process them all at one time. So I would like to change the 
> new ("N") status of those messages to (" ") without having to view 
> their content. Can this be done?
> 

You should be able to do this by doing "N" on the new message.

Jostein




Re: Named tags/lables?

2011-11-04 Thread Jostein Berntsen
On 04.11.11,09:44, Tim Gray wrote:
> On Nov 03, 2011 at 03:43 PM -0500, David Champion wrote:
> >If you use X-labels heavily and are comfortable building
> >mutt from source I encourage you to take a look at
> >https://bitbucket.org/dgc/mutt-dgc/qseries and apply at least up to the
> >complete-pattern-y patch.
> 
> I wouldn't mind trying this out, but I'm a little unclear how to
> apply the patches.  I normally build mutt from the hg sources...
> 
> Furthermore, what would really add to mutt in my mind is some 'smart
> folder' capability.  Anyone who uses a Mac and is on OS X 10.7
> should take a look at the new Mail.app.  The smart folders (saved
> searches) are pretty nice in my opinion and are very fast.  Coupled
> with a labels scheme such as the one you wrote about, you have
> something that competes with gmail/notmuch/sup without fooling
> around with IMAP standards or running an email client from within
> emacs.

If you use mu search you can easily save your search to a new search folder by
just changing the folder path. Standard mu search:

mu find --clearlinks --format=links --linksdir=~/mail/search 


Jostein


 






Re: Named tags/lables?

2011-11-03 Thread Jostein Berntsen
On 03.11.11,10:05, Edward Morbius wrote:
> Is there any facility similar to Gmail's named tags (other than
> folders) for mutt?
> 
> I'd like to be able to add (multiple) labels to a given message,
> possible automatically (procmail, some imap tool, mutt folder hooks),
> have mutt be aware of defined labels, and be able to quickly filter
> messages by labels (including and/or/not Boolean logic).
> 
> That and/or a global search tool (and yes I'm aware that several of
> these exist) would be great adds for mutt.
> 
> If there are existing tricks / tools that accomplish same, I'd
> appreciate seeing them.
> 

I use the editlabel scriptand the setup at this site:

http://blitiri.com.ar/p/other/mutt-labels/

This adds labels to the X-Label field, and it is easy to limit the view
to a specific tag. 

For global search you can use the "mu" search tool which can search in
the X-label field over several mailboxes and return the result promptly:

http://www.djcbsoftware.nl/code/mu/


Jostein





Re: external file manager

2011-10-27 Thread Jostein Berntsen
On 27.10.11,18:59, Christian Brabandt wrote:
> Hi Jostein!
> 
> On Do, 27 Okt 2011, Jostein Berntsen wrote:
> 
> > I get the attach file question but entering a space or a directory
> > does not bring up ranger. I have filebrowser setting in .vimrc and
> > install the plugin by vimball.
> 
> The vimball hasn't been updated yet. Hm, let me update it. Okay, please 
> try the CheckAttach.vmb from the repository.
> 

Thanks. I tried to source the vmb file now from the updated repository, but the
same result with no ranger. 


Jostein


Re: external file manager

2011-10-27 Thread Jostein Berntsen
On 27.10.11,12:28, Christian Brabandt wrote:
> On Thu, October 27, 2011 12:05 pm, Jostein Berntsen wrote:
> > On 26.10.11,23:32, Christian Brabandt wrote:
> >> Yes that is me. Try the version from github and be sure to have
> >> :let g:checkattach_filebrowser='ranger' in your .vimrc. That should
> >> be all you need.
> >
> > That is great, I downloaded the version from git now. Could you show
> > how the interface to ranger is meant to work? When I have a keyword
> > "Attach" in a mail, Checkattach asks for a file or Enter empty if no
> > attach, but I did not see anyway to get to ranger from there.
> 
> Either enter a space (so it is not empty) and ranger will start from
> your current directory, or enter a directory, in which ranger will be
> started (provided that the variable g:checkattach_filebrowser is
> defined, of course).
> 
> May be I can make it more obvious.

I get the attach file question but entering a space or a directory does not
bring up ranger. I have filebrowser setting in .vimrc and install the plugin by
vimball.


Jostein




Re: external file manager

2011-10-27 Thread Jostein Berntsen
On 26.10.11,23:32, Christian Brabandt wrote:
> Hi Sebastian!
> 
> On Mi, 26 Okt 2011, Sebastian Tramp wrote:
> 
> > On Wed, Oct 26, 2011 at 09:52:55AM +0200, Christian Brabandt wrote:
> > > Would there be interest, to implement an interface to range in the
> > > previously mentioned Vim-Plugin?
> > 
> > +1 :) - I already use your CheckAttach extension as a submodule from
> > your repo [1] (assuming you are chrisbra :) - and this would be a great
> > enhancement of the extension.
> 
> Yes that is me. Try the version from github and be sure to have
> :let g:checkattach_filebrowser='ranger'
> in your .vimrc. That should be all you need.
> 

That is great, I downloaded the version from git now. Could you show how the
interface to ranger is meant to work? When I have a keyword "Attach" in a mail,
Checkattach asks for a file or Enter empty if no attach, but I did not see
anyway to get to ranger from there. 


Jostein


Re: external file manager

2011-10-26 Thread Jostein Berntsen
On 26.10.11,09:52, Christian Brabandt wrote:
> On Wed, October 26, 2011 8:43 am, Volker Bouffier wrote:
> >>call append(6, map(readfile('/tmp/chosenfiles'), '"Attach:
> >> ".substitute(v:val,''\s'',''\\ '',"g")'))
> >
> > Sorry, this wasn't correct. But I think the following line should do it.
> > call append(6, map(readfile('/tmp/chosenfiles'), '"Attach:
> > ".substitute(v:val,''\(\s\)'',''\\\1'',"g")'))
> >
> > But who uses file names with tab characters?
> 
> You should possibly also escape the '\'. I think a better approach
> would be:
> 
> call append(6, map(readfile('/tmp/chosenfiles'), '"Attach:
>  ".escape(v:val, " \t\\")'))
> 
> (or something like this, haven't tested it)
> 
> Would there be interest, to implement an interface to range in the
> previously mentioned Vim-Plugin?
> 

I would dig that! :thumbsup:


Jostein




Re: external file manager

2011-10-23 Thread Jostein Berntsen
On 21.10.11,12:37, Volker Bouffier wrote:
> > " mutt: insert attachment                                                   
> >                                                                             
> >                                  
> 
> > Do you have a way to empty the registry as well from the last use of
> > this function so it does not paste the previous file instead of the new
> > one? Tried different ways for that like ':let @a=""', but it did not work.
> I'm very sorry I cannot understand. Can you explain in more detail what's 
> going wrong?
> 

If I use the function a second time it inserts the file I selected the previous
time instead of the new file. It seems like the registry remembers the last
selection, and does not give place for the new selection.


Jostein




Re: external file manager

2011-10-21 Thread Jostein Berntsen
On 20.10.11,15:36, Volker Bouffier wrote:
> 
> 
> 
> 
> - Ursprüngliche Message -
> Von: du yang 
> An: mutt-users@mutt.org
> Cc: 
> Gesendet: 15:22 Donnerstag, 20.Oktober 2011 
> Betreff: Re: external file manager
> 
> On Thursday 10/20/11 20:09:26 CST, Volker Bouffier wrote:
> > There have had solutions for file attaching like so.
> > For emacs, post-mode can do that.
> > As I know, the solution is mainly for the problem poeple often forget 
> > attaching
> > files with mutt.;-)
> I've inserted a small vim macro in my .vimrc, which does what I want:
>   " mutt: insert attachment
>   fun! RangerMuttAttach()
>       silent !ranger --choosefile=/tmp/chosenfile
>       if filereadable('/tmp/chosenfile')
>       exec 'read /tmp/chosenfile'
>           call system('rm /tmp/chosenfile')
>   endif
>   redraw!
>   endfun
>   map  magg/Reply-To:call RangerMuttAttach()IAttach: `a
> 

This function works great! I use ranger all the time so this is very useful. My
version as I use screen:

" mutt: insert attachment   

  
fun! RangerMuttAttach() 

  
 silent !screen -X eval 'split -v' 'focus' 'screen' 'exec ranger 
--choosefile=/tmp/chosenfile'   
if filereadable('/tmp/chosenfile')  

  
exec 'read /tmp/chosenfile' 

  
call system('rm /tmp/chosenfile')   

  
endif   

  
redraw! 

  
endfun  

  
map \\a magg/Reply-To:call RangerMuttAttach()IAttach: `a 

Do you have a way to empty the registry as well from the last use of
this function so it does not paste the previous file instead of the new
one? Tried different ways for that like ':let @a=""', but it did not work.

Jostein

$$


Re: mairix can not index on some mailbox

2011-10-18 Thread Jostein Berntsen
On 18.10.11,14:24, stardiviner wrote:
> => On [2011-10-17 17:05:37 +0200]:
>  Marco Giusti Said: 
> > On Mon, Oct 17, 2011 at 10:55:21AM +0800, stardiviner wrote:
> > > WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
> > > WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
> > > WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
> > 
> > try this instead:
> > 
> > $ ls -l /home/chris/.mutt/mails
> 
> here is my result:
> And I have check cur,new,tmp dir under Arch etc mailbox. They have same 
> premission with other 
> correct mailbox.
> 
> total 7252

You could also try the mairix list to see if that can help you resolve this:

https://lists.sourceforge.net/lists/listinfo/mairix-users


Jostein




Re: mairix can not index on some mailbox

2011-10-16 Thread Jostein Berntsen
On 16.10.11,20:33, stardiviner wrote:
> => On [2011-10-16 13:34:48 +0200]:
>  Jostein Berntsen Said: 
> > On 16.10.11,19:05, stardiviner wrote:
> > > When I execute commadn: mairix -f .
> > > I have writen mairixrc and mailboxes for mutt. 
> > > and have cur,new,tmp under mailboxes: Arch, FVWM etc.
> > > And I Googled this error. Have not find any similar situation.
> > > Other mailbox folder can be correct indexed.
> > > only bellowing mailbox folder can not.
> > > 
> > > error:
> > > WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
> > > WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
> > > WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
> > > WARNING: Folder path /home/chris/.mutt/mails/Terminal does not exist
> > > 
> > > Does anybody has any similar erorr ?
> > > If you know how to fix this, tell me. thanks.
> > > 
> > 
> > Probably some wrong notation in your ~/.mairixrc. What is the output of:
> > 
> > ls /home/chris/.mutt/mails/
> > 
> 
> ls /home/chris/.mutt/mails/
> apps Arch Awesome Drafts FVWM Gentoo Important INBOX Linux Maemo mbox Mutt 
> others
> Perl procmail.log Python RSS Search security Send spam Trash ubuntu Vim Web
> 
> mairixrc:
> base=~/.mutt/mails
> mfolder=Search
> database=~/.mutt/mairix/mairixdb
> # maildir=.
> maildir=INBOX
> maildir=Send
> maildir=mbox
> maildir=Important
> maildir=Python
> maildir=Perl
> maildir=Web
> maildir=Arch 
> maildir=Maemo
> maildir=Gentoo
> maildir=ubuntu
> maildir=Linux
> maildir=Vim
> maildir=FVWM 
> maildir=Awesome 
> maildir=Mutt
> maildir=apps
> maildir=RSS
> 

You can try this instead:

base=/home/chris/.mutt/mails

Can there be that there are no mails in the Arch and the 3 other mail folders? 
Save a mail to the Arch folder i mutt, and try to reindex mairix with "mairix 
-v"


Jostein



Re: mairix can not index on some mailbox

2011-10-16 Thread Jostein Berntsen
On 16.10.11,19:05, stardiviner wrote:
> When I execute commadn: mairix -f .
> I have writen mairixrc and mailboxes for mutt. 
> and have cur,new,tmp under mailboxes: Arch, FVWM etc.
> And I Googled this error. Have not find any similar situation.
> Other mailbox folder can be correct indexed.
> only bellowing mailbox folder can not.
> 
> error:
> WARNING: Folder path /home/chris/.mutt/mails/Arch  does not exist
> WARNING: Folder path /home/chris/.mutt/mails/FVWM  does not exist
> WARNING: Folder path /home/chris/.mutt/mails/Awesome  does not exist
> WARNING: Folder path /home/chris/.mutt/mails/Terminal does not exist
> 
> Does anybody has any similar erorr ?
> If you know how to fix this, tell me. thanks.
> 

Probably some wrong notation in your ~/.mairixrc. What is the output of:

ls /home/chris/.mutt/mails/


Jostein




Re: save the index ?

2011-10-15 Thread Jostein Berntsen
On 06.10.11,14:12, J J wrote:
> Hi Gregor, thanks a lot for pointing out gnu screen. I did not use it before, 
> and I am exploring it. A very interesting program. I have seen some ways to 
> capture output, although so far I am not sure that it will allow me to do 
> exactly what I want.
> 
> 
> José
> 
> 

I used it this way myself yesterday, works great. 


Jostein


> 
> - Original Message -
> From: Gregor Zattler 
> To: mutt-users 
> Cc: 
> Sent: Tuesday, October 4, 2011 5:39 PM
> Subject: Re: save the index ?
> 
> Hi José,
> * J J  [04. Oct. 2011]:
> > It could be useful for me to process the message list as it
> > appears in the index with flags information. Is there a way to
> > save the message index buffer, or to generate it some how?
> 
> You could run in gnu screen and use its hardcopy feature.  You
> would get only a hardcopy of the visible parts of the index
> though.
> 
> 
> Ciao, Gregor
> -- 
> -... --- .-. . -.. ..--.. ...-.-
> 
> 


Re: Improve mutt search: how?

2011-08-14 Thread Jostein Berntsen
On 14.08.11,12:24, Marcelo Luiz de Laia wrote:
> Mutt have a search function, / , the is very simple. But, it do search
> only in the to: and subject: fields.
> 
> Are ther a way to do search in all field (to:, subject:, body, etc) of
> messages?
> 
> How coul I improve mutt search function?
> 

You can hook mutt up with 'mairix', 'mu' or 'notmuch'. All works great, are
superfast, and enables you to search for anything you want:

http://www.rpcurnow.force9.co.uk/mairix/
http://code.google.com/p/mu0/
http://notmuchmail.org/


Jostein





Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Jostein Berntsen
On 11.08.11,15:30, Camaleón wrote:
> Hello,
> 
> I'm facing a curious problem when I send attachments with Mutt from 
> command line.
> 
> I have a small self-made script that basically makes two things:
> 
> 1/ Given a big file (~10/20 MiB), it splits into small chunks of data 
> (~250 KiB)
> 
> 2/ Then it sends the resulting files using Mutt (each file is attached 
> per message, so if there are 10 files Mutt sends 10 messages)
> 
> I have to do this in order to send a chap programs and documents I 
> download from the web because he does not have access to Internet, only 
> to his e-mail account (which is also very restricted, limited to 512 KiB/
> message).
> 
> All the process works fine but some of the files are wrongly encoded 
> which results in an error when the user tries to reconstruct the big file 
> from the received attachments. 
> 
> For instance, I've noted that properly encoded attachments appear as 
> follows:
> 
> ***
> Content-Type: application/octet-stream
> Content-Disposition: attachment; filename=test0014
> Content-Transfer-Encoding: base64
> ***
> 
> And bad ones are like this:
> 
> ***
> Content-Type: text/plain; charset=utf-8
> Content-Disposition: attachment; filename=test0015
> Content-Transfer-Encoding: quoted-printable
> ***
> 
> So I tried to deal with this in two ways:
> 
> 1. Enforcing Mutt to use "Content-Type: application/octet-stream" when I 
> call it using the script (that is, "mutt -e 'set content_type=application/
> octet-stream' [...])
> 
> This works (I can see the body of the messages are encoded in that way) 
> but there are still some messages that encode the attachments as "text/
> plain".
> 
> 2. I've also thought in using a "~/.mime.types" file but I dunno how to 
> do this, I mean, mime types relies on filenames extensions 
> (.pdf/.txt/.ogg) and splitted files have no extension (file000, file001, 
> file002, file003...). I could rename those to some fancy filename 
> (file001.file, etc...) but I think it's overwelming for the task.
> 
> To be sincere, I'm not sure if the culprit here is the Gmail server (I 
> use my Gmail account to send the messages) because Mutt tends to do the 
> right things while Gmail is a bit... let's say "liberal" when it comes to 
> implement/interpret the standards :-)
> 
> So I wonder what would be the best way to bypass this or if someone has 
> had a previous experience similar to this and can share his findings... 
> Any idea is very welcome.
> 
> P.S. Using Mutt 1.5.18 (2008-05-17)
> 

What about putting the files in 2-3 zip files and send him? Also update to mutt
1.5.21 which have many bug fixes after 1.5.18.

Jostein




Re: install error mutt-1.5.19

2011-08-04 Thread Jostein Berntsen
On 04.08.11,23:04, Ravi Uday wrote:
> Some errors went away. But still am getting this :
> 
> >>
> ..
>  /usr/bin/install -c 'flea' '/users/ruday/mutt-install/bin/flea'
>  /usr/bin/install -c 'smime_keys' '/users/ruday/mutt-install/bin/smime_keys'
> make-3.79.1-p7  install-exec-hook
> make-3.79.1-p7[4]: Entering directory `/users/ruday/mutt-1.5.19'
> if test -f /users/ruday/mutt-install/bin/mutt.dotlock && test -f 
> /users/ruday/mu
> tt-install/bin/mutt_dotlock ; then  \
> rm -f /users/ruday/mutt-install/bin/mutt.dotlock ;  \
> ln -sf /users/ruday/mutt-install/bin/mutt_dotlock 
> /users/ruday/mutt-inst
> all/bin/mutt.dotlock ; \
> fi
> if test -f /users/ruday/mutt-install/bin/mutt_dotlock && test xmail != x ; 
> then
> \
> chgrp mail /users/ruday/mutt-install/bin/mutt_dotlock && \
> chmod 2755 /users/ruday/mutt-install/bin/mutt_dotlock || \
> { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
> fi
> chgrp: changing group of `/users/ruday/mutt-install/bin/mutt_dotlock': 
> Operation
>  not permitted
> Can't fix mutt_dotlock's permissions!
> make-3.79.1-p7[4]: *** [install-exec-hook] Error 1
> make-3.79.1-p7[4]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7[3]: *** [install-exec-am] Error 2
> make-3.79.1-p7[3]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7[2]: *** [install-am] Error 2
> make-3.79.1-p7[2]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7[1]: *** [install-recursive] Error 1
> make-3.79.1-p7[1]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7: *** [install] Error 2
> bash-3.00$
> >
> 
> 

Have you installed with "./configure && make && sudo make install"?

You might also check out the most recent version 1.5.21 which has some bug
fixes:

http://www.mutt.org/download.html


Jostein




Re: no "N" indicator sign for folder has subfolders

2011-08-04 Thread Jostein Berntsen
On 04.08.11,16:59, stardiviner wrote:
> I put ubuntu-server/ and ubuntu-user/ under ubuntu/
> and set mailboxes like ubuntu/
> |__ubuntu-user
> |__ubuntu-server
> When I switch folder with "c", other mailboxes has "N" sign to indicate that
> new mails in mailbox, but ubuntu/ dose not. and ubuntu-user too.
> I want to know is it possible to add this "N" ?
> 

You can try to put this for the mailboxes option in your .muttrc:

mailboxes `echo ~/mail/*`
mailboxes `echo ~mail/ubuntu/*`







Re: install error mutt-1.5.19

2011-08-04 Thread Jostein Berntsen
On 04.08.11,18:23, Ravi Uday wrote:
> Following error is seen when installing on Linux x86 64bit m/c
> >
> if test -f /users/ruday/mutt-install//bin/mutt_dotlock && test xmail
> != x ; then \
>         chgrp mail /users/ruday/mutt-install//bin/mutt_dotlock && \
>         chmod 2755 /users/ruday/mutt-install//bin/mutt_dotlock || \
>         { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
> fi
> chgrp: changing group of
> `/users/ruday/mutt-install//bin/mutt_dotlock': Operation not permitted
> Can't fix mutt_dotlock's permissions!
> make-3.79.1-p7[4]: *** [install-exec-hook] Error 1
> make-3.79.1-p7[4]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7[3]: *** [install-exec-am] Error 2
> make-3.79.1-p7[3]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7[2]: *** [install-am] Error 2
> make-3.79.1-p7[2]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7[1]: *** [install-recursive] Error 1
> make-3.79.1-p7[1]: Leaving directory `/users/ruday/mutt-1.5.19'
> make-3.79.1-p7: *** [install] Error 2
> bash-3.00$
> >
> Anybody knows how to fix it.
> - Ravi
> configure was done using :
>

Is there one too many forward slash in this path?

/users/ruday/mutt-install//bin/mutt_dotlock


Jostein




Re: How to avoid mutt to change the name of received attachments

2011-07-27 Thread Jostein Berntsen
On 27.07.11,09:52, Jose M Vidal wrote:
> Hi,
> is there any way to avoid mutt to change the name of attachments I receive?
> For instance, a pdf called "documentación_1s_2011.pdf" appears in my
> message as "=?ISO-8859-1?Q?documentaci=F3n=5F1s=5F20..."
> Thanks!
> 

Try to set this option in your ~/.muttrc first and see if that fixes it:

 set rfc2047_parameters=yes


Jostein
 


Re: extract_url is not found in /home/user/bin

2011-07-26 Thread Jostein Berntsen
On 21.07.11,20:39, Martin wrote:
> Hi,
> 
> I've just tried extract_url and it seems really good.
> 
> After I select an URL to view, mutt (in the terminal window) still wants me
> to press a key to go back to mutt.
> 
> I would like it to behave, that once i select an URL to view, I am
> immediatelly back in mutt, without pressing any key.
> 
> Any idea how to do that?
> 

Check if you have PERSISTENT in your ~/.extract_urlview file. If so remove it.


Jostein




Re: limit to threads with certain number of messages

2011-07-21 Thread Jostein Berntsen
On 21.07.11,10:39, Steve Schmerler wrote:
> Hello
> 
> Is there a way to limit to threads that have only a certain number of
> messages in it, something like ~(~M >10). I found no pattern modifier to
> do that. The only related thread I could dig out is
> 
> http://thread.gmane.org/gmane.mail.mutt.user/18902/focus=19085
> 
> Thanks for any hints.

You might have to patch mutt with this patch to get the ~Z modifier:

http://does-not-exist.org/mail-archives/mutt-users/msg19738.html

Jostein




Re: winmail.dat

2011-07-18 Thread Jostein Berntsen
On 18.07.11,13:27, Christoph P.U. Kukulies wrote:
> Am 18.07.2011 12:20, schrieb Christian Brabandt:
> >On Mon, July 18, 2011 9:45 am, Christoph P.U. Kukulies wrote:
> >>Hi.
> >>I'm running Mutt 1.5.20 (2009-06-14) under Ubuntu and was wondering why
> >>mutt couldn't cope with
> >>some mail I got, containing an attachment, named winmail.dat (MS Outlook).
> >>
> >>Mutt wasn't able to unpack the two JPG files that were packed into that
> >>winmail.dat container.
> >>I asked the friend to send the same email to another account where I hat
> >>thunderbird (5.0) and I was able to
> >>see the attachments (JPGs) without seeing something of winmail.dat at all.
> >>
> >>Also forwarding the mail from mutt to the other account didn't help. I
> >>then saw a winmail.dat
> >>as an attachment and TB didn't know what to do with it.
> >->   I 1 [text/plain, quoted,
> >iso-8859-1, 0,2K]
> > A 2 winmail.dat[applica/ms-tnef,
> >base64, 5,5M]
> >
> 
> 
> Thanks, hope you don't mind me sending this back to the list.
> 
> I got this "tnef"-package. What would now be the steps to make mutt
> to recognize an attachment
> named winmail.dat and use"tnef" to unpack it and show me the
> attachments when I "v" the email.
> 
> At present it looks like this:
> ->   I 1 [text/plain, quoted,
> iso-8859-1, 0,2K]
>  A 2 winmail.dat[applica/ms-tnef,
> base64, 5,5M]
> 
> I'd rather have it look like showing the IM000xx.JPG files or whatever
> winmail.dat is hiding to me.
> 

Try the steps listed for mutt and mailcap setup in the manual:

http://linux.die.net/man/1/tnef

Jostein




Re: Multi-window Mutt

2011-07-18 Thread Jostein Berntsen
On 18.07.11,11:01, Cameron Simpson wrote:
> On 17Jul2011 11:24, Marcelo Luiz de Laia  wrote:
> | I am looking for a way to spawn new windows for reading and writing
> | e-mails with a mere click using mutt in X environment.
> | 
> | I have googled and found this solution
> | http://op-co.de/blog/posts/mulit-window_mutt/ and this question
> | (without answer) http://marc.info/?l=mutt-users&m=114347881514912
> | 
> | This thread was very usefull, too
> | http://www.mail-archive.com/screen-users@gnu.org/msg00566.html
> | 
> | But, I ask you:
> | 
> | Have you any suggestion/tips here?
> 
> I spawn detachable screen sessions for mutt email replies. Details here:
> 
>  http://www.mail-archive.com/mutt-users@mutt.org/msg40856.html
> 
> It would be pretty easy to adapt it to spawn a new terminal window containing
> the screen session I would think. I could put some effort into that if you
> have trouble.
> 
> The above scheme has the advantage that one can detach from the screen
> session before completing the reply and reattach later. By spawning a
> terminal window you could get that (reply session survives window close)
> and immediate return to your mutt reading (because the reply is off in
> another window).
> 
> Let me know if you'd like me to suggest modifications to the existing
> scripts I use.
> 

This looks like a nice way to use screen with mutt for these functionality. Will
check out this.


Jostein




Re: winmail.dat

2011-07-18 Thread Jostein Berntsen
On 18.07.11,12:29, Christoph P.U. Kukulies wrote:
> Am 18.07.2011 11:12, schrieb Lars Hecking:
> >Christoph P.U. Kukulies writes:
> >>Hi.
> >>I'm running Mutt 1.5.20 (2009-06-14) under Ubuntu and was wondering why
> >>mutt couldn't cope with
> >>some mail I got, containing an attachment, named winmail.dat (MS Outlook).
> >
> >  Ask the sender to configure their mail tool for plain text or html rather
> >  than rich text.
> >
> Wouldn't it be more appropriate to ask why Thunderbird can process
> said email from that
> users' settings (outlook) and mutt cannot, rather than asking the
> sender to change something in his
> settings?

In mutt you can use tnef to handle these type of attachments:

http://linux.die.net/man/1/tnef

In Thunderbird you can use ktnef.


Jostein







Re: changes to symlink effects on destination (mairix)

2011-07-17 Thread Jostein Berntsen
On 17.07.11,15:17, debecio wrote:
> Hello all, when I modify maildir of mairix search result I want modify true 
> maildir (when the mail saw, when I delete it and all)
> I thought to use script + macro, but is there a cleaner way?
> Tnx
> 

The best way for this might be to use muttjump. This is especially 
effective if you use mutt with screen, but works also great without:

https://github.com/weisslj/muttjump


Jostein




Re: next official release?

2011-07-13 Thread Jostein Berntsen
On 13.07.11,10:03, Derek Martin wrote:
> On Wed, Jul 13, 2011 at 09:27:59AM +0200, Markus Osterhoff wrote:
> > * Andreas Kneib  [110710 02:27]:
> > > * Eugene schrieb am Samstag, den 09. Juli 2011:
> > > Mutt is the completely opposite to Firefox with...
> > > 
> > > ...his stable version 5 (since 21 June),
> > > ...the released Beta 6 
> > > ...and the available testing version 7...
> > > 
> > > Long releases, that's why I like mutt! ;-)
> 
> It causes some problems.  The odd releases are considered unstable so
> I know some people/sysadmins who won't use them.  And it's not
> entirely unreasonable... 1.5 is actively developed and often bugs are
> introduced that cause problems for people.  They're usually fixed
> quickly but you may wind up having to run a snapshot for a while...
> This is the antithesis of what makes long release cycles good.
> 
> The current stable release is 1.4.2, which was released in Feb 2004.
> That's 7 years ago.  It's seen a couple of minor updates since then,
> only to fix critical security issues, so I'm not even counting those.
> Want to see what's changed in Mutt?  There's really no release notes
> which discusses the changes; there is only the change log.  If you
> diff the change log from 1.4 to 1.4.2, the resulting diff is 3000
> lines, and most of that is stuff you don't care about.  Good luck
> figuring out what changed.  Want to see what changed between mutt-1.4
> and mutt-1.6 (when it eventually comes out)?  The changes are truly
> massive; summarizing the changes in a digestible format is basically
> impossible.  This matters; if you don't keep up with Mutt
> developments, when you go to upgrade your Muttrc will be useless, and
> figuring out how to fix it will be a non-trivial exercise.
> 
> Mutt is not a huge program; I think both Mutt and its user community
> would benefit from a much shorter release cycle.  Development would
> focus on short periods of very targeted improvements, followed by a
> period of bug fixes, followed by a stable release.  I think 6 months
> tops would be about right.  Basically, I think long release cycles are
> only good for a program that's mature and in maintenance mode.  Mutt
> isn't that.
> 

I agree with this one. A more frequent release cycle would stimulate 
more patches and bug fixes. 


Jostein






Re: Issue with mutt-1.5.21 on HP-UX 11i V3

2011-07-13 Thread Jostein Berntsen
On 13.07.11,09:52, Shawn Ng wrote:
> Hi all,
> 
> Thanks for this great email program.  I have an issue when trying to send 
> email.  Mutt complain about "Bad IDN" as soon as I enter a recipient address 
> in the TO: field
> 
> Error: 'albertahealthservices.ca' is a bad IDN.
> 
> I have tried scouring the Internet and was not able to get a resolution.  
> Please give me some pointers if you know what the issues are.  Here are some 
> information regarding my environment.
> 

Try to set a real from adress in your .muttrc like:

set from=Your name 

You can also set this value:

set charset="UTF-8"

Check your charset with "locale" in a terminal and enter that in the 
value above. 


Jostein


Re: extract_url is not found in /home/user/bin

2011-07-09 Thread Jostein Berntsen
On 09.07.11,07:59, Marcelo Luiz de Laia wrote:
> Hi,
> 
> I try to use extract_url.pl, but get an error on mutt.
> 
> :~$ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/games:/home/user/bin
> :~$ 
> 
> :~$ locate extract_url.pl
> /home/user/bin/extract_url.pl
> :~$ 
> 
> /home/user/.mutt/muttrc
> macro index,pager \cb " set my_pdsave=\$pipe_decode\
>  unset pipe_decode\
> extract_url.pl\
>  set pipe_decode=\$my_pdsave" "get URLs"
> 
> When I choose ctrl+b, an error apear:
> 
> extract_url.pl is not found
> press any key to continue
> 
> 

Try adding "/home/user/bin/extract_url.pl" in the macro instead of just 
the script name.

Also double-check that the script is in the local bin folder with:

"ls ~/bin | grep ^extr"


Jostein$


Re: next official release?

2011-07-08 Thread Jostein Berntsen
On 08.07.11,05:21, Eugene wrote:
> Mutt 1.5.21 has been out since September 2010.  Does anyone know when
> the next release will be, whether it's a 1.5.22 developer release or a
> final 1.6 release?
> 

That might be a question for the mutt-...@mutt.org list. 


Jostein




Re: Mutt not calling browser

2011-07-08 Thread Jostein Berntsen
On 08.07.11,08:10, Greg Donoghue wrote:
> On Fri, Jul 08, 2011 at 08:06:27AM +0100, Jamie Paul Griffin wrote:
> > http://www.memoryhole.net/~kyle/extract_url/ is a much better alternative, 
> > definitely worth trying out. 
> > 
> > jamie
> 
> Presently I use this line in my .muttrc:
> 
> macro index,pager i "w3m -m"
> 
> Typing a colon ":" activates the links in the page.
> This preserves context and enables me to utilize w3m's
> alternate browser capability. My main complaint with this
> method is w3m's handling of mailto links. For those I use
> urlview. It would be nice to settle on one method for
> everything. I'll play with extract_url and see if it's a
> more complete solution. Thanks for the tip.:)

extraxt_url is what I now use as well. Works very nicely.


Jostein




Re: Mutt not calling browser

2011-07-07 Thread Jostein Berntsen
On 07.07.11,14:37, Robert Holtzman wrote:
> Running mutt 1.5.21-4~bpo60+1 on Debian Squeeze. The default browser is
> Iceweasel, Debian's version of Firefox. It was giving me some problems
> so I purged it and installed the real Firefox. Now "Ctrl b" gives the
> error message "/usr/bin/iceweasel: not found None of the browsers in 
> $BROWSER worked!" Can't find anything in .muttrc that calls a browser.
> Searches yield nothing useful (unless I've missed something).
> 
> Any poimters appreciated.
> 

Is Ctrl-b mapped to urlview? Then you can change to the right browser in 
/usr/bin/url_handler.sh.


Jostein





Re: Compose new message to To: of selected message

2011-06-26 Thread Jostein Berntsen
On 26.06.11,10:27, Marcelo Luiz de Laia wrote:
> On Sun, 26 Jun 2011, Jostein Berntsen wrote:
> > 
> > This macro will achieve the task in two steps:
> > 
> > macro index _w "formail -x 'To' $* | perl -MEncode -ne \
> > 'print encode("UTF8",decode("MIME-Header",$_))' | paste -s -d" " | \ 
> > xclip -sel clip"
> > 
> > Catch all to address with "_w" and add it in new mail with 
> > "Ctrl-Shift-v".
> 
> Thank you for the very cool macro!
> 
> But, what keys I need to use to start the macro? What means _w?
> 
> I looked at the mutt manual 2.1, 3.6, and 3.3 sections, but I didn't
> found help there.
> 

Just do "_w" on the mail you want to copy the To: addresses from. Then 
do "Ctrl-Shift-v".


Jostein




Re: Is mutt extensible with a programming language?

2011-06-26 Thread Jostein Berntsen
> >
> > I would guess that much or most of the things you can do with Gnus can 
> > also be done in mutt, but only in a different way. Is there something 
> > specifically you would do in mutt that you do in Gnus now?
> 
> Well, I'm just starting to use Gnus, so I cannot answer this.  Yes, mutt
> can do most of the things about mail, but I believe there must be
> something it can't do, or can't do easily.  Invoking external scripts is
> the solution, but it's hard to write, since they're not integrated to
> mutt.  Now I'm trying Gnus, and if I still failed it, I will probably
> get back to mutt.


Mutt is more modular which means that you can use any programming 
language you like and hook it into muttrc. Perl works great, as does 
Bash, Python, Ruby and other. Mails can also be piped directly to 
scripts of course.


Jostein




Re: Compose new message to To: of selected message

2011-06-26 Thread Jostein Berntsen
On 16.06.11,21:41, Ravi Pina wrote:
> The subject generally says it.  I was trying to find a macro or
> shortcut that would allow me to compose a new message to the
> addresses in the To: line of the currently selected message.
> 
> Bouncing doesn't do this, obviously.  Using the message as a
> template isn't it.  Replying adds all the message attributes of a
> replied message (references, subject, etc), yet this is the
> closest thing.
> 
> Anyone have any tips for accomplishing this?
> 

This macro will achieve the task in two steps:

macro index _w "formail -x 'To' $* | perl -MEncode -ne \
'print encode("UTF8",decode("MIME-Header",$_))' | paste -s -d" " | \ 
xclip -sel clip"

Catch all to address with "_w" and add it in new mail with 
"Ctrl-Shift-v".


Jostein




Re: Is mutt extensible with a programming language?

2011-06-26 Thread Jostein Berntsen
On 24.06.11,23:52, XeCycle wrote:
> Hello, I've been using mutt for several months, and I like
> it.
> 
> However I'm an Emacs fan, so I tried Gnus, but failed... it
> really is not a mail client. But Gnus can be easily extended
> with Emacs Lisp, which is a killer feature compared to mutt.
> AFAIK I think mutt can only execute shell commands via
> `command`. I think it'd be nice to integrate some language
> to muttrc, thus making customization easier. (I prefer perl
> for this task~)
> 
> Or --- Is there a fork of mutt that already support this?

You can extend mutt by using macros with scripts that you can load in 
addition to your .muttrc, or you can source the scripts directly. 

Here is a script I load in mutt with a macro when I need it:

#!/bin/sh

lab=$1
file=$2
formail -A "X-Label: NA" < $file > $file.tmp
mv $file.tmp $file
sleep 1
touch $file

I would guess that much or most of the things you can do with Gnus can 
also be done in mutt, but only in a different way. Is there something 
specifically you would do in mutt that you do in Gnus now?


Jostein







Re: EXITCODE==255

2011-06-18 Thread Jostein Berntsen
On 18.06.11,13:08, Joseph wrote:
> On 06/18/11 09:56, Jostein Berntsen wrote:
> >On 17.06.11,22:42, Joseph wrote:
> >>I have in my .maildir folder file name: EXITCODE==255
> >>
> >>-rw---  1 joseph joseph 226435 Jun 12 23:20 EXITCODE==255
> >>
> >>it looks like collection of html emails.
> >>Any ideas how to retrieve this mail?
> >>
> >
> >Could you try to view this mailbox with
> >
> >mutt -f "~/.maildir/EXITCODE==255"
> 
> Yes, this worked; it contian missing mail.
> But hot did the mail ended up in there?

What kind of mail filter do you use? Could it be that this exited with 
code 255 when you downloaded some mail? Are all the mail from the same 
day?


> 
> Accessing the folder from mutt with "c" change directory and saving it to 
> inbox folder worked as well.
> 
> >
> >To view html mails in mutt put this in ~/.mailcap:
> >
> >text/html; w3m -F -dump -I %{charset} -O UTF-8 -T text/html; \
> >copiousoutput
> >
> >and this in your ~/.muttrc:
> >
> >auto_view text/html
> 
> This solution does not work. I solve it by using "links" in mailcap:
> /etc/mailcap:
> ...
> text/html; /usr/bin/links '%s'; needsterminal; description=HTML Text; 
> nametemplate=%s.html
> text/html; /usr/bin/links -dump '%s'; copiousoutput; description=HTML Text; 
> nametemplate=%s.html
> ...

Links works just as fine. That the w3m line didn't work might mean that 
you don't have the w3m console browser installed on your system.


Jostein




Re: EXITCODE==255

2011-06-18 Thread Jostein Berntsen
On 17.06.11,22:42, Joseph wrote:
> I have in my .maildir folder file name: EXITCODE==255
> 
> -rw---  1 joseph joseph 226435 Jun 12 23:20 EXITCODE==255
> 
> it looks like collection of html emails.
> Any ideas how to retrieve this mail?
> 

Could you try to view this mailbox with

mutt -f "~/.maildir/EXITCODE==255"

To view html mails in mutt put this in ~/.mailcap:

text/html; w3m -F -dump -I %{charset} -O UTF-8 -T text/html; \
copiousoutput

and this in your ~/.muttrc:

auto_view text/html



Jostein



Re: prevent startup imap connection

2011-06-17 Thread Jostein Berntsen
On 17.06.11,18:19, lee wrote:
> "Mark Smith"  writes:
> 
> >> > I am trying to prevent mutt from opening a connection to my imap
> >> > spoolfolder on startup.
> >> > Does anyone know how to prevent this? I would simply like to
> >> > view my cached messages and connect to imap manually if I want to.
> >> 
> >> Comment out the imap entry in muttrc and change to the imap folders
> >> manually?
> >> 
> > Unfortunately, that won't work. I still want to access my cached
> > messages. So when I start mutt, it should show me my cached inbox
> > without connecting automatically...
> 
> Are these messages cached on the IMAP server?
> 
> If not, how about "mutt -f ~/cached-inbox" and then connecting at will?
> 

What about setting up offlineimap and just sync that when you want? Then 
you can view your previously synced messages locally. 

Jostein




Re: gpg issues

2011-06-12 Thread Jostein Berntsen
On 12.06.11,10:53, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-12 10:09:38 +0200]:
> 
> > You should keep your ~/.mutt/gpg.rc as it is, but remove the "set 
> > pgp_good_sign" line above. Keep the other "set pgp_good_sign" line you 
> > have. Then add these settings to your ~/.muttrc and try again:
> > 
> > set pgp_autosign=no set pgp_autoencrypt=no  
> > 
> >
> > set pgp_ignore_subkeys=yes  
> > 
> >   
> > set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
> > 
> >   
> > set pgp_long_ids=no 
> > 
> >   
> > set pgp_replyencrypt=yes
> > 
> >   
> > set pgp_replysign=no
> > 
> >   
> > set pgp_replysignencrypted=no   
> > 
> >   
> > set pgp_retainable_sigs=no  
> > 
> >   
> > set pgp_show_unusable=yes   
> > 
> >   
> > set pgp_strict_enc=yes  
> > 
> >   
> > set pgp_timeout=300 
> > 
> >   
> > set pgp_verify_sig=no   
> > 
> >   
> > set pgp_sort_keys=address   
> > 
> >   
> > set pgp_create_traditional=no
>  
> OK, I commented out
> 
> set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"
> 
> and left 
> 
> set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
> 
> as is, then added what you gave me at the bottom and restarted mutt. 
> Gonna go and try and zap off a test mail to myself and see how this
> works.
> 

Notice that the "set pgp_autosign=no" ++ settings above should be in 
your .muttrc and not in gpg.rc.

Jostein




Re: gpg issues

2011-06-12 Thread Jostein Berntsen
On 12.06.11,02:56, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-12 00:20:47 +0200]:
> 
> > On 11.06.11,18:01, Chris Brennan wrote:
> > > * Jostein Berntsen  [2011-06-11 23:52:59 +0200]:
> > > 
> > > > Can you try to remove this line in your gpg.rc?
> > > > 
> > > > set pgp_sign_as=D5B20C0C 
> > > 
> > > Removed it and I am still unable to sign my mail, I tried to send mail to
> > > my self to prevent spamming the list inapprpropriately. Gpg reports a bad 
> > > passphrase. But I know it's not.
> > > 
> > > 
> > 
> > Also try to remove this line in your gpg.rc:
> > 
> > set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d 
> > '"'`"
> > 
> > Jostein
> 
> So I moved my gpg.rc to a backup and copied yours into place, I was unable
> to even sign mail, all it kept doing was asking for my key, over and over
> again. So I restored my old gpg.rc, still can't actually sign but I can 
> at least add my key lol.
> 

You should keep your ~/.mutt/gpg.rc as it is, but remove the "set 
pgp_good_sign" line above. Keep the other "set pgp_good_sign" line you 
have. Then add these settings to your ~/.muttrc and try again:

set pgp_autosign=no set pgp_autoencrypt=no  

   
set pgp_ignore_subkeys=yes  

  
set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"

  
set pgp_long_ids=no 

  
set pgp_replyencrypt=yes

  
set pgp_replysign=no

  
set pgp_replysignencrypted=no   

  
set pgp_retainable_sigs=no  

  
set pgp_show_unusable=yes   

  
set pgp_strict_enc=yes  

  
set pgp_timeout=300 

  
set pgp_verify_sig=no   

  
set pgp_sort_keys=address   

  
set pgp_create_traditional=no


Jostein





Re: gpg issues

2011-06-11 Thread Jostein Berntsen
On 11.06.11,18:01, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-11 23:52:59 +0200]:
> 
> > Can you try to remove this line in your gpg.rc?
> > 
> > set pgp_sign_as=D5B20C0C 
> 
> Removed it and I am still unable to sign my mail, I tried to send mail to
> my self to prevent spamming the list inapprpropriately. Gpg reports a bad 
> passphrase. But I know it's not.
> 
> 

Also try to remove this line in your gpg.rc:

set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d 
'"'`"

Jostein




Re: gpg issues

2011-06-11 Thread Jostein Berntsen
On 11.06.11,18:01, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-11 23:52:59 +0200]:
> 
> > Can you try to remove this line in your gpg.rc?
> > 
> > set pgp_sign_as=D5B20C0C 
> 
> Removed it and I am still unable to sign my mail, I tried to send mail to
> my self to prevent spamming the list inapprpropriately. Gpg reports a bad 
> passphrase. But I know it's not.
> 
> 

Could you check your ~/.muttrc settings as well, ref. my last mail?


Jostein




Re: gpg issues

2011-06-11 Thread Jostein Berntsen
On 11.06.11,17:43, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-11 23:08:39 +0200]:
> 
> > Then encryption works, but not pgp signing. These are the pgp variables 
> > in my ~/.muttrc that have set a value. The others I have unset. Could 
> > you check them with yours?
> > 
> > 
> > set pgp_autosign=no set pgp_autoencrypt=no
> >  set pgp_ignore_subkeys=yes
> >  set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
> >  set pgp_long_ids=no
> >  set pgp_replyencrypt=yes
> >  set pgp_replysign=no
> >  set pgp_replysignencrypted=no
> >  set pgp_retainable_sigs=no
> >  set pgp_show_unusable=yes
> >  set pgp_strict_enc=yes
> >  set pgp_timeout=300
> >  set pgp_verify_sig=no
> >  set pgp_sort_keys=address
> >  set pgp_create_traditional=no
> 
> This is what I have set in ~/.mutt/gpg.rc
> 
> set pgp_sign_as=D5B20C0C
> #set pgp_sign_as=0xeecd9a84d5b20c0c
> set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose 
> --quiet --batch --output - %f"
> set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch 
> --output - --verify %s %f"
> set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? 
> --no-verbose --quiet --batch --output - %f"
> set pgp_sign_command="gpg --no-verbose --batch --quiet --output - 
> %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
> set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - 
> %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
> set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose 
> --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
> set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch 
> --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? 
> --armor --always-trust -- -r %r --
> set pgp_import_command="gpg --no-verbose --import %f"
> set pgp_export_command="gpg --no-verbose --export --armor %r"
> set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs 
> %r"
> set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons 
> --list-keys %r"
> set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons 
> --list-secret-keys %r"
> set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"
> set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
> 
> The above is pretty much the default that I was given between 
> gpg/mutt, it was gotten from the system-wide doc dir
> 

Can you try to remove this line in your gpg.rc?

set pgp_sign_as=D5B20C0C 


Jostein




Re: gpg issues

2011-06-11 Thread Jostein Berntsen
On 11.06.11,16:37, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-11 22:32:37 +0200]:
> 
> > When I try to open your mail I am asked for the PGP passphrasem, so it 
> > seems to be working now.
>  
> Oh good, at least one part is working, I still get error messages for 'p',
> 's' and 'p', 'a'. So I dunno why this is working and the other isn't.
>A

Then encryption works, but not pgp signing. These are the pgp variables 
in my ~/.muttrc that have set a value. The others I have unset. Could 
you check them with yours?


set pgp_autosign=no set pgp_autoencrypt=no
 set pgp_ignore_subkeys=yes
 set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
 set pgp_long_ids=no
 set pgp_replyencrypt=yes
 set pgp_replysign=no
 set pgp_replysignencrypted=no
 set pgp_retainable_sigs=no
 set pgp_show_unusable=yes
 set pgp_strict_enc=yes
 set pgp_timeout=300
 set pgp_verify_sig=no
 set pgp_sort_keys=address
 set pgp_create_traditional=no


 Jostein




Re: gpg issues

2011-06-11 Thread Jostein Berntsen
On 11.06.11,16:29, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-11 21:01:25 +0200]:
> 
> > But, then it seems like it's working now? :)
> 
> It did!?! I don't know if it actually worked or not. I do know that when
> I followed the instructions of of 'p' then 'e', I wasn't prompted for my
> password for my key, gpg headers were added and the mail was off. I'm 
> gonna have to go back into my Sent Mail and look at the message and see
> how it looks, so I know what to expect lol.
> 

When I try to open your mail I am asked for the PGP passphrasem, so it 
seems to be working now.


Jostein




Re: gpg issues

2011-06-11 Thread Jostein Berntsen
On 11.06.11,20:53, Michelle Konzack wrote:
> Please can you stop, sending encrypted messages to the list?
> 
> Thanks, Greetings and nice Day/Evening
> Michelle Konzack
> 

But, then it seems like it's working now? :)


Jostein



Re: OT- question about abook

2011-06-07 Thread Jostein Berntsen
> >
> >There was an error in the first line in the config file. This should be
> >instead:
> >
> >view CONTACT = name, email, title, notes, nick
> >
> >I use new most recent version abook-0.6.0pre2. I guess you need this to
> >get the 2 options above included. The documentation for the options are
> >in the abookrc file above each option.
> >
> >http://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz
> >
> So that explains the differences. They added options in the development
> version. I'll try it out when I get some time.
> 
> BTW after looking at the project website and the files in the
> abook-0.6.0pre2.tar.gz tarball I have to wonder if abook is dead.  The
> files all date from 2006. Doesn't look like there has been any
> significant work since then.  The last news posted on the main project
> page is from 2008.
> 

abook might has halted in development, but it still works great. It is
stil the best console addressbook for mutt in my opinion. Would be nice
to see some new features though. 


Jostein





Re: OT- question about abook

2011-06-06 Thread Jostein Berntsen
> >Here is an extract of my configured variables. Check that you have 
> >them
> >set somewhat like this:
> >
> >view CONTACT = name, email, title, notes, nicki
> >view ADDRESS = address_lines, city, state, zip, country
> >view PHONE = phone, workphone, mobile, fax
> >view OTHER = url, birthday
> >set autosave=true
> >set preserve_fields=all
> >set show_all_emails=true
> >set index_format=" {name:25} {email:30} {nick:5} {workphone:-12} 
> >{mobile:-12} {title:20} {notes} "
> >set mutt_command=mutt
> >set mutt_return_all_emails=true
> >set print_command=lpr
> >set www_command=lynx
> >set address_style=eu
> >set use_ascii_only=false
> >set add_email_prevent_duplicates=true
> >set sort_field=nick
> >set show_cursor=true
> >
> >
> >Jostein
> >
> >
> I tried those settings but they generate more errors.
> The "view" lines give "unknown token view" errors.
> The "preserve_fields=" and "set index_format=" lines give "unknown option" 
> errors.
> 
> What version of abook are you using? Also, where did you find the
> documentation for these options? I can't find mention of them anywhere.
> 


There was an error in the first line in the config file. This should be 
instead:

view CONTACT = name, email, title, notes, nick

I use new most recent version abook-0.6.0pre2. I guess you need this to 
get the 2 options above included. The documentation for the options are 
in the abookrc file above each option.

http://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz


Jostein




Re: Salve senders e-mail automatically

2011-06-05 Thread Jostein Berntsen
On 05.06.11,15:45, Marcelo Luiz de Laia wrote:
> On Sun, 05 Jun 2011, Jostein Berntsen wrote:
> > You might try to change this line in mysendmail to:
> > tee >(lbdb-fetchaddr -a)|/usr/local/bin/msmtp -a $@
> > Rename this file to mymsmpt and set this in .muttrc:
> > set sendmail="~/bin/mymsmpt"
> 
> Here is what I have did.
> 
> $ cat .mutt/muttrc | grep mylbdb
> set query_command="~/bin/mylbdbq %s"
> 
> $ cat .lbdb/lbdbrc | grep METHODS
> METHODS="m_inmail m_muttalias m_passwd m_finger"
> 
> $ cat bin/mylbdbq
> #!/bin/bash
> (lbdbq "$@" | tee >(head -n 1 >&2) 2>/dev/null | grep -v \
>   ^lbdbq:.*matches | tac) 2>&1
> 
> $ cat .mutt/gmail.muttrc 
> ###
> # gmail specific options
> ###
> color status green default
> set from  = "marcelol...@gmail.com"
> #set sendmail  = "/usr/bin/msmtp -a gmail"
> set sendmail  = "~/bin/mymsmpt.gmail"
> set mbox  = "+GMail/archive"
> unset record
> set postponed = "+GMail/[Gmail].Rascunhos"
> macro index E "+GMail/archive~B " \
> "search everything"
> macro index D "+GMail/[Gmail].Lixeira" \
> "move message to the trash"
> macro index S "+GMail/[Gmail].Spam" \
> "mark message as spam"
> 
> $ cat bin/mymsmpt.gmail 
> #!/bin/bash
> tee >(lbdb-fetchaddr -a)|/usr/bin/msmtp -a gmail $@
> 
> $ cat bin/add.mail.to.lbdb 
> #!/bin/bash
> find /home/marcelo/Mail/GMail/INBOX -type f -mtime -7 -print0 | \
>   xargs -0 -n 1 -r /bin/bash -c 'lbdb-fetchaddr -a < "$1"' \
>   lbdb-fetchaddr
> find /home/marcelo/Mail/Yahoo/Inbox -type f -mtime -7 -print0 | \
>   xargs -0 -n 1 -r /bin/bash -c 'lbdb-fetchaddr -a < "$1"' \
>   lbdb-fetchaddr
> # remove dups
> SORT_OUTPUT=name /usr/lib/lbdb/lbdb-munge
> 
> Now, when I send a message the to: address is salved in the lbdb.
> 
> I setup crontab like this:
> 
> * */2 * * * /home/user/bin/add.mail.to.lbdb
> 
> So, each 2 h the script populated lbdb from the mails I receive.
> 
> Thank you very much! :-D
> 
> Now, I need only to remove from lbdb the system address, like this:
> 
> users@localhost
> blabla@localhost
> foo@localhost
> ...
> 
> Have any ideia to do that?
> 
> Thank you again!
> 

Great to hear it's working. To remove the localhost entries, you can 
remove them manually from the ~/.lbdb/m_inmail.list file, and remove the 
m_finger entry from the METHODS variable in ~/.lbdbrc.


Jostein


Re: gpg issues

2011-06-05 Thread Jostein Berntsen
On 05.06.11,14:29, Chris Brennan wrote:
> * Jostein Berntsen  [2011-06-05 11:45:54 +0200]:
> 
> > When you do "gpg --list-keys" can you see your friend's mail address and 
> > your own in the output?
> 
> Yes, I can, below is that output, with fudges for name/email
> 
> chris@stewie ~ $ gpg --list-keys
> /home/chris/.gnupg/pubring.gpg
> --
> pub   2048R/D5B20C0C 2011-06-04
> uid  Chris Brennan (xaero) 
> sub   2048R/65AD06FE 2011-06-04
> 
> pub   2048R/ 2011-05-18
> uid  Friend Name (warg) <@gmail.com>
> uid  [jpeg image of size 2241]
> sub   2048R/ 2011-05-18
> 
> chris@stewie ~ $
> 
> The problem resides when I manually attache my key w/ 'p' then 'a', I paste 
> in 0xD5B20C0C, I can see the mime-type and my key in a 10-character 
> hexidecimal string. I then hit 'y' to send the mail, mutt prompts for my 
> key's password, and I enter it, mutt then balks out it, says bad passphrase 
> and the mail isn't sent. This is where my mailing with mutt comes to a 
> grinding halt halt. 
> 
> Currently, mutt is not applying my key automatically, which is fine for now.
> Once I know I can successfully sign outgoing mail, I will change my .muttrc 
> to automatically add my key.
> 

You should enter the email address that you have a key for after 
entering 'p' and 'a' instead for the hex value. You can also try signing 
with 'p' and 's'. 


Jostein




Re: OT- question about abook

2011-06-05 Thread Jostein Berntsen
On 05.06.11,11:31, Dan McDaniel wrote:
> 
> 
> On Sat 04.Jun.11 22:51, Jostein Berntsen wrote:
> >On 03.06.11,19:42, Michael wrote:
> >>I don't know who else to turn to about this problem other than mutt users.
> >>I have been adding phone numbers, addresses, comments, etc to abook.
> >>Every so often when I start abook, everything is deleted but name and
> >>email address. Not one more item.
> >>Since this started, I've been keeping backups for when this happens,
> >>so everything isn't lost.
> >>I have looked at the good and bad (missing extra info), and everything
> >>looks fine. Format is fine, even checking the beginning and ending of
> >>file. I've also used "diff -y addressbook addressbook.backup and they
> >>are virtually the same for name and email. Just all the info about
> >>phone numbers, addresses, etc is missing on the bad file
> >>
> >>I've used abook for quite some time but never seen this happen till I
> >>started adding the extra info.
> >>
> >>Anybody with understanding of abook is welcome to email me since this
> >>isn't directly related to mutt.
> >>
> >
> >You can check in ~/.abook/abookrc if you have your index_format variable
> >correctly set. F.ex. mine has this setting to show the fields I want in
> >the abook interface:
> >
> >set index_format=" {name:25} {email:30} {nick:5} {workphone:-12}
> >{mobile:-12} {title:20} {notes} "
> 
> I, too, had never used an abookrc file. I created one, but when I add
> the index_format line it gives me an error:
>abookrc: parse error at line 57: unknown option
> 
> I'm using abook 0.5.6-7+b1 on Debian sid. I checked the manpage for
> abookrc and don't see that option mentioned either. How did you get it
> to work?
> 
> Dan

Here is an extract of my configured variables. Check that you have them 
set somewhat like this:

view CONTACT = name, email, title, notes, nicki
view ADDRESS = address_lines, city, state, zip, country
view PHONE = phone, workphone, mobile, fax
view OTHER = url, birthday
set autosave=true
set preserve_fields=all
set show_all_emails=true
set index_format=" {name:25} {email:30} {nick:5} {workphone:-12} {mobile:-12} 
{title:20} {notes} "
set mutt_command=mutt
set mutt_return_all_emails=true
set print_command=lpr
set www_command=lynx
set address_style=eu
set use_ascii_only=false
set add_email_prevent_duplicates=true
set sort_field=nick
set show_cursor=true


Jostein




Re: Salve senders e-mail automatically

2011-06-05 Thread Jostein Berntsen
On 05.06.11,09:39, Marcelo Luiz de Laia wrote:
> On Sun, 05 Jun 2011, Jostein Berntsen wrote:
> > You can try this setup with lbdb and sendmail:
> > 
> > http://www.jukie.net/bart/blog/lbdb-and-mutt
> 
> Thank you very much!
> 
> I will try it, but, I am using mutt+offlineimap+msmtp
> 
> I'm not using sendmail. Have you know if that setup is suitable for my
> setup?
> 
> I will send a message to Bart.
> 
> Thank you very much!
> 

You might try to change this line in mysendmail to:

tee >(lbdb-fetchaddr -a)|/usr/local/bin/msmtp -a $@

Rename this file to mymsmpt and set this in .muttrc:

set sendmail="~/bin/mymsmpt"


Jostein


Re: accessing shared mailboxes on exchange server

2011-06-05 Thread Jostein Berntsen
On 02.06.11,13:02, John wrote:
> Hello list,
> 
> I'd like to be able to use an instance of mutt to access shared
> mailboxes (are these "folders"?) on an exchange server. I understand
> this has to be through IMAP.
> 
> Although I can get all of my mail through IMAP (or POP3) from the
> exchange box, I have had no success in being able to browse through to
> the shared mailboxes to answer group email.
> 
> FWIW I can't do this through Thunderbird, either - I have to use Outlook
> (ugh). Is mutt able do do this? Either by itself or with another program
> or wrapper? Here is my mutt version:
> 

Libmapi for accessing shared exchange resources is not available for 
Mutt I believe. An option that can be used for Thunderbird could be to 
install DavMail and use this setup:

http://davmail.sourceforge.net/linuxsetup.html

An example config for Thunderbird here:

http://www.linuxquestions.org/questions/linux-general-1/thunderbird-configured-with-davmail-to-receive-ms-exchange-server-mail-need-help-785974/

You can also set up your mutt to point imap connection at the davmail 
server and check if that works.


Jostein





Re: Salve senders e-mail automatically

2011-06-05 Thread Jostein Berntsen
On 04.06.11,18:59, Marcelo Luiz de Laia wrote:
> Dear All,
> 
> I would like to auto save all e-mail address that I reply or compose a
> new message.
> 
> I am using abook. But, I could use any other address book.
> 
> Thank you very much!

You can try this setup with lbdb and sendmail:

http://www.jukie.net/bart/blog/lbdb-and-mutt


Jostein





Re: gpg issues

2011-06-05 Thread Jostein Berntsen
On 04.06.11,20:54, Chris Brennan wrote:
> A friend of mine shared his gpg key with me and showed me some of the basics 
> to using gpg, I uncommented the source line in my .muttrc to start using it 
> and when I get to the post-compose/confirmation window where I can add 
> attachments, I figured out how to add my key, I added my 8-charcater key and 
> mutt changes it to a 10-character hexidecimal key. I'm not exactly sure if 
> that is the right behavior but that isn't the larger issue. The larger issue 
> is when I go to actually send the mail (y), mutt prompts for my key's 
> password as expected but gpg always returns a bad password error. Did I miss 
> something?
> 
> Attached is my gpg.rc
> 

When you do "gpg --list-keys" can you see your friend's mail address and 
your own in the output?


Jostein




Re: OT- question about abook

2011-06-05 Thread Jostein Berntsen
> >
> > You can check in ~/.abook/abookrc if you have your index_format variable
> > correctly set. F.ex. mine has this setting to show the fields I want in
> > the abook interface:
> >
> > set index_format=" {name:25} {email:30} {nick:5} {workphone:-12}
> > {mobile:-12} {title:20} {notes} "
> >
> >
> > Jostein
> >
> 
> Thanks Jostein. I checked my .abook directory on Slackware and Debian
> and don't have an abookrc in either system. I'll look into building
> one or downloading one from the net.
> I was thinking that I would have to try mysql even though I don't know
> a thing about it.
> 
> b
> 

If you do "man abookrc" on your Slackware box you will find a sample 
configuration file for .abookrc in the last section. Just copy this 
section to a new file in ~/.abook/abookrc and configure this.


Jostein





Re: Multitasking

2011-06-04 Thread Jostein Berntsen
On 04.06.11,19:18, Marcelo Luiz de Laia wrote:
> 
> > > I use screen for this and opens each mutt folder I use regularily in a 
> > > screen window by defining it in .screenrc. Works brilliantly for 
> > > multitasking.
> 
> Is it possible to share your .screenrc? I use emacs and I start to use
> mutt a few days a go to manage my 3 accounts (gmail, work and
> yahoo). I use mutt+offlineimap+msmtp+abook.
> 
> Thank you very much!
> 

My .screenrc has a lot of settings so I post just the mail related 
settings here. All files with an "M:" title is a mailbox, but that is 
just to identify it in the screen title bar from the other windows.

screen -t M:outbox 0 mutt -f ~/mail/outbox -F ~/.muttrc 
screen -t M:xlntit 1 mutt -f ~/mail/innboks/xlntit -F ~/.muttrc-3
screen -t bash 2 bash 
screen -t bash 3 bash 
screen -t bash 4 bash 
screen -t M:unsorted 5 mutt -f ~/mail/innboks/unsorted
screen -t M:broadpark 6 mutt -f ~/mail/innboks/broadpark
screen -t M:mfolder 7 mutt -f ~/mail/mfolder
screen -t M:musearch 8 mutt -f ~/mail/search
screen -t M:vim 9 mutt -f ~/mail/innboks/vim_use
screen -t cim 10 centerim  
screen -t wyrd  11 wyrd ~/.reminders-JB 
screen -t music 12 ncmpcpp 
screen -t feeds 13 newsbeuter screen -t ranger 14 ry
screen -t ranger 14 ry
screen -t bash 15 bash
screen -t notmuch 16 mutt -f ~/.cache/mutt_results
screen -t log 17 taillog


Jostein






Re: OT- question about abook

2011-06-04 Thread Jostein Berntsen
On 03.06.11,19:42, Michael wrote:
> I don't know who else to turn to about this problem other than mutt users.
> I have been adding phone numbers, addresses, comments, etc to abook.
> Every so often when I start abook, everything is deleted but name and
> email address. Not one more item.
> Since this started, I've been keeping backups for when this happens,
> so everything isn't lost.
> I have looked at the good and bad (missing extra info), and everything
> looks fine. Format is fine, even checking the beginning and ending of
> file. I've also used "diff -y addressbook addressbook.backup and they
> are virtually the same for name and email. Just all the info about
> phone numbers, addresses, etc is missing on the bad file
> 
> I've used abook for quite some time but never seen this happen till I
> started adding the extra info.
> 
> Anybody with understanding of abook is welcome to email me since this
> isn't directly related to mutt.
> 

You can check in ~/.abook/abookrc if you have your index_format variable 
correctly set. F.ex. mine has this setting to show the fields I want in 
the abook interface:

set index_format=" {name:25} {email:30} {nick:5} {workphone:-12} 
{mobile:-12} {title:20} {notes} "


Jostein


Re: Multitasking

2011-06-04 Thread Jostein Berntsen
On 04.06.11,12:05, Leo Vegoda wrote:
> Hi,
> 
> On Sat, Jun 04, 2011 at 01:35:50PM -0300, Leonardo M. Ramé wrote:
> > Hi, I was thinking about a nice feature I would like to see in Mutt.
> > 
> > As I'm used to VIM buffers and tabs, wouldn't be great tu have such
> > features in Mutt?.
> > 
> > For example, while reading a mail save the screen in a buffer, then go
> > to another mail or folder, then go back to the stored buffer without
> > traversing again the folders. Or, open a folder in different tabs.
> 
> What is the advantage of having this built in to Mutt, instead of
> using screen or multiple tabs in your terminal application?
> 

I use screen for this and opens each mutt folder I use regularily in a 
screen window by defining it in .screenrc. Works brilliantly for 
multitasking.


Jostein




Re: ispell with vim

2011-05-16 Thread Jostein Berntsen
On 16.05.11,00:17, Robert Holtzman wrote:
> On Sun, May 15, 2011 at 09:28:48PM -0400, Tim Gray wrote:
> > On May 15, 2011 at 05:30 PM -0700, Robert Holtzman wrote:
> > >Mutt is compiled with ispell. The documentation I found only talks about
> > >it's use with emacs. Being a confirmed vi/vim user, I'm somewhat at a
> > >loss. I'm primarily interested, at this point, in adding words to the
> > >list. Any pointers appreciated.
> > 
> > I don't use ispell but I do use vim.  Vim 7.3 has a spell checker
> > built in, and it's easy to add words to it too.  Might be worth
> > checking out.
> 
> That's what I use now but would rather use aspell or in a pinch ispell.
> Not sure if that's possible for a noncoder.
> 
> BTW, how do you add words to the Vim spell checker? Running a search
> turned up nothing of value.
> 

If you have this setting in your .muttrc you can just do "i" in the 
compose view to spellcheck your mail:

set ispell="/usr/bin/ispell"

For spell checking in vim see:

http://vimdoc.sourceforge.net/htmldoc/spell.html


Jostein




Re: Adding the year in status screen

2011-05-09 Thread Jostein Berntsen
On 09.05.11,09:55, Michael Elkins wrote:
> On Mon, May 09, 2011 at 05:28:50PM +0200, Jose M Vidal wrote:
> > I am missing to have the year beside the day and the month of every
> > message in the status window, specially when I am searching old
> > e-mails.
> > Is there any way to achieve this?
> 
> See $index_format and $date_format in the manual.  You can 
> customize the date display using those two variables.
> 

This is what I have in my $index_format and $date_format:

set index_format="%6C %Z(%X) %D %-18.17f %-20.19t  %s"
set date_format="!%d.%m.%y,%H:%M"


Jostein





Re: mairix search

2011-05-05 Thread Jostein Berntsen
On 03.05.11,10:21, Tim Gray wrote:
> On May 03, 2011 at 08:39 AM +0200, Jostein Berntsen wrote:
> >I use mairix, but it seems like "mu" is being quite actively developed:
> 
> Yes, mu is quite actively developed.  I liked it a fair amount.  I
> just have a feeling that notmuch has a brighter future.
> 

I tested the most recent version of mu v. 0.9.5, works great with many 
useful features. That cfind option is a nice one.

http://gitorious.org/mu/mu-ng/blobs/master/NEWS



Jostein




Re: mairix search

2011-05-02 Thread Jostein Berntsen
On 03.05.11,00:26, Tim Gray wrote:
> On Apr 29, 2011 at 01:56 PM +0200, Sebastian Tramp wrote:
> >Is searching / indexing with mairix state of the art or is there a
> >better solution available? I am quite happy with that, just wanted to
> >ask ;-).
> 
> I found that mairix was a lot better for me than nmzmail.  I used
> mairix for quite a bit.  I then found mu (and figured out how to
> compile it on OS X).  I liked that even more.
> 
> Now however, I'm running notmuch as just an indexer.  It's pretty
> fast.  I really like it.  It's also being actively developed.  And
> the best part in my mind is that it's developed as a library with a
> command line utility.  So my secret dream is that some enterprising
> developer hooks notmuch directly into mutt.  That would be awesome.
> 

I use mairix, but it seems like "mu" is being quite actively developed:

http://www.djcbsoftware.nl/code/mu/


Jostein




Re: muttjump

2010-11-30 Thread Jostein Berntsen
On 30.11.10,16:38, Christian Ebert wrote:
> Hi Johannes,
> 
> * Johannes Weißl on Tuesday, November 30, 2010 at 15:18:10 +0100
> > Yes, I think Jostein has a setup where he opens one mutt for each
> > mailbox in advance! I tried to check in screen if a window exists and
> > if not start mutt, but I couldn't find out how that is possible...
> 
> But don't you have the logic in place already:
> 
> $SCREEN "${screen_op...@]}" -p "$screen_window_name" -X eval "select 
> '$screen_window_name'" "stuff \"$jump_cmd\""
> if [ $? != 0 ] ; then
> # instead of dying:
> # 1) check $STY
> # 2) check screen -ls
> # if ok; then screen -X ...
> # else launch term or die
> fi
> 
> But I probably still haven't understood Jostein's setup ;-)
> 

I have this setup in my muttrc:

screen -t M:outbox 0 mutt -f ~/mail/outbox -F ~/.muttrc
screen -t M:xlnt 1 mutt -f ~/mail/innboks/xlntit -F ~/.muttrc-3
screen -t M:rec 2 mutt -f ~/mail/innboks/rec -F ~/.muttrc-2
screen -t M:outc 3 mutt -f ~/mail/outbox-rec -F ~/.muttrc-2
screen -t M:outn 4 mutt -f ~/mail/outbox-xlntit -F ~/.muttrc-3
screen -t M:unsort 5 mutt -f ~/mail/innboks/unsorted
screen -t M:broad 6 mutt -f ~/mail/innboks/broadpark
screen -t M:mfolder 7 mutt -f ~/mail/mfolder
screen -t M:best  mutt -f ~/mail/innboks/bestillinger
#screen -t M:template 6 mutt -f ~/mail/innboks/template 
screen -t M:CH 9 mutt -f ~/mail/innboks/CH
screen -t cim 10 centerim


This is especially effective with muttjump as the mail is located and 
activated at once when you use the macro, because the windows are 
available already.


Jostein





Re: ad: muttlearn - tool for managing multiple identities

2010-11-29 Thread Jostein Berntsen
On 28.11.10,23:49, Johannes Weißl wrote:
> Hello!
> 
> I recently uploaded a small python program I've been using privately for
> a few years now. It scans sent messages and automatically generates
> send-hooks for recipients or groups of recipients. The learned settings
> include $from, $realname, $signature, $send_charset, language, a message
> template (greeting, goodbye) and crypto settings.
> 
> Maybe it is useful for you, in any case I would appreciate any feedback
> on how to improve it! The URL is:
> https://molb.org/~weisslj/muttlearn/
> 
> 
> For users of mairix, mu or nmzmail, another script might be interesting:
> muttjump: https://github.com/weisslj/muttjump
> It allows jumping back from the search folder to the original message
> (useful for editing, changing flags, deleting).
> 
> 
> Johannes

I have tested muttlearn and that utility seem to work very fine. A great 
tool for those with different from addresses. 

I have also used muttjump for a while, and this is very useful together 
with mairix and screen.


Jostein



Re: Charset and Norwegian characters

2010-11-17 Thread Jostein Berntsen
On 17.11.10,11:05, Christian Ebert wrote:
> * Jostein Berntsen on Wednesday, November 17, 2010 at 09:43:46 +0100
> > Mutt displays the Norwegian characters correctly in all my emails, 
> > except some emails from Exchange with these headers:
> > 
> > Content-Type: text/html; charset="iso-8859-1" 
> > 
> > These emails have just an empty space instead of the Norwegian 
> > characters.  Other mails with charset "Windows-1252" are displayed 
> > correctly.
> 
> Not too much experience with html mails, but I a few guesses:
> 
> You are viewing these with autoview?
> 
> > I have set my locale to no_NO.utf8 and have these settings in .muttrc:
> > 
> > set charset="UTF-8//TRANSLIT"
> > iconv-hook   ks_c_5601-1987KS_C_5601-1987
> > charset-hook ks_c_5601-1987euc-kr
> > iconv-hook iso-8859-1 Windows-1252
> > charset-hook iso-8859-1 Windows-1252
> > charset-hook ^us-ascii$   ISO-8859-1
> 
> I don't see how the TRANSLIT makes sense with utf, and I don't
> see the use of those iconv-hooks either.
> 
> I have just the following:
> 
> charset-hook ^unknown-8bit$   cp1252
> charset-hook ^x-unknown$  cp1252
> charset-hook ^none$   cp1252
> charset-hook ^x-user-defined$ cp1252
> charset-hook ^us-ascii$   cp1252
> charset-hook ^iso-8859-1$ cp1252
> charset-hook ^iso-8859-8-i$   iso-8859-8
> charset-hook ^gb2312$ gb18030
> charset-hook ^ks_c_5601-1987$ euc-kr
> 
> > I use mutt version 1.5.20. Is there any other settings that can be done 
> > so that these mails are displayed correctly?
> 
> With w3m I would try the following mailcap entries (note the 2nd
> one):
> 
> text/html; w3m -F -dump -I cp1252 -O UTF-8 -T text/html; test=test %{charset} 
> = us-ascii; copiousoutput
> text/html; w3m -F -dump -I cp1252 -O UTF-8 -T text/html; test=test %{charset} 
> = iso-8859-1; copiousoutput
> text/html; w3m -F -dump -I %{charset} -O UTF-8 -T text/html; copiousoutput
> 

Thanks, this worked great. The mailcap entries did the trick. 

$
Jostein



Charset and Norwegian characters

2010-11-17 Thread Jostein Berntsen
Mutt displays the Norwegian characters correctly in all my emails, 
except some emails from Exchange with these headers:

Content-Type: text/html; charset="iso-8859-1" 

These emails have just an empty space instead of the Norwegian 
characters.  Other mails with charset "Windows-1252" are displayed 
correctly.

I have set my locale to no_NO.utf8 and have these settings in .muttrc:

set charset="UTF-8//TRANSLIT"
 iconv-hook   ks_c_5601-1987KS_C_5601-1987
 charset-hook ks_c_5601-1987euc-kr
 iconv-hook iso-8859-1 Windows-1252
charset-hook iso-8859-1 Windows-1252
 charset-hook ^us-ascii$   ISO-8859-1

I use mutt version 1.5.20. Is there any other settings that can be done 
so that these mails are displayed correctly?


Jostein




Re: setting mutt to charset UTF-8 ?

2010-10-04 Thread Jostein Berntsen
On 04.10.10,11:35, Matthias Apitz wrote:
> 
> Hello,
> 
> At the moment I still have set the xterm for mutt to ISO-8859-1, i.e.
> receiving and sending messages in ISO. More and more I receive email now
> in UTF-8 and to read them I open another terminal 'urxvt' with the LANG
> set to es_ES.UTF-8 to read such message...
> 
> I'm unsure if I should completely switch to UTF-8 already, maybe this
> would cause big disaster in the receiving sites, mailing lists etc. What
> is the opinion about of other mutt users and what is the tendenz we
> should follow?
> 


I use these settings in my .muttrc and this works great: 

set charset="UTF-8"
set send_charset="utf-8:iso-8859-2:iso-8859-1"
 charset-hook ks_c_5601-1987euc-kr


Jostein




Re: Problems with SMIME encrypted mails from Thunderbird

2010-09-30 Thread Jostein Berntsen
On 30.09.10,11:21, Stephan Seitz wrote:
> Hi!
> 
> Since some Thunderbird updates mutt (1.5.20) doesn’t recognise
> anymore that the mail is SMIME encrypted.
> 
> If the mail contains the following headers, everything is working:
> Content-Type: application/x-pkcs7-mime; name="smime.p7m"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="smime.p7m"
> Content-Description: S/MIME Encrypted Message
> 
> However the last header line is missing in mails from newer
> Thunderbird versions and mutt can’t handle it. If I manually add the
> header line, it works again.
> 
> Is this a bug in Thunderbird or in mutt?
> 
> Shade and sweet water!
> 
>   Stephan
> 

This sounds like something that has happened to Thunderbird, but I'm not 
sure. You can check if mutt 1.5.21 can handle this. You can also check 
on the Content-Type header in procmail and make formail add the 
Content-Description header before it is delivered to mutt. 


Jostein

$


Re: message no saved in outbox ?

2010-09-30 Thread Jostein Berntsen
On 30.09.10,10:43, Gérard Robin wrote:
> Hello,
> when I send a message to a specific addresse, xx...@orange.fr, there
> is no copy saved in outbox, for the other addresses I get a copy of
> the message in outbox as expected.
> 
> My box is Debian Lenny with Mutt 1.5.18 (2008-05-17)
> 
> Has someone ever had this problem ?
> 
> Thanks in advance for a clue
> 

You might set a fcc-hook to your outbox for this address as a 
workaround. When you send mail to this address is there anything in the 
fcc field when you are in the compose mode?


Jostein




Re: UTF-7 subject problems

2010-09-30 Thread Jostein Berntsen
On 30.09.10,11:14, Stephan Seitz wrote:
> Hi!
> 
> Our MS Forfront Server sends mails with a UTF-7 encoding in the subject.
> 
> Raw example:
> Subject: =?utf-7?Q?Microsoft Forefront Protection for Exchange Server:
>  Integrit+AOQ-tsbenachrichtigung?=
> 
> Mutt (1.5.20) doesn’t encode the subject but displays it in its raw form.
> Is this a bug in mutt, or is the encoding wrong?
> 
> Shade and sweet water!
> 
>   Stephan
> 

I think you can set a iconv-hook or a charset-hook for this in your 
.muttrc. Typical remedy for som MS specific charsets. See: 

http://www.mutt.org/doc/manual/manual-3.html#ss3.4


Jostein




Re: Open a specific message from the command line

2010-09-27 Thread Jostein Berntsen
On 24.09.10,15:44, Tim Gray wrote:
> Is there anyway to open a specific message in a maildir from the
> command line?  Any official method or any workaround that people can
> think of?
> 
> Thanks
> 

If you install the mu search utility, you can open mails directly with 
the "mu view " command. To find the file path for a specific 
mail you can use "mu find  --fields "l, d, f, s"" to 
get this displayed on stdout.

http://www.djcbsoftware.nl/code/mu/#features



Jostein






Re: Authenticated Exchange SMTP server problem

2010-09-18 Thread Jostein Berntsen
On 18.09.10,21:20, Michael Williams wrote:
> Hi,
> 
> I'm trying to get mutt's smtp support to work with my department's new 
> Exchange server.
> 
> According to the current draft documentation, Thunderbird can be configured 
> as follows: 
> . I 
> have confirmed that this configuration works.
> 
> So, having read Kyle Wheeler's very useful post 
> , I have turned the 
> Thunderbird instructions into the following smtp_url:
> 
>  set smtp_url="smtp://m...@physics.ox.ac.uk@mail.physics.ox.ac.uk:587"
> 
> With this configuration, when I send mail in mutt, the status bar says "SSL 
> connection using TLSv1/SSLv3 (AES128-SHA)" (which sounds promising) then 
> "Authenticating (NTLM)", then prompts me for my password. I give this, but 
> after a suspiciously long delay ~10s, I get the error "SASL authentication 
> failed".
> 
> I emphasize that the server appears to work as described in the instructions 
> for configuring SMTP for Thunderbird. I'm using the same username and 
> password in mutt. This is the same username and password I use to make the 
> IMAP connection; I also have 'set imap_user="m...@physics.ox.ac.uk"' and that 
> works fine. The server is configured to check that mail is coming from a 
> registered address, and I'm setting the From: header appropriately in mutt. 
> I'm stumped. Does anyone have any ideas?
> 

Does your /var/log/mail gives any more clues?


Jostein






Re: Add a header when sending, if signed

2010-09-15 Thread Jostein Berntsen
On 13.09.10,21:26, Jostein Berntsen wrote:
> On 12.09.10,17:47, Charles Jie wrote:
> >
> 
> I tried to make this work by using a double macro like this: 
> 
> macro compose  ":my_hdr X-PGP-KEYS: http://www...";
> macro compose  "ps "
> 
> 
> but that seems not to work as expected. Anyone got a suggestion on how 
> to resolve this?
> 

A way to solve this by doing  in Compose:

In .muttrc: 

macro compose  "psE"

In .vimrc:

map  !!echo "X-PGP-KEYS: http://www.j.com";


(where  is mapped to :wq!).



Jostein





Re: Add a header when sending, if signed

2010-09-13 Thread Jostein Berntsen
On 12.09.10,17:47, Charles Jie wrote:
> Hi,
> 
> I want mutt to add a header 'X-PGP-Key' if the message is signed
> (from 's' command in pgp-menu).
> 
> I tried to use 'send-hook' as following:
> 
>   send-hook ~g 'my_hdr X-PGP-Key: http://wwwkeys.us.pgp.net:11371/...'
> 
>   while '~g' means to match "cryptographically signed messages"
> 
>   The intention of this is to "Add the X-PGP-Key header if this
>   message is signed before sending".
> 
> Of course this configuration does not work, because:
> 
>   1. The send-hook is triggered when composing the message.
> 
>   2. The send-hook only sees the pattern as about recipients, not
>  about anything else.
> 
> Do I have any suitable 'hook' to do it?
> 
>   We can only sign it after the message is finished, right?
> 
>   So I need a hook which will be triggered when I send the
>   message (after I decided to sign it). This hook will check if
>   it's signed and run a my_hdr command to add a header about
>   keyserver info.
> 
> Any clue?
> 
>   (Though I could always add this header even I don't sign. I
>   still hope to keep the message cleaner and reduce internet
>   traffic.)
> 

I tried to make this work by using a double macro like this: 

macro compose  ":my_hdr X-PGP-KEYS: http://www...";
macro compose  "ps "


but that seems not to work as expected. Anyone got a suggestion on how 
to resolve this?


Jostein



Re: Forward to recipient from the outbox

2010-09-09 Thread Jostein Berntsen
On 09.09.10,06:50, Michael Elkins wrote:
> On Wed, Sep 08, 2010 at 08:07:27PM +0200, Jostein Berntsen wrote:
> >Sometimes I need to forward a mail to a recipient from the outbox for
> >follow-up a.o., and it would be practical to have an option to get the
> >To-field filled in automatically with the recipient's address.
> 
> Is there a reasons you don't use 'r'eply?  If $reply_self is unset
> (default), mutt will automatically use the same to/cc addresses.
> 

This works fine, thanks. 


Jostein




Forward to recipient from the outbox

2010-09-08 Thread Jostein Berntsen
Sometimes I need to forward a mail to a recipient from the outbox for 
follow-up a.o., and it would be practical to have an option to get the 
To-field filled in automatically with the recipient's address. 

Is this possible to achieve with a macro or in another way?


Jostein


Re: spoolfile disappeared

2010-08-27 Thread Jostein Berntsen
On 27.08.10,18:22, j...@telefonica.net wrote:
> Hi, friends.
> 
> While I was testing my new Mutt and it seems to work vey nice, suddenly
> I can't read my new mail because spoolfile has desappeared.
> 
> I really don't know how it happens.
> 
> I was looking postfix.log, fetchmail.log and procmail.log with tail
> -f... and when back in Mutt it says spoolfile doesn't exit.
> 
> Has it happens to anybody anytime?
> 
> I think I'm going to check my harddisk
> 

More information on where the spool file should be is here:

http://wiki.mutt.org/?MuttGuide/Folders

You might also check where your spool file is by doing 'locate spool', 
and then set this value in your .muttrc:

set spoolfile="/var/spool/mail/usernam"


Jostein





Re: attached pdf broken

2010-08-16 Thread Jostein Berntsen
On 16.08.10,12:16, Jan-Herbert Damm wrote:
> Hello All,
> 
> I am trying to attach a pdf to a mail. After sending it, it is broken.
> 
> A cmp with the unsent pdf-file tells me they differ in line 1 byte 9. 
> A diff just says they differ.
> Copying line 1 from the original to the attached one won't help much.
> 
> Could this be something mutt does?
> 
> Or would my smarthost change my attachments?
> 
> any ideas welcome.
> 

There is a related thread here:

http://objectmix.com/mutt/202020-pdf-attachment-file-damaged-could-not-repaired.html

Can you try to upgrade to 1.5.20 to see if that works?


Jostein




Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread Jostein Berntsen
On 01.08.10,18:33, Christoph Kukulies wrote:
> Am 01.08.2010 18:13, schrieb Jostein Berntsen:
> >On 01.08.10,18:05, Christoph Kukulies wrote:
> >>I'm trying
> >>
> >>mutt -i message.text -s subject -a attachment.jpg  recipi...@domain
> >>
> >>Is there a way to do that without being prompted?
> >>
> >You can try:
> >
> >mutt -s subject -a attachment.jpg recipi...@domain<  message.text
> >
> >
> >Jostein
> >
> >
> 
> 
> Surprise:
> 
> k...@post:~$ mutt  -s test k...@validaddress.de  Error sending message, child exited 1 ().
> Segmentation fault
> 
> 
> 

This should work. Maybe you could try to upgrade mutt to the most recent 
version 1.5.20?


Jostein





  1   2   >