Re: mutt segmentation fault and mutt.core dump file

2013-08-13 Thread James Griffin
Mon 12.Aug'13 at 21:41:56 +0200, Christian Brabandt
 
> Try to get a debug built of mutt. backtraces are a lot more useful then. 
> The call to mutt_parse_hook and index_color() however suggests it's 
> caused by a hook changing your color definition.
> 
> regards,
> Christian

Thanks Christian, I will try that. I'll compile a mutt on my system and
enable that feature to test. I too noticed the bit about color in the gdb
output. The only color element I've changed recently is the indicator.
For now, I've removed to see if that was indeed the cause. I do have a
lot of color settings. I also use wrapper script to start mutt which sets
up some color elements. I have been using that for over a year and never
experienced a crash before. In fact, this is the first time mutt has
crashed on me in the 6 years I've been using it.

Thanks again for replying and assisting. 

Jamie. 
-- 


James Griffin: jmz at kontrol.kode5.net 

A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38


Beginner having difficulty saving to IMAP "sent" folder

2013-08-13 Thread sqlists

Hi,

I'm a completely new Mutt user with some CLI experience, and I'm trying 
to set it up with an IMAP provider.  I've run into a couple of obstacles 
I haven't been able to solve by performing a web search, using IRC or 
reading the wiki.


Spec: Debian 7 "Wheezy", Mutt 1.5.21.  I'm successfully connecting to 
IMAPS using TLS1.2 and can retrieve mail. Sending is set up to use 
Mutt's built-in SMTPS capability, though because of the problems below I 
haven't been able to confirm it works yet.


1) When attempting to send an email, immediately after tapping, "y", I 
get asked to authenticate over TLS.  Reading the log shows that this is 
an attempt to save the message to the IMAP "sent" folder.  But after 
authenticating the process fails with the following (prior lines have 
been included for context):


[LOG BEGINS]
[2013-08-13 15:23:26] mutt_sasl_cb_authname: getting authname for 
REDACTED:993
[2013-08-13 15:23:26] mutt_sasl_cb_authname: getting user for 
REDACTED:993
[2013-08-13 15:23:26] mutt_sasl_cb_pass: getting password for 
REDACTED@REDACTED@REDACTED:993

[2013-08-13 15:23:33] Authenticating (PLAIN)...
[2013-08-13 15:23:33] 6> a AUTHENTICATE PLAIN REDACTED
[2013-08-13 15:23:33] 6< a OK [CAPABILITY IMAP4rev1 LITERAL+ 
SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY 
THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE 
UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT 
SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA] Logged in

[2013-08-13 15:23:33] Handling CAPABILITY
[2013-08-13 15:23:33] IMAP queue drained
[2013-08-13 15:23:33] SASL protection strength: 0
[2013-08-13 15:23:33] SASL protection buffer size: 65536
[2013-08-13 15:23:33] Communication encrypted at 128 bits
[2013-08-13 15:23:33] 6> a0001 CAPABILITY
a0002 LIST "" ""
[2013-08-13 15:23:33] 6< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR 
LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES 
THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS 
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES 
WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA

[2013-08-13 15:23:33] Handling CAPABILITY
[2013-08-13 15:23:33] 6< a0001 OK Capability completed.
[2013-08-13 15:23:33] 6< * LIST (\Noselect) "." ""
[2013-08-13 15:23:33] Root delimiter: .
[2013-08-13 15:23:33] 6< a0002 OK List completed.
[2013-08-13 15:23:33] IMAP queue drained
[2013-08-13 15:23:33] mutt_write_fcc(): unable to open mailbox 
imaps://REDACTED/Sent in append-mode, aborting.

[LOG ENDS]

I can successfully navigate manually into the "Sent" folder on the 
server using Mutt, so this suggests to me that my "folder=" setting in 
my muttrc is correct.  I know the username and password I'm supplying 
are correct.  And even though the log shows the process as "aborting", 
Mutt continues to display, "Authenticating (PLAIN)..." at the foot of 
the window - at the moment it's up to 20 minutes and counting.


2) During the same process above, when Mutt asks me to authenticate for 
IMAPS, it asks for my login username, but pre-fills the field with my 
current user account.  How can I amend this behaviour so that it uses 
the IMAP username by default?  A web search reveals the, 
"mutt_addr_is_user" variable, but a search on the wiki and in the manual 
for this term gives no results.


Regards,

SQ.


Re: Beginner having difficulty saving to IMAP "sent" folder

2013-08-13 Thread Mick
On Tuesday 13 Aug 2013 16:04:51 sqli...@posteo.co.uk wrote:
> Hi,
> 
> I'm a completely new Mutt user with some CLI experience, and I'm trying
> to set it up with an IMAP provider.  I've run into a couple of obstacles
> I haven't been able to solve by performing a web search, using IRC or
> reading the wiki.
> 
> Spec: Debian 7 "Wheezy", Mutt 1.5.21.  I'm successfully connecting to
> IMAPS using TLS1.2 and can retrieve mail. Sending is set up to use
> Mutt's built-in SMTPS capability, though because of the problems below I
> haven't been able to confirm it works yet.
> 
> 1) When attempting to send an email, immediately after tapping, "y", I
> get asked to authenticate over TLS.  Reading the log shows that this is
> an attempt to save the message to the IMAP "sent" folder.  But after
> authenticating the process fails with the following (prior lines have
> been included for context):
> 
> [LOG BEGINS]
> [2013-08-13 15:23:26] mutt_sasl_cb_authname: getting authname for
> REDACTED:993
> [2013-08-13 15:23:26] mutt_sasl_cb_authname: getting user for
> REDACTED:993
> [2013-08-13 15:23:26] mutt_sasl_cb_pass: getting password for
> REDACTED@REDACTED@REDACTED:993
> [2013-08-13 15:23:33] Authenticating (PLAIN)...
> [2013-08-13 15:23:33] 6> a AUTHENTICATE PLAIN REDACTED
> [2013-08-13 15:23:33] 6< a OK [CAPABILITY IMAP4rev1 LITERAL+
> SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY
> THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE
> UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT
> SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA] Logged in
> [2013-08-13 15:23:33] Handling CAPABILITY
> [2013-08-13 15:23:33] IMAP queue drained
> [2013-08-13 15:23:33] SASL protection strength: 0
> [2013-08-13 15:23:33] SASL protection buffer size: 65536
> [2013-08-13 15:23:33] Communication encrypted at 128 bits
> [2013-08-13 15:23:33] 6> a0001 CAPABILITY
> a0002 LIST "" ""
> [2013-08-13 15:23:33] 6< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
> LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES
> THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS
> LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES
> WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA
> [2013-08-13 15:23:33] Handling CAPABILITY
> [2013-08-13 15:23:33] 6< a0001 OK Capability completed.
> [2013-08-13 15:23:33] 6< * LIST (\Noselect) "." ""
> [2013-08-13 15:23:33] Root delimiter: .
> [2013-08-13 15:23:33] 6< a0002 OK List completed.
> [2013-08-13 15:23:33] IMAP queue drained
> [2013-08-13 15:23:33] mutt_write_fcc(): unable to open mailbox
> imaps://REDACTED/Sent in append-mode, aborting.
> [LOG ENDS]
> 
> I can successfully navigate manually into the "Sent" folder on the
> server using Mutt, so this suggests to me that my "folder=" setting in
> my muttrc is correct.  I know the username and password I'm supplying
> are correct.  And even though the log shows the process as "aborting",
> Mutt continues to display, "Authenticating (PLAIN)..." at the foot of
> the window - at the moment it's up to 20 minutes and counting.
> 
> 2) During the same process above, when Mutt asks me to authenticate for
> IMAPS, it asks for my login username, but pre-fills the field with my
> current user account.  How can I amend this behaviour so that it uses
> the IMAP username by default?  A web search reveals the,
> "mutt_addr_is_user" variable, but a search on the wiki and in the manual
> for this term gives no results.
> 
> Regards,
> 
> SQ.

You may want to try setting 'record' similar to this for sent messages, unless 
you want to keep a local copy:

  set record = "+INBOX/sent-mail"

if you haven't already done so.  With Gmail you wouldn't need to do this.
-- 
Regards,
Mick


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


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: Beginner having difficulty saving to IMAP "sent" folder

2013-08-13 Thread Suvayu Ali
On Tue, Aug 13, 2013 at 04:04:51PM +0100, sqli...@posteo.co.uk wrote:
> 
> Spec: Debian 7 "Wheezy", Mutt 1.5.21.  I'm successfully connecting to IMAPS
> using TLS1.2 and can retrieve mail. Sending is set up to use Mutt's built-in
> SMTPS capability, though because of the problems below I haven't been able
> to confirm it works yet.
> 

As I understand Mutt doesn't send the emails.  It delegates the job to
some Mail Trasport Agent (MTA).  On *nix systems, usually it is
sendmail, sometimes postfix, or msmtp.  I use sendmail since it comes as
default with my distribution.  I did not configure anything.  I believe
you can choose this by setting the sendmail variable like this:

  set sendmail="your_favourite_mta --args"

Apart from this, all I do in my ~/.muttrc to send emails is:

  set smtp_url="smtp://usern...@smtp.example.com:587/"
  set smtp_pass=mypassword
  set from="usern...@example.com"

> 2) During the same process above, when Mutt asks me to authenticate for
> IMAPS, it asks for my login username, but pre-fills the field with my
> current user account.  How can I amend this behaviour so that it uses the
> IMAP username by default?  A web search reveals the, "mutt_addr_is_user"
> variable, but a search on the wiki and in the manual for this term gives no
> results.

This should work;

  set imap_user=username

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.


Re: Beginner having difficulty saving to IMAP "sent" folder

2013-08-13 Thread sqlists
On Tue, Aug 13, 2013 at 06:45:07PM +0200, Suvayu Ali wrote:
> On Tue, Aug 13, 2013 at 04:04:51PM +0100, sqli...@posteo.co.uk wrote:
> > 
> > Spec: Debian 7 "Wheezy", Mutt 1.5.21.  I'm successfully connecting to IMAPS
> > using TLS1.2 and can retrieve mail. Sending is set up to use Mutt's built-in
> > SMTPS capability, though because of the problems below I haven't been able
> > to confirm it works yet.
> > 
> 
> As I understand Mutt doesn't send the emails.  It delegates the job to
> some Mail Trasport Agent (MTA).  On *nix systems, usually it is
> sendmail, sometimes postfix, or msmtp.  I use sendmail since it comes as
> default with my distribution.  I did not configure anything.  I believe
> you can choose this by setting the sendmail variable like this:
> 
>   set sendmail="your_favourite_mta --args"
> 
According to the wiki: "Mutt, by itself, cannot send mail (new in 1.5.14: it 
can)." I'm using 1.5.21.  I'm not sure if I'm just misunderstanding that 
statement or what, but when I send I still see mention of postfix in the logs - 
I think that's what my IMAP provider uses, though, not me.

> > 2) During the same process above, when Mutt asks me to authenticate for
> > IMAPS, it asks for my login username, but pre-fills the field with my
> > current user account.  How can I amend this behaviour so that it uses the
> > IMAP username by default?
>
> This should work;
> 
>   set imap_user=username
> 
> Hope this helps,

Funnily enough, adding this one line seems to have fixed both problems. Happy 
days.  Thanks!