Re: Deleting large number of emails from busy mailbox

2023-03-15 Thread Vegard Svanberg
* Kevin J. McCarthy  [2023-03-14 19:16]:

> > After reading the fine manual, I don't see an immediate way to disable
> > trash. Assuming I'll have to move it to IMAP then. Which is fine, just
> > wondering if trash could be disabled as I don't really need it.
> 
> $trash starts out empty, so there must be a line in your muttrc setting it.
> Just comment out that line.
> 
> But, in general, to unset it, you can just 'set trash=""' or 'unset trash'
> in your muttrc file.

Yes, it was me making a thinko here. I somehow interpreted the manual
that there was a default trash and you could only override it with
another one. Thanks - working as I want it now!

P.S. Multi-threaded GUI version coming up any time soon? ;-)

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Deleting large number of emails from busy mailbox

2023-03-15 Thread Vegard Svanberg
* Patrick Shanahan  [2023-03-14 12:56]:

> > After reading the fine manual, I don't see an immediate way to disable
> > trash. Assuming I'll have to move it to IMAP then. Which is fine, just
> > wondering if trash could be disabled as I don't really need it.
>  
> you haven't gone deep enough.
[snip]

You're absolutely right. Thanks! That worked.

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Deleting large number of emails from busy mailbox

2023-03-14 Thread Vegard Svanberg
* Dan Ritter  [2023-03-14 00:29]:

> You could:
>   * operate on local storage with mutt -f Maildir/

That's actually slower than letting Dovecot handling it...

> or
>   * build lists with doveadm-search and delete with
> doveadm-expunge

That's a good idea, I'll look into that. Thanks.

> Even on good SSDs, a half-million messages is too many to be
> sensibly dealt with by humans. Move things into a folder system
> automatically, discard or archive messages when you are done
> with them.

Nah, works brilliantly for me and has for many, many years. Even on
spinning rust! :)

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Deleting large number of emails from busy mailbox

2023-03-14 Thread Vegard Svanberg
* Kevin J. McCarthy  [2023-03-13 21:07]:

> Do you mean the 2000 emails you want to delete, or the half-million emails
> in the mailbox?

The 2000 I want to delete, yes. :-)

> If it's the first, it sounds as if Mutt thinks the value in $trash is not
> the same server as the mailbox you are connected do.  Otherwise it would do
> a UID COPY on the server side, which would be faster.

Holy moly, I just re-discovered I had a trash! Which, needless to say, is
huge... I'd forgotten all about it.

You're right, they're not the same. Mailbox is on IMAP, trash is a local
file.

Well, that explains it, then. 

After reading the fine manual, I don't see an immediate way to disable
trash. Assuming I'll have to move it to IMAP then. Which is fine, just
wondering if trash could be disabled as I don't really need it.

> > a few minutes), Mutt never gets around to actually removing the
> > messages. It just seems to abort in the middle of the operation and I
> > have to do expunge again until I eventually succeed after a few
> > attempts.
> > 
> > Anything I could do my end to solve this?
> 
> That's unfortunately an old issue with Mutt's sync design.  It checks the
> mailbox for any reopen/new/flag updates before trying to sync and aborts if
> that's the case.

Well at least that explains why it's behaving that way. Thank you!

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Deleting large number of emails from busy mailbox

2023-03-13 Thread Vegard Svanberg
Hi,

Latest mutt on local IMAP (Dovecot).

My mailbox is rather busy (and contains around half a million emails).

Say I want to delete 2000 emails.

I tag them, ;d and press X to expunge. Mutt starts fetching every email
(not sure why that is - does it have to?), then would normally remove
them after that.

Problem is: if a new email arrives during this process (which could take
a few minutes), Mutt never gets around to actually removing the
messages. It just seems to abort in the middle of the operation and I
have to do expunge again until I eventually succeed after a few
attempts.

Anything I could do my end to solve this?

Thanks!

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Undefining HAVE_BKGDSET in config.h doesn't work any more

2021-11-17 Thread Vegard Svanberg
* Kevin J. McCarthy  [2021-11-17 18:37]:

> > However from 2.1.x(?) this doesn't seem to be working any more. I've
> > also tried defining it explicitely to 0...
> 
> Mutt 2.1+ will use bkgrndset() if available.  Try undefining HAVE_BKGRNDSET
> too.

Ha. That worked. Should've seen it myself - it was on the line below.
*facepalm*

Thanks.

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Undefining HAVE_BKGDSET in config.h doesn't work any more

2021-11-17 Thread Vegard Svanberg
Hi,

To get around the rather annoying copy-and-paste problem[1] when running
Mutt in Screen or Tmux, I've up until now undefined HAVE_BKGDSET in
config.h and all has been well.

However from 2.1.x(?) this doesn't seem to be working any more. I've
also tried defining it explicitely to 0...

Any other clues as to how to work around the issue[1]?

[1] If you copy and paste from within a Screen or Tmux session, the
empty spaces behind a line will be part of the paste.

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Going GUI...er

2020-04-04 Thread Vegard Svanberg
Hi,

I love Mutt.

However, I'm increasingly finding myself having to resort to various
tricks to deal with HTML only emails (with picture attachments),
calendar invites, and other oddities and awkward stuff people send.

My Holy Grail, which would be a native Mutt GUI client, I guess, doesn't
seem to exist.

I don't know how I would survive with a regular GUI client like
Thunderbird or Evolution. I've tried, but they all suck. Mutt's
keybindings, search and navigation features are irreplaceable.

Currently I'm running Mutt from a machine which I ssh into from 5 other
computers I use frequently (IMAP backend - self-hosted).

Suggestions? What does everyone else do?

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Viewing sent mail

2019-05-13 Thread Vegard Svanberg
* Kevin J. McCarthy  [2019-05-13 18:57]:

> From your inbox, try typing 'c'.  That should give you a prompt:
>Open mailbox ('?' for list):
> Type '?'.  This should show you a list of the mailboxes under
> imaps://imap.gmail.com/.
> 
> Scroll down to the [Gmail]/ selection and hit enter.  Then scroll down to
> the "Sent Mail" folder and hit enter.

Just wanted to chip in here to say I run multiple instances of Mutt in a
screen/tmux session; one window per mailbox. That way I can keep
multiple mailboxes open without having to open, wait, etc. 

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Copying text from Mutt viewer also copies trailing space

2019-01-18 Thread Vegard Svanberg
* Vegard Svanberg  [2019-01-18 12:05]:

> There was a suggestion in there to #undef HAVE_BKGDSET in config.h, but
> that didn't make any difference for me. There was also a reference to
> the ol' trac at dev.mutt.org, but that site isn't online anymore.

Err, I'm an idiot. Of course that fixed it - I'd managed to re-run
configure after I'd changed it...

Anyway - that solves the problem, although it also means the background
on background-coloured lines like the Subject line gets chopped at the
last character.

But I can live with that for the moment - more important that copy
works properly!

So to anyone Googling for a half-arsed solution:

1. edit config.h
2. find HAVE_BKGDSET and #undef it.

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: Copying text from Mutt viewer also copies trailing space

2019-01-18 Thread Vegard Svanberg
* m...@raf.org  [2019-01-02 05:37]:

> > > When I copy text from Mutt into whatever else (vim, text editor, browser
> > > textarea... doesn't matter), the paste includes the (trailing) spaces
> > > (\s) from column 80-120, so I have to manually remove them.
> 
> for me it happens when mutt is in tmux or screen in xterm,
> pasting into gvim.
[snip]

Thanks for the useful feedback! I use gnome-terminal at the moment so I
don't have that option, however hunting around the web with my
Go(o)g(g)les on, I found this:

https://mutt-users.mutt.narkive.com/Qw2cfXkS/mutt-gnome-terminal-and-whitespace-fill-issue

So seems this has been discussed before and that it has to do with the
way Mutt sets the background colour, or something like that.

There was a suggestion in there to #undef HAVE_BKGDSET in config.h, but
that didn't make any difference for me. There was also a reference to
the ol' trac at dev.mutt.org, but that site isn't online anymore.

Anyway, will keep hunting - at least this thread confirms I'm not alone. :)

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Copying text from Mutt viewer also copies trailing space

2019-01-01 Thread Vegard Svanberg
Hi,

Happy New Year!

I have a problem that's been bugging me for years:

Let's say the terminal window is appr. 120 characters wide. The email
I'm reading is ~80 chars wide. In other words, columns 80-120 are blank.

When I copy text from Mutt into whatever else (vim, text editor, browser
textarea... doesn't matter), the paste includes the (trailing) spaces
(\s) from column 80-120, so I have to manually remove them.

This seems to only happen when I run Mutt inside screen or tmux.
However, I use screen/tmux extensively and I only observe this
phenomenon inside the Mutt viewer.

If I, say, edit the email so it opens in vim (like esc-e or hitting
reply), this does not occur.

How can I find out what causes this and (more importantly) fix it?

-- 
Vegard Svanberg  [*Takapa@IRC (EFnet)]



Re: 100,000 messages, and counting.

2014-02-18 Thread Vegard Svanberg
* Igor Sosa Mayor joseleopoldo1...@gmail.com [2014-02-18 13:33]:

 a little bit OT, but could you please tell me how you have configured
 screen and mutt? Are you starting mutt with mutt -R?

No configuration, really, I just start screen and start each mutt
instance in a new window. No concurrency problems as each mutt handles a
different folder (and, as mentioned, I use IMAP with Dovecot anyway).

-- 
Vegard Svanberg veg...@svanberg.no [*Takapa@IRC (EFnet)]



Re: 100,000 messages, and counting.

2014-02-17 Thread Vegard Svanberg
* Alan Mackenzie a...@muc.de [2014-02-17 21:04]:

  mbox or maildir?
 
 mbox.  I've never used maildir, but it strikes me that it would be
 slower, not counting the initial 12s loading time.

I'm currently at 294000 and use Maildir, but with Dovecot/IMAP in
between. It's very fast, and I've only run into two minor issues: New
mail isn't reported instantly (I often have to open an unread message
(since last mutt restart) to trigger new mail check), and a delay/hang
for a few seconds when mutt checks for new mail (usually when I 'q' a
message I've just read).

Used mbox before, but apart from the corruption issues with mbox,
deleting a message and rewriting the mailbox would take ages and it was
hopeless to manage. I also used AOX (SQL based, IMAP interface) for a
long time, but there was simply too many bugs and quirks so I had to let
it go.

I use screen with multiple instances of Mutt, to avoid having to
change/re-open different mailboxes all the time. That also has the
advantage I can just screen -r from any computer to bring up the e-mail
environment.

Oh, and I also have Thunderbird open on a couple of machines, in case I
get a really annoying HTML mail or some weird attachments Mutt won't
handle.

 Plain, indeed!  I find mutt searching very sophisticated.

Indeed. I wish Mutt would come in a GUI version, though, so that HTML
mail etc. could be displayed properly. Or that someone made a Mutt
plugin to Thunderbird or some other GUI e-mail client, so that you
could use the same keybindings as Mutt (and use / to quickly find an
e-mail you're looking for, instead of having to search).

bastian-muttu...@t6l.de wrote:

  I started to use trash as my 2nd level mailbox, because startup of mutt 
  took too
  long.

Now that's weird...

-- 
Vegard Svanberg veg...@svanberg.no [*Takapa@IRC (EFnet)]



Re: Sending eMail ...

2011-07-06 Thread Vegard Svanberg
* Marcus Franke marcus.fra...@gmx.net [2011-07-06 09:39]:

 When I hit the button for a new mail, mutt drops into the background
 and a new vi(m) session is opened I can type my mail in.

Maybe not what you're after, but I'm running multiple mutt sessions.
One for the inbox, one for the sent folder, and similar for older
folders. I tend to use the sent folder session to write e-mails, so
that I can check e-mails while typing (often useful when replying,
because I have to reference old e-mails).

Combined with screen, this works pretty good for me.

What I would like to see is an attachment-reminder. Like if I'd
mentioned please see the attachment or another text string in the
e-mail, I'd like Mutt to prompt if I should add an attachment. Like
Thunderbird and Evolution does.

-- 
Vegard Svanberg veg...@svanberg.no [*Takapa@IRC (EFnet)]



Outlook (Exchange) meeting invitations

2011-02-01 Thread Vegard Svanberg
How do mutt people deal with Outlook (Exchange) meeting invitations?

-- 
Vegard Svanberg veg...@svanberg.no [*Takapa@IRC (EFnet)]



Re: forwarding mail with attachments

2010-02-24 Thread Vegard Svanberg
* Daniel Dalton d.dal...@iinet.net.au [2010-02-25 07:27]:

 How can I make mutt forward all attachments as well as the original
 email when using 'f' the forward command? I would also like the original
 text from the email to be included in the body of the message as it is
 now.

Press 'v' in the index (on the e-mail you want to forward) to get the
attachment list. Then 't' (tag) on all lines (_all_, including
text/plain etc), then ';f', and answer no on the forward as attachments
question.

-- 
Vegard Svanberg veg...@svanberg.no [*tak...@irc (EFnet)]