<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38891</bug_id>
          
          <creation_ts>2020-09-04 14:36:29 +0300</creation_ts>
          <short_desc>Ошибка сегментирования при отправке письма на алиас без адреса</short_desc>
          <delta_ts>2020-09-10 10:45:25 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>neomutt</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vera Blagoveschenskaya">vercha</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>kotopesutility</cc>
    
    <cc>sotor</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>192238</commentid>
    <comment_count>0</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2020-09-04 14:36:29 +0300</bug_when>
    <thetext>Тестовый стенд: workstation x86-64

neomutt-20200821-alt1.x86_64

1) В .mutt/alias записать:
alias testtest &quot;Test Test &lt;testtest.email@yandex.ru&gt;&quot;
Здесь закрывающая кавычка должна быть после описания персоны &quot;Test Test&quot;, но я сделала опечатку и поставила ее в конце строки. Т.о., получилось, что почтовый адрес для алиаса не определен.

2) Отправить сообщение
echo &apos;Hi there!&apos; | neomutt -s &apos;Hi &apos; testtest

Результат: Ошибка сегментирования

Ожидаемый результат: сообщение о некорректности адреса или ничего

Дополнительно: посмотрела поведение на предыдущей версии
neomutt-20180716-alt2.x86_64

Там ошибка сегментирования НЕ появляется.

Таким образом, данное поведение является регрессом.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192244</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2020-09-04 16:14:26 +0300</bug_when>
    <thetext>Added upstream bug report https://github.com/neomutt/neomutt/issues/2637</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192247</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-09-05 06:54:22 +0300</bug_when>
    <thetext>neomutt-20200821-alt2 -&gt; sisyphus:

 Sat Sep 05 2020 Vitaly Chikunov &lt;vt@altlinux&gt; 20200821-alt2
 - Fix alias parsing (closes: 38891).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192248</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2020-09-05 06:55:32 +0300</bug_when>
    <thetext>Vera,

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192349</commentid>
    <comment_count>4</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2020-09-10 10:45:25 +0300</bug_when>
    <thetext>Спасибо! Исправление проверила.
Теперь выводится коррекное сообщение об ошибке.

test@workstation-91-x86-64-20200904 ~ $ rpm -qa | grep neomutt
neomutt-20200821-alt2.x86_64

test@workstation-91-x86-64-20200904 ~ $ echo &apos;Hi there!&apos; | neomutt -s &apos;Hi &apos; testtest
Error in /home/test/.mutt/alias, line 8: Warning: Bad address &apos;&quot;Test Test &lt;testtest.email@yandex.ru&gt;&quot;&apos; in alias &apos;testtest&apos;
Error in /home/test/.mutt/muttrc, line 2: source: file /home/test/.mutt/alias could not be sourced
source: errors in /home/test/.mutt/muttrc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>