Re: Gmail undelete configuration

2018-02-19 Thread Yubin Ruan
On Mon, Feb 19, 2018 at 12:54:19PM -0800, Keith Smiley wrote:
> Hey everyone,
> 
> I was wondering if anyone had a working gmail configuration with offlineimap
> that correctly supports undeleting messages. In my configuration[0] I
> delete/archive by moving messages to the appropriate mailboxes.

You don't have to move messages to another mailboxes when deleting message.
Just mark then as deleted (by pressing 'd') will be fine. If that 'delete'
gets populated to the center Gmail server by offlineimap, the deleted message
will be moved to /Trash automatically. That said, you don't have to do this
binding

macro index,pager d "+keithbsmiley-gmail.com/trash" 
"Delete message"

Using the default delete operation will allow you to undelete messages
normally.

> Just using
> standard `u` command with these results in the message being marked
> correctly in the index, but then on the next offlineimap refresh, it's
> removed since it still exists in the trash.
> 
> I expected to be able to solve this with something like this:
> 
> ```
> macro index u "+.../INBOX"
> ```
> 
> But this results in duplicates of the message in the index, and the message
> still gets wiped on the next sync.
> 
> Any advice / examples would be appreciated!
> 
> 
> 0: 
> https://github.com/keith/dotfiles/blob/master/mutt/accounts/gmail.account#L9-L11
> 
> --
> Keith Smiley
> 

-- 
Yubin Ruan 


Re: Why does Outlook hate my mutt and close it after one minute?

2018-02-19 Thread felix
And boom, just like that, both are working again.

I hate computers.

On Mon, Feb 19, 2018 at 05:28:44AM -0800, fe...@crowfix.com wrote:
> I run mutt from both Ubuntu and MacOS, and in the past week or so, they have 
> been shutting down after only one minute.  This morning, I finally decided to 
> try "-d 5" and see what I coud see.  This is that log, once it's settled down 
> after startup and is idle.
> 
> [2018-02-19 04:58:02] mutt_addr_is_user: no, all failed.
> [2018-02-19 04:58:02] mutt_num_postponed: 0 postponed IMAP messages found.
> [2018-02-19 04:58:17] mutt_index_menu[1083]: Got op -2
> [2018-02-19 04:58:32] mutt_index_menu[1083]: Got op -2
> [2018-02-19 04:58:47] mutt_index_menu[1083]: Got op -2
> [2018-02-19 04:59:02] mutt_index_menu[1083]: Got op -2
> [2018-02-19 04:59:02] 4< * BYE Connection is closed. 13
> [2018-02-19 04:59:02] Handling BYE
> [2018-02-19 04:59:02] Connection is closed. 13
> [2018-02-19 04:59:04] Mailbox closed
> [2018-02-19 04:59:05] Looking up outlook.office365.com...
> [2018-02-19 04:59:05] Connecting to outlook.office365.com...
> [2018-02-19 04:59:05] Connected to outlook.office365.com:143 on fd=5
> [2018-02-19 04:59:05] tls_socket_read (The TLS connection was non-properly 
> terminated.)
> [2018-02-19 04:59:07] imap_cmd_step: Error reading server response.
> [2018-02-19 04:59:07] mutt_socket_close: Attempt to close closed connection.
> [2018-02-19 04:59:07] Error reading IDLE response
> [2018-02-19 04:59:09] mutt_index_menu[1083]: Got op 92
> 
> The Ubuntu mutt is NeoMutt 20170609 (1.8.3).  The MacOS mutt is 1.5.23 
> (2015-03-12).  Configurations are the same.
> 
> set crypt_use_gpgme=no
> aset imap_check_subscribed=yes
> set imap_idle=yes
> set imap_keepalive=900
> set imap_list_subscribed=no
> set imap_pass="$my_pass"
> set imap_passive=yes
> set imap_user="$my_u...@xxx.com"
> set mail_check=60
> 
> set smtp_pass="$my_pass"
> set smtp_url="smtp://$my_u...@xxx.com:$my_p...@smtp.office365.com:587"
> 
> set ssl_starttls=yes
> set timeout=15
> 
> Configuration hasn't changed, password hasn't changed, account hasn't changed.
> 
> Changing mail_check to 30 or 120 still shut down after 60 seconds.
> 
> Changing imap_keepalive to 30 still shut down after 60 seconds, with IDLEs in 
> the middle:
> 
> [2018-02-19 05:18:56] mutt_num_postponed: 0 postponed IMAP messages found.
> [2018-02-19 05:19:11] mutt_index_menu[1083]: Got op -2
> [2018-02-19 05:19:26] mutt_index_menu[1083]: Got op -2
> [2018-02-19 05:19:26] 4> DONE^M
> a0011 IDLE^M
> [2018-02-19 05:19:26] 4< a0010 OK IDLE completed.
> [2018-02-19 05:19:26] 4< + IDLE accepted, awaiting DONE command.
> [2018-02-19 05:19:41] mutt_index_menu[1083]: Got op -2
> [2018-02-19 05:19:56] mutt_index_menu[1083]: Got op -2
> [2018-02-19 05:19:56] 4> DONE^M
> a0012 IDLE^M
> [2018-02-19 05:19:56] 4< * BYE Connection is closed. 13
> 
> -- 
> ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
>  Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
>   GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
> I've found a solution to Fermat's Last Theorem but I see I've run out of room 
> o

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Gmail undelete configuration

2018-02-19 Thread Keith Smiley

Hey everyone,

I was wondering if anyone had a working gmail configuration with 
offlineimap that correctly supports undeleting messages. In my 
configuration[0] I delete/archive by moving messages to the appropriate 
mailboxes. Just using standard `u` command with these results in the 
message being marked correctly in the index, but then on the next 
offlineimap refresh, it's removed since it still exists in the trash.


I expected to be able to solve this with something like this:

```
macro index u "+.../INBOX"
```

But this results in duplicates of the message in the index, and the 
message still gets wiped on the next sync.


Any advice / examples would be appreciated!


0: 
https://github.com/keith/dotfiles/blob/master/mutt/accounts/gmail.account#L9-L11

--
Keith Smiley



Why does Outlook hate my mutt and close it after one minute?

2018-02-19 Thread felix
I run mutt from both Ubuntu and MacOS, and in the past week or so, they have 
been shutting down after only one minute.  This morning, I finally decided to 
try "-d 5" and see what I coud see.  This is that log, once it's settled down 
after startup and is idle.

[2018-02-19 04:58:02] mutt_addr_is_user: no, all failed.
[2018-02-19 04:58:02] mutt_num_postponed: 0 postponed IMAP messages found.
[2018-02-19 04:58:17] mutt_index_menu[1083]: Got op -2
[2018-02-19 04:58:32] mutt_index_menu[1083]: Got op -2
[2018-02-19 04:58:47] mutt_index_menu[1083]: Got op -2
[2018-02-19 04:59:02] mutt_index_menu[1083]: Got op -2
[2018-02-19 04:59:02] 4< * BYE Connection is closed. 13
[2018-02-19 04:59:02] Handling BYE
[2018-02-19 04:59:02] Connection is closed. 13
[2018-02-19 04:59:04] Mailbox closed
[2018-02-19 04:59:05] Looking up outlook.office365.com...
[2018-02-19 04:59:05] Connecting to outlook.office365.com...
[2018-02-19 04:59:05] Connected to outlook.office365.com:143 on fd=5
[2018-02-19 04:59:05] tls_socket_read (The TLS connection was non-properly 
terminated.)
[2018-02-19 04:59:07] imap_cmd_step: Error reading server response.
[2018-02-19 04:59:07] mutt_socket_close: Attempt to close closed connection.
[2018-02-19 04:59:07] Error reading IDLE response
[2018-02-19 04:59:09] mutt_index_menu[1083]: Got op 92

The Ubuntu mutt is NeoMutt 20170609 (1.8.3).  The MacOS mutt is 1.5.23 
(2015-03-12).  Configurations are the same.

set crypt_use_gpgme=no
aset imap_check_subscribed=yes
set imap_idle=yes
set imap_keepalive=900
set imap_list_subscribed=no
set imap_pass="$my_pass"
set imap_passive=yes
set imap_user="$my_u...@xxx.com"
set mail_check=60

set smtp_pass="$my_pass"
set smtp_url="smtp://$my_u...@xxx.com:$my_p...@smtp.office365.com:587"

set ssl_starttls=yes
set timeout=15

Configuration hasn't changed, password hasn't changed, account hasn't changed.

Changing mail_check to 30 or 120 still shut down after 60 seconds.

Changing imap_keepalive to 30 still shut down after 60 seconds, with IDLEs in 
the middle:

[2018-02-19 05:18:56] mutt_num_postponed: 0 postponed IMAP messages found.
[2018-02-19 05:19:11] mutt_index_menu[1083]: Got op -2
[2018-02-19 05:19:26] mutt_index_menu[1083]: Got op -2
[2018-02-19 05:19:26] 4> DONE^M
a0011 IDLE^M
[2018-02-19 05:19:26] 4< a0010 OK IDLE completed.
[2018-02-19 05:19:26] 4< + IDLE accepted, awaiting DONE command.
[2018-02-19 05:19:41] mutt_index_menu[1083]: Got op -2
[2018-02-19 05:19:56] mutt_index_menu[1083]: Got op -2
[2018-02-19 05:19:56] 4> DONE^M
a0012 IDLE^M
[2018-02-19 05:19:56] 4< * BYE Connection is closed. 13

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


Re: Excessive rebound when deleting messages

2018-02-19 Thread Philipp Gesang
-<| Quoting Daniel G. , on Sunday, 2018-02-18 01:05:04 PM |>-
> I have observed, in distribution lists like this one of mutt for example,
> when a big number of messages are deleted at the same time with D,
> the administrator of the list unsuscribes you due to an excessive
> rebound. It happens even with already read messages.

Is it an IMAP mailbox? Then it could be the server sending RFC
3798 MDNs on your behalf.

> It is not a big problem, but I would like to understand the reasons
> and find a solution to delete messages without rebounds.

If the above guess is correct then it’s entirely up to the server
operator to suppress MDNs.

Best,
Philipp



signature.asc
Description: PGP signature