Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
0a044c5c
Commit
0a044c5c
authored
May 19, 2016
by
Daniel Vrátil
🤖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RecipientLineNG: improve parsing of email into the data
Set Recipient::name and Recipient::email respectively.
parent
819c3e02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
messagecomposer/src/recipient/recipientline.cpp
messagecomposer/src/recipient/recipientline.cpp
+7
-1
No files found.
messagecomposer/src/recipient/recipientline.cpp
View file @
0a044c5c
...
...
@@ -166,7 +166,13 @@ void RecipientLineNG::dataFromFields()
if
(
!
mData
)
{
return
;
}
mData
->
setEmail
(
mEdit
->
text
());
QString
displayName
,
addrSpec
,
comment
;
if
(
KEmailAddress
::
splitAddress
(
mEdit
->
text
(),
displayName
,
addrSpec
,
comment
)
==
KEmailAddress
::
AddressOk
)
{
mData
->
setName
(
displayName
);
mData
->
setEmail
(
addrSpec
);
}
else
{
mData
->
setEmail
(
mEdit
->
text
());
}
mData
->
setType
(
Recipient
::
idToType
(
mCombo
->
currentIndex
()));
mModified
=
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment