Re: delete a message permanently with Gmail

2015-09-06 Thread Michael Tatge
* On Sun, Sep 06, 2015 12:58AM +0200 Suvayu Ali (fatkasuvayu+li...@gmail.com) 
muttered:
> On Sat, Sep 05, 2015 at 09:10:20PM +0200, Michael Tatge wrote:
> > * On Sat, Sep 05, 2015 10:52AM -0400 Xu Wang (xuwang...@gmail.com) muttered:
> > > Whenever I delete a message, GMail still puts it in All mail. How can
> > > I delete it permanently? 
> > 
> > You can only delete messages in "All mail" via the web frontend. Blame
> > google...
> 
> This is incorrect.  See my comments at the end of this message:
> 
> 

I see, thanks for the pointer.
https://support.google.com/mail/answer/78755?hl=en
"If you delete a message from your inbox or one of your custom folders
in your IMAP client, it will still appear in [Gmail]/All Mail."
[...]
If you delete a message from [Gmail]/Spam or [Gmail]/Trash, it will be
deleted permanently."

https://support.google.com/mail/answer/78892
"Do not save deleted messages to your [Gmail]/Trash folder because this
will delete a message in all folders."

So that's what you need to do. :)
Save messages to be deleted forever in [Gmail]/Trash, then empty
[Gmail]/Trash.

Michael
-- 
PGP-Key-ID: EEE7D043
Jabber: in...@jabber.de


Re: delete a message permanently with Gmail

2015-09-06 Thread Suvayu Ali
On Sun, Sep 06, 2015 at 10:42:56AM +0200, Michael Tatge wrote:
> * On Sun, Sep 06, 2015 12:58AM +0200 Suvayu Ali (fatkasuvayu+li...@gmail.com) 
> muttered:
> > On Sat, Sep 05, 2015 at 09:10:20PM +0200, Michael Tatge wrote:
> > > * On Sat, Sep 05, 2015 10:52AM -0400 Xu Wang (xuwang...@gmail.com) 
> > > muttered:
> > > > Whenever I delete a message, GMail still puts it in All mail. How can
> > > > I delete it permanently? 
> > > 
> > > You can only delete messages in "All mail" via the web frontend. Blame
> > > google...
> > 
> > This is incorrect.  See my comments at the end of this message:
> > 
> > 
> 
> I see, thanks for the pointer.
> https://support.google.com/mail/answer/78755?hl=en
> "If you delete a message from your inbox or one of your custom folders
> in your IMAP client, it will still appear in [Gmail]/All Mail."
> [...]
> If you delete a message from [Gmail]/Spam or [Gmail]/Trash, it will be
> deleted permanently."
> 
> https://support.google.com/mail/answer/78892
> "Do not save deleted messages to your [Gmail]/Trash folder because this
> will delete a message in all folders."
> 
> So that's what you need to do. :)
> Save messages to be deleted forever in [Gmail]/Trash, then empty
> [Gmail]/Trash.

The simpler method is to just deactivate IMAP access to "All Mail".

-- 
Suvayu

Open source is the future. It sets us free.


Re: delete a message permanently with Gmail

2015-09-06 Thread Michael Tatge
* On Sun, Sep 06, 2015 10:54AM +0200 Suvayu Ali (fatkasuvayu+li...@gmail.com) 
muttered:
> On Sun, Sep 06, 2015 at 10:42:56AM +0200, Michael Tatge wrote:
> > So that's what you need to do. :)
> > Save messages to be deleted forever in [Gmail]/Trash, then empty
> > [Gmail]/Trash.
> 
> The simpler method is to just deactivate IMAP access to "All Mail".

Sure, that's easier, but - "All Mail" is a nice feature too. You might
want to hang on to it.

Michael
-- 
PGP-Key-ID: EEE7D043
Jabber: in...@jabber.de


Re: delete a message permanently with Gmail

2015-09-06 Thread Mick
On Sunday 06 Sep 2015 10:15:48 Michael Tatge wrote:
> * On Sun, Sep 06, 2015 10:54AM +0200 Suvayu Ali 
(fatkasuvayu+li...@gmail.com) muttered:
> > On Sun, Sep 06, 2015 at 10:42:56AM +0200, Michael Tatge wrote:
> > > So that's what you need to do. :)
> > > Save messages to be deleted forever in [Gmail]/Trash, then empty
> > > [Gmail]/Trash.
> > 
> > The simpler method is to just deactivate IMAP access to "All Mail".
> 
> Sure, that's easier, but - "All Mail" is a nice feature too. You might
> want to hang on to it.
> 
> Michael

How do I deactivate "All Mail"?  Although not listed with top level 
folders/labels when I press 'c', '?', it shows up when I enter  "[Gmail]/":

 1 IMAP  ../
 2 IMAP  All Mail
 3 IMAP  Bin
 4 IMAP  Drafts
 5 IMAP  Important
 6 IMAP  Sent Mail
 7 IMAP  Spam
 8 IMAP  Starred

On the folder sidebar neither "[Gmail]/" nor "All Mail" are listed, but I 
can't recall what I changed in the configuration to make this so.
 
I'm asking because it takes forever to sync with the mailserver every time I 
login (I have more than 100k messages).
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: delete a message permanently with Gmail

2015-09-06 Thread Michael Tatge
* On Sun, Sep 06, 2015 11:26AM +0100 Mick (michaelkintz...@gmail.com) muttered:
> How do I deactivate "All Mail"?

You have to use the web interface for that.
Settings->Labels-> All Mail [_] Show in IMAP (uncheck)

Michael
-- 
PGP-Key-ID: EEE7D043
Jabber: in...@jabber.de


collapse threads automatically after imap mailbox update

2015-09-06 Thread Steve Schmerler
Hello all

I'm using 

folder-hook . "push "

to collapse threads. 

Recently, I started using imapfilter since one of the imap servers to
which I'm connecting has no sieve support.

The problem is now that when imapfilter alters the mailbox that I am
currently viewing (move mail, ...), then mutt will uncollapse all
threads. Is there a way to collapse them automatically after a mailbox
update? Thanks for any hints!

best,
Steve


Re: highlighting *bold* and _underline_ in mutt

2015-09-06 Thread mwnx
> You're right, I had not noticed. Disturbing.
> 
> On this issue, I have commented out my "color" and "mono" directives for
> "bold" and "underline", which at least gets me bold and underline ANSI
> sequences transcribed as the terminal's bold and underline.
> 
> [ Aside: I discovered that I had to comment these out; I couldn't say "colour
>  underline underline default" - mutt rejects "underline" as a colour!
> ]
> 
> Still, I can see that allowing ANSI through conflicts with mutt's coloured
> markup of boundaries (signatures, attachment markers etc).
> 
> What is a sensible approach here?
> 
> Cheers,
> Cameron Simpson 

Well, I was going to start hacking on mutt itself, but I figured an
extremely simple solution is to filter out the "\033[" sequences that mutt
uses to identify the start of an ANSI sequence before creating our own. This
filtering can be done in the highlighting script itself, by adding a new
line at the start:

s/\[/\^\[\[/g

Resulting in:

s/\[/^[[/g
/^[^]/{
  s/\*\([^*][^*]*\)\*/\1/g
  s/\([ ]\)_\([^_][^_]*\)_\([   ]\)/\1\2\3/g
}

-- 
mwnx
GPG: AEC9 554B 07BD F60D 75A3  AF6A 44E8 E4D4 0312 C726


Re: highlighting *bold* and _underline_ in mutt

2015-09-06 Thread Cameron Simpson

On 06Sep2015 22:29, mwnx  wrote:

[... hand crafted signature markers ...]


You're right, I had not noticed. Disturbing.

On this issue, I have commented out my "color" and "mono" directives for
"bold" and "underline", which at least gets me bold and underline ANSI
sequences transcribed as the terminal's bold and underline. [...]
Still, I can see that allowing ANSI through conflicts with mutt's coloured
markup of boundaries (signatures, attachment markers etc).

What is a sensible approach here?


Well, I was going to start hacking on mutt itself, but I figured an
extremely simple solution is to filter out the "\033[" sequences that mutt
uses to identify the start of an ANSI sequence before creating our own. This
filtering can be done in the highlighting script itself, by adding a new
line at the start:

   s/\[/\^\[\[/g

[...]

Hmm, yes.

But for eye candy junkies like myself who want the ANSI colors if supplied?

I am wondering if mutt could be modified to use some of the ANSI line drawing 
characters for the signature and attachment marker lines, like this:


 |--- signature marker line ... ---|

where the "|---" and "---|" are actually ANSI line characters like those used 
to show thread relationships in the index. i.e. Visually pleasing but not 
something that mutt honours in message bodies.


Of course, maybe someone will point out that these are regular Unicode markers 
and can come through anyway :-(


Alternatively, supposing mutt had a:

 color markers foreground background

directive which actually forbade reusing those colours in the message body: 
translate any use of the foreground colour specified there into the terminal's 
bold or bright sequence, or if none, to "default".


Thoughts?

Cheers,
Cameron Simpson 

Everything that can be invented has been invented.
   - Charles H. Duell, Commissioner, U.S. Office of Patents, 1899.


Re: delete a message permanently with Gmail

2015-09-06 Thread Xu Wang
On Sun, Sep 6, 2015 at 11:48 AM, Michael Tatge  wrote:
> * On Sun, Sep 06, 2015 11:26AM +0100 Mick (michaelkintz...@gmail.com) 
> muttered:
>> How do I deactivate "All Mail"?
>
> You have to use the web interface for that.
> Settings->Labels-> All Mail [_] Show in IMAP (uncheck)
>
> Michael
> --
> PGP-Key-ID: EEE7D043
> Jabber: in...@jabber.de

Interesting. Thank you to everyone for all the ideas. I realize that
if i move a message to the trash folder, and then sync. There is not
the message in the all mail. I will think of possible options and
decide which is best for the flow of work I am following.

Kind regards,

Xu


C-a c binding in pager view

2015-09-06 Thread Ian Zimmerman
I've had this in .muttrc for a while (along with other bindings starting
with \ca):

macro index,pager \cac "~N" "catch 
up"

Until now I always did it from the index, and it works flawlessly.

Today I tried it in the pager for the first time, and of course
something exciting and unexpected happens :-)  Mutt says:

Warning: This alias name may not work.  Fix it? ([yes]/no): 

When I hit n (which looked safest), it says:

Address: sender@sender.domain

(where the real address reflects the sender of the message I'm paging
through).  What is going on?  When I hit the help key in pager mode the
macro shows up as it should and I see no other binding for this key
sequence anywhere.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.



Re: Automatically Highlight (Select) Current Folder in Folder View

2015-09-06 Thread Grady Martin

On 2015年08月31日 19時28分, Ian Zimmerman wrote:

What's with the Asian script in your citation string, btw?


My $LANG is ja_JP.utf8.  I think a date_format of "%x %H時%M分" caused it to look 
that way.

Thank you for all the help.  The mailbox shortcut trick was interesting to 
learn about.  Sadly, I get no cigar, as mutt does not currently seem capable of 
highlighting the current folder when accessing the folder view.


If List Reply Fails, Fall Back to Group Reply or Reply

2015-09-06 Thread Grady Martin

Hello, fellow puppies.  The mutt mailing list is magical.  Executing a regular 
 results in a prompt that confirms the recipient (list or sender).

Not all mailing lists work so well.  These require .  However, because 
 fails for mail not originating from a list, it would be nice if it could fall back 
to, say,  or .  Can this be done?


Re: If List Reply Fails, Fall Back to Group Reply or Reply

2015-09-06 Thread Patrick Shanahan
* Grady Martin  [09-06-15 21:32]:
> Hello, fellow puppies.  The mutt mailing list is magical.  Executing a
> regular  results in a prompt that confirms the recipient (list or
> sender).
> 
> Not all mailing lists work so well.  These require . 
> However, because  fails for mail not originating from a
> list, it would be nice if it could fall back to, say,  or
> .  Can this be done?

line wrapping would really be nice.

Read the fine manual about "lists" and "subscribe" in muttrc

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


format=flowed (was: If List Reply Fails, Fall Back to Group Reply or Reply)

2015-09-06 Thread Cameron Simpson

On 06Sep2015 21:38, Patrick Shanahan  wrote:

* Grady Martin  [09-06-15 21:32]:

Hello, fellow puppies.  The mutt mailing list is magical.  Executing a
regular  results in a prompt that confirms the recipient (list or
sender).

[...]


line wrapping would really be nice.


His message was format=flowed, and the lines wrapped nicely on my mutt display 
here. Is there something specific wrong?


Cheers,
Cameron Simpson 


Re: format=flowed (was: If List Reply Fails, Fall Back to Group Reply or Reply)

2015-09-06 Thread Patrick Shanahan
* Cameron Simpson  [09-06-15 22:41]:
> On 06Sep2015 21:38, Patrick Shanahan  wrote:
> >* Grady Martin  [09-06-15 21:32]:
> >>Hello, fellow puppies.  The mutt mailing list is magical.  Executing a
> >>regular  results in a prompt that confirms the recipient (list or
> >>sender).
> [...]
> >
> >line wrapping would really be nice.
> 
> His message was format=flowed, and the lines wrapped nicely on my mutt
> display here. Is there something specific wrong?

Most certainly, longer lines than 80 chars.  
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: format=flowed (was: If List Reply Fails, Fall Back to Group Reply or Reply)

2015-09-06 Thread Cameron Simpson

On 06Sep2015 22:54, Patrick Shanahan  wrote:

* Cameron Simpson  [09-06-15 22:41]:

On 06Sep2015 21:38, Patrick Shanahan  wrote:
>* Grady Martin  [09-06-15 21:32]:
>>Hello, fellow puppies.  The mutt mailing list is magical.  Executing a
>>regular  results in a prompt that confirms the recipient (list or
>>sender).
[...]
>
>line wrapping would really be nice.

His message was format=flowed, and the lines wrapped nicely on my mutt
display here. Is there something specific wrong?


Most certainly, longer lines than 80 chars.


Hmm. I was going to complain about your reflow_* settings (even though the 
defaults are to reflow at 78 columns), but I see that they are not properly 
obeyed for me either. Grady's message wraps at my terminal width, even though I 
have just set reflow_wrap to 40 as a test.


More interestingly, my reply to you _does_ honour my reflow settings when 
displayed.


This is just weird.

More testing needed...

Cheers,
Cameron Simpson 


Re: format=flowed (was: If List Reply Fails, Fall Back to Group Reply or Reply)

2015-09-06 Thread Ian Zimmerman
On 2015-09-07 13:39 +1000, Cameron Simpson wrote:

> Hmm. I was going to complain about your reflow_* settings (even
> though the defaults are to reflow at 78 columns), but I see that they
> are not properly obeyed for me either. Grady's message wraps at my
> terminal width, even though I have just set reflow_wrap to 40 as a
> test.
>
> More interestingly, my reply to you _does_ honour my reflow settings
> when displayed.

Encoding.  It is not obeyed for QP parts, in my experience.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.



Re: format=flowed (was: If List Reply Fails, Fall Back to Group Reply or Reply)

2015-09-06 Thread Grady Martin

On 2015年09月07日 13時39分, Cameron Simpson wrote:

Hmm. I was going to complain about your reflow_*
settings (even though the defaults are to reflow
at 78 columns), but I see that they are not
properly obeyed for me either. Grady's message
wraps at my terminal width, even though I have
just set reflow_wrap to 40 as a test.


The reflow_wrap setting does not seem to affect messages for me, either, 
despite reflow_text being set.  This could be a problem, as the ideal display 
width of lines is a matter of personal opinion, and people's opinions differ.  
Personally, I do not like wasted screen space and have set reflow_wrap to 0.  
The problem is that Patrick, for example, would probably like a reflow_wrap 
value of 80 and yet setting it to 80 does nothing.

In the spirit of experimentation...

On 2015年09月07日 13時39分, Cameron Simpson wrote:

Hmm. I was going to complain about your reflow_* settings (even though the 
defaults are to reflow at 78 columns), but I see that they are not properly 
obeyed for me either. Grady's message wraps at my terminal width, even though I 
have just set reflow_wrap to 40 as a test.


Mutt 1.5.24 (2015-08-30)


Re: If List Reply Fails, Fall Back to Group Reply or Reply

2015-09-06 Thread Grady Martin

On 2015年09月06日 21時38分, Patrick Shanahan wrote:

line wrapping would really be nice.

Read the fine manual about "lists" and "subscribe" in muttrc


Here is what the manual says:


Mutt has a few nice features for handling mailing lists. In order to take
advantage of them, you must specify which addresses belong to mailing lists,
and which mailing lists you are subscribed to.


Laziness is a virtue.  Do you think it would be possible to abbreviate the
trouble of having to specify regexes or addresses for every mailing list?  As
is, I use  for lists, and that fine works--but it would be nice to
have one, intelligent reply command.


Re: If List Reply Fails, Fall Back to Group Reply or Reply

2015-09-06 Thread Cameron Simpson

On 07Sep2015 00:41, Grady Martin  wrote:

On 2015年09月06日 21時38分, Patrick Shanahan wrote:

line wrapping would really be nice.

Read the fine manual about "lists" and "subscribe" in muttrc


Here is what the manual says:


Mutt has a few nice features for handling mailing lists. In order to take
advantage of them, you must specify which addresses belong to mailing lists,
and which mailing lists you are subscribed to.


Laziness is a virtue.  Do you think it would be possible to abbreviate the
trouble of having to specify regexes or addresses for every mailing list?  As
is, I use  for lists, and that fine works--but it would be nice to
have one, intelligent reply command.


I use  myself. For everthing: lists, direct email, etc. Of course 
one must review the To/CC this way, but it works well for me. I've practically 
forgotten that the "r" and "l" keys exist...


I confess I have never understood the mindset around making "lists" and 
"subscribe" separate notions. Could someone outline the use case for this to me 
please?


Cheers,
Cameron Simpson