Re: Some fairly simple-minded questions about using mutt with IMAP

2014-12-09 Thread Eduardo Alvarez
On Mon, Dec 08, 2014 at 10:04:26PM +, Chris Green wrote:
  Hello, Chris,
  
  What I do is that at work, I mount my home mail folder using sshfs. That 
  way, I
  can use my local copies of mutt, xpdf, etc. With large messages, it can get
  slow, sometimes, but it does save some time.
  
 Yes, I guess that's one way of doing it, not too difficult to automate
 using a script.  I could simply mount my ~/.mutt and my ~/Mail
 directories and run mutt on the laptop (which is what I'm always using
 when away from home).  Slow with mbox I fear though, I might have to
 change to Maildir to make it usable.
 
 Doesn't anyone use IMAP?  I must admit when I tried it (a few times
 over the years, but not very recently) it never felt quite as easy and
 transparent as using mutt on a local mail spool.

My setup consists on downloading all my email via getmail onto my local
machine, with regular updates via cron, and posting via msmtpqueue. It harkens
back to a time when internet access wasn't always a given for me, and I like
how it works now, so...

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpGn7F97azY3.pgp
Description: PGP signature


Re: Some fairly simple-minded questions about using mutt with IMAP

2014-12-08 Thread Eduardo Alvarez
On Mon, Dec 08, 2014 at 03:19:55PM +, Chris Green wrote:
 I have been using mutt for many, many years with a local (Unix style)
 mail spool.  Mail is delivered to my system by SMTP (postfix locally).
 
 At the moment to access my mail remotely I ssh into the server and run
 mutt.  This works well in general but there are some disadvantages, in
 particular the 'v' command to access and view HTML, PDF and other
 graphical attachments doesn't work because, of course, there's no GUI
 access to the machine where I'm reading the mail.  It's also a bit
 annoying simply saving attachments and then realising they're on the
 remote machine.
 
 So, I'm wondering if using IMAP would make my life easier.  I would
 run Dovecot I expect.  If I do this do things become more transparent
 to a remote mutt?
 
 E.g. if I want to view an HTML E-Mail in Firefox (default browser)
 instead of within mutt (using lynx) can I just do 'v' followed by
 selecting the HTML attachment as I would when running mutt locally on
 the machine where mail is hosted?

Hello, Chris,

What I do is that at work, I mount my home mail folder using sshfs. That way, I
can use my local copies of mutt, xpdf, etc. With large messages, it can get
slow, sometimes, but it does save some time.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpPSqBJ5VP_w.pgp
Description: PGP signature


Re: missing feature in mutt: mark new messages in a thread as unwanted

2014-03-24 Thread Eduardo Alvarez
On Mon, Mar 24, 2014 at 11:11:20AM +1100, Cameron Simpson wrote:
 On 23Mar2014 18:42, Eduardo Alvarez astrochelon...@gmail.com wrote:
  On Sun, Mar 23, 2014 at 07:57:07PM +0100, Matthias Apitz wrote:
   Is there such feature in mutt somehow?
  
  Creative use of scoring can achieve this.
 
 Really? That's interesting. Can you provide a recipe or suggestion?
 Incomplete is fine. I don't presently use scoring, and this sounds
 like a relevant excuse to learn.

Well, on second thought, it's probably not what Matthias really wants...at
least, not what I'm guessing he wants, which is to not display threads he has
marked unwanted on the index. What you can do, is, set the score based on the
subject of the thread, then sort by scoring. It won't hide the threads, but at
least put them at the bottom of the index so they're not interweaved with wanted
messages.

So to set the score for a thread, one could do this:

score '~s this_thread_deemed_unworthy' 0
set score='sort'

Alternatively, you could use color to visually mark the offending threads as
such. For example

color index red black ~n 0

Or you could even mark them for deletion immediately:

set score_threshold_delete=0

Another solution, not strictly for mutt, is to write a procmail recipe that
deleted all messages matching the subject of the offending thread.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpn2gOtvADgl.pgp
Description: PGP signature


Re: missing feature in mutt: mark new messages in a thread as unwanted

2014-03-23 Thread Eduardo Alvarez
On Sun, Mar 23, 2014 at 07:57:07PM +0100, Matthias Apitz wrote:
 
 Hello,
 
 Is there such feature in mutt somehow?
 Thx

Hello,

Creative use of scoring can achieve this.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpLp0VtYQ48W.pgp
Description: PGP signature


Re: Multiple accounts on one IMAP server problems

2014-02-25 Thread Eduardo Alvarez
On Fri, Feb 21, 2014 at 07:51:27PM +0800, Esther Carillo wrote:
 Hello mutt.user,
 
 You have probably heard this question so many times you're bored of it,
 tonight my Google Fu is letting me down.
 
 See http://paste.debian.net/82890/ for my muttrc and two files I use to
 store the IMAP/SMTP details for each of the two yahoo accounts.
 
 The problem is I can't swap between accounts using 'c', I believe this is
 because both accounts are using the same IMAP URL so mutt is unable to
 distinguish between the two!?
 
 All the tutorials and documentation I see only conveniently use two
 different domains, @personal.com and @work.com.
 
 So I'm new to Linux and Mutt and am getting nowhere with this hope someone
 can help.

Hello,

If your hypothesis is correct and you can't switch because both accounts share
the same server name, you could try to explictly logout when you press 'c'. to
do this, you could do:

bind pager c noop #unbinds the normal operation of the key 'c'
macro pager c imap-logout-allchange-folder your choice of help comment.

I'm not too well versed on binding and macros, so if the rest of the list
catches an error, I'm sure I'll get corrected.

Regards,
-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpnx0xqfA7Jl.pgp
Description: PGP signature


Re: defining a shortcut to save to a mailbox

2014-02-11 Thread Eduardo Alvarez
On Tue, Feb 11, 2014 at 03:31:40PM +, John wrote:
 On Sat, Feb 08, 2014 at 08:04:03PM +0100, MD wrote:
  I use a similar macro for index view:
  macro index gc copy-message^U/home/markus/.mail/spam-missedenter
  
  I think in Your case should following work:
  macro pager 0 copy-message^U/home/john/.mail/spam-missedenter
 
 Thank you very much Markus, that worked.
 
 Have you a method of marking it as deleted at the same time?
 Essentially, let's say a spam was in this list. I open the spam, see
 it's spam so hit 0 and get the prompt to save to the spam mailbox. Is it
 possible to mark it as deleted at the same time within the mailbox it's
 been moved from? At the moment this does not happen and I have to mark
 it as deleted manually.

Replace copy-message with save-message. That should mark it as deleted.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpkv6WZI91aB.pgp
Description: PGP signature


Re: Don't leave mutt after m^C (or similar)

2013-09-11 Thread Eduardo Alvarez
On Wed, Sep 11, 2013 at 01:53:10PM +0200, Matthias Beyer wrote:
 Hi,
 
 sometimes I accidentially type 'm' or so, for new mail. The I hit
 CTRL-C for abort, and Enter for confirm. But I don't want to leave
 mutt!
 
 How to change the default to no, I don't want to leave mutt for all
 quit mutt? messages?

Hi,

You can abort new mail composition with CTRL-g.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpfKsNdAWNdf.pgp
Description: PGP signature


Re: Bold font in Sent listing

2013-08-07 Thread Eduardo Alvarez
On Wed, Aug 07, 2013 at 11:18:47AM +0100, James Griffin wrote:
 Wed  7.Aug'13 at  3:05:54 +0100, David 
 Woodfall
  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.
  
  D.
 
 You can find the printf(3) format specifiers in man 3 printf; also in the
 muttrc manual, man muttrc. Look for $index_format. Did you specifically
 choose those format specifiers yourself? or did you use them from a
 configuration posted on the internet?

The index_format string looks fine to me. I checked $index_format in the menu
and there are no options to toggle bold with it. The other options I found were
in the pager (which accepts the nroff sequences for bold and underline), and
configuring what that bold would look like using the color command.

Given that only some of them are bold, my guess is that there's a sequence of
characters in the entry that your terminal is interpreting as an escape sequence
for bold characters. But it's just a guess, and I'm not sure why it would happen
only looking in the Sent folder.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgp4Uxfj6X8cG.pgp
Description: PGP signature


Re: OT: Request for old cruft. [Was: The etiquette of RTFM (Re: I have forgotten ...)]

2013-06-24 Thread Eduardo Alvarez
On Sun, Jun 23, 2013 at 09:47:23PM +1000, Erik Christiansen wrote:
 On 21.06.13 10:52, Eduardo Alvarez wrote:
  That sounds like a fantastic compilation, not just for practical knowledge, 
  but
  I'm betting a little of history as well. Would you care to share it? :)
 
 At first I thought that's not a problem, if it is of any interest. But
 it includes pastes of setting up ssh, and sprinklings of bits and pieces
 which would need to be sanitised prior to publication - something that
 I'll have to try to find time for, one of these days. In any event, it
 is just a large grab-bag of memory joggers and small concise manpage
 extract distillations for rapid reference, plus debugging fixes for
 problems I've encountered. Slabs of it would be of little use to many,
 and none of it is in any way a complete reference on anything. It exists
 only so that I don't have to solve the same problem repeatedly,
 muttering futilely I know I've done this before. (It was a hint to the
 OP, that there are ways around forgetfulness, other than putting the
 burden on others.)

Erik,

Not a problem. I don't want to make you do any unnecesary editing/auditing of
your work. It just seemed a nice bit of documentation.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpXnNLttuh5s.pgp
Description: PGP signature


Re: The etiquette of RTFM (Re: I have forgotten ...)

2013-06-21 Thread Eduardo Alvarez
On Fri, Jun 21, 2013 at 09:03:32PM +1000, Erik Christiansen wrote:
 
 The real and substantial impairments, both physical and mental, which
 accrue with advancing age, are easily overlooked in the ignorance of
 youth, or even middle age. Though two decades behind our petitioner for
 a quick hint, I have for a decade and a half found it necessary to
 accumulate a private multifarious manpage, or brain-fade-insurance, now
 amounting to 350 pages of stuff which has worked for me, but spans a
 quarter of a century of using dozens of unix utilities, scripting
 languages, cross-copilers, linker scripting, system administration, and
 embedded systems development, etc. Without that, I'd be asking a few
 more questions on the less hostile lists too. Ya can't remember it
 all, and in declining years, the time remaining looms in all its stark
 brevity. The increasing rate of wetware memory drop-outs in our autumn
 years becomes increasingly unnerving, and even figuring out where to
 look isn't as easy as it once was.

That sounds like a fantastic compilation, not just for practical knowledge, but
I'm betting a little of history as well. Would you care to share it? :)
-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgptQoKH7nJqC.pgp
Description: PGP signature


Re: tab pressing doesn't bring up anything

2012-12-21 Thread Eduardo Alvarez
On Fri, Dec 21, 2012 at 08:45:49AM +1100, Cameron Simpson wrote:
 
 If someone knows how to write vim : commands to make vim do TAB
 completion, I can probably write a short script to read a mutt alias file
 (or any filter with mutt alias commands in it) and emit vim commands to
 match, to go in a vimrc file somewhere. That might get to alias expansion
 inside vim.

There is a mutt script that provides omnicompletion of mutt aliases: 

http://www.vim.org/scripts/script.php?script_id=2533 

Hope it helps.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpoFanmfdAoC.pgp
Description: PGP signature


Re: Thank you for Mutt

2012-07-27 Thread Eduardo Alvarez
On Wed, Jul 25, 2012 at 05:01:50AM -0500, Jim Graham wrote:
 
 I have that archived somehwere here, if anyone wants me to post a
 copy, put it online, etc.  Just remember, put your coffee down
 before you read it or C|NK will be the result (that's another
 one from ASR---coffee, piped through the nose, onto the keyboard).

Yes, please. At least, I'd like it if you'd send it to me.

-- 
Eduardo Alvarez

Stercus, Stercus, Stercus, moriturus sum
  -- Rincewind The Wizzard


pgpcbHdNJ94cg.pgp
Description: PGP signature